Postado Dezembro 14, 2017 7 anos Então galera, esse script é de rastro. Porem a cada addon tem um rastro, mas ao mudar de addon o personagem fica com o rastro do addon antigo, queria só ficasse com o rastro atual do addon.function onLogin(cid) registerCreatureEvent(cid, "EffectOutLogin") registerCreatureEvent(cid, "OutfitEffects") return doCreatureChangeOutfit(cid,{lookType = getCreatureOutfit(cid).lookType, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = getCreatureOutfit(cid).lookAddons}) end local events = {} function onOutfit(cid, old, current) local effect = { [136] = 3, [128] = 3, -- Citizen [137] = 8,[129] = 8, -- Hunter [138] = 11,[130] = 11, -- Mage [139] = 9,[131] = 9, -- Knight [140] = 6,[132] = 6, -- Nobleman [141] = 25,[133] = 25, -- Summoner [142] = 26,[134] = 26, -- Warrior [147] = 31,[143] = 31, -- Barbarian [148] = 32,[144] = 32, -- Druid [149] = 34,[145] = 34, -- Wizard [150] = 35,[146] = 35, -- Oriental [155] = 37,[151] = 37, -- Pirate [156] = 61,[152] = 61, -- Assassin [157] = 44,[153] = 44, -- Beggar [158] = 45,[154] = 45, -- Shaman [252] = 41,[251] = 41, -- Norseman [269] = 46,[268] = 46, -- Nightmare [270] = 39,[273] = 39, -- Jester [279] = 68,[278] = 68, -- Brotherhood [288] = 65,[289] = 65, -- Demonhunter [255] = 36,[253] = 36, -- News [254] = 36 -- News } local o,c= effect[old.lookType],effect[current.lookType] if getPlayerAccess(cid) > 2 then return true end function WalkEffect(cid, c, pos) if not isCreature(cid) then return LUA_ERROR end if c then frompos = getThingPos(cid) if frompos.x ~= pos.x or frompos.y ~= pos.y or frompos.z ~= pos.z then doSendMagicEffect(frompos, c) end events[getPlayerGUID(cid)] = addEvent(WalkEffect, 100, cid, c, frompos) end return true end WalkEffect(cid, c, {x=0, y=0, z=0}) return true end Citar Editar ORDENAR POR VOTOS ORDENAR POR DATA Até agora não há respostas para essa pergunta Responder esta pergunta... Quem leu este tópico IR PARA LISTA DE PERGUNTASGeral PRÓXOMA PERGUNTA NÃO LIDAverificar tempo TÓPICOS SIMILARES Ajuda A Arrumar 1 Bug Geral (By reydson) Outubro 17 8 Posts 55 Views Yakullt Dezembro 3 Ajuda Arrumar Move Geral (By Vasco384) Dezembro 2 1 Posts 13 Views Vasco384 Dezembro 2 Arrumar scriipt npc Geral (By menta2) Novembro 28 1 Posts 10 Views menta2 Novembro 28 ARRUMAR DANO DO POKEMON NO PVP Scripts (By Gnius) Novembro 16 9 Posts 59 Views Gnius Novembro 19 QUEM ESTÁ NAVEGANDO 1 MEMBRO ESTÁ ONLINE Jinx Administrador Diretor Coordenador Moderador Suporter Estagiário Héroi Membro Conteúdo não lido Marcar como lido Página Inicial Fóruns OTServ Pedido Geral Arrumar o script Idiomas Tema Contato Tibia King © 2010-2017Powered by Invision Community
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.