TÓPICO ORIGINAL:
http://www.xtibia.com/forum/topic/182668-creaturescripts-walking-effect-on-outfit/
1ª explicação:
1° - Abra o Bloco de Notas.
2º - Copie tudo o que está escrito no quote abaixo.
3° - Renomeie para outfiteffect.lua
4° - Salve na pasta Creatureevents (PastaDoSeuServidor/data/creatureevents/scripts).
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
[270] = 27,[273] = 27, -- jester
[156] = 61,[152] = 61, -- assassin
[147] = 44,[143] = 44, -- barbarian
[148] = 45,[144] = 45, -- druid
[157] = 68,[153] = 68, -- beggar
[149] = 36,[145] = 36, -- wizard
[279] = 17,[278] = 17, -- brotherwood
[137] = 39,[129] = 39, -- hunter
[141] = 66,[133] = 66, -- summoner
[142] = 34,[134] = 34, -- warrior
[155] = 31,[151] = 31, -- pirate
[158] = 46,[154] = 46, -- shaman
[288] = 6,[289] = 6, -- demonhunter
}
local o,c= effect[old.lookType],effect[current.lookType]
if getPlayerAccess(cid) > 2 then return true
elseif (not o or not c or old.lookAddons == 3 and o) then stopEvent(events[getPlayerGUID(cid)]) end
if current.lookAddons == 3 and c then
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}) end
return true
end
NEGRITO = NUMERO DO EFEITO! *se quiser mudar
[] = NUMERO DO OUTFIT
2ª explicação:
1º - PEGUE AS TAGS abaixo.
2° Abra o creatureevents.xml (PastaDoSeuServidor/data/creatureevents)
3° - Copie essas tags abaixo, tudo organizado.
4° - Salve.
5° - Vá no seu servidor e digite : /reload creatureevents (se não funcionar feixe o ot e abra)
TAGS:
<event type="login" name="EffectOutLogin" event="script" value="outfiteffect.lua"/>
<event type="outfit" name="OutfitEffects" event="script" value="outfiteffect.lua"/>
FAQ:
Como usa?
É simples,você só terá que ter addon full de cada OutFit, por exemplo...
[279] = 17,[278] = 17, -- brotherwood
O (17) é o efeito do Death, da runa Sudden Death quando atinge o jogador.
Combina com a outfit, pois a BrotherHood é uma outfit parecida com a Morte!
Estou usando addon full, mais não está funfando, o que houve?
Para usar o creatureevent por completo terá que ter addon full, e claro para utilizar não tem que ficar parado, para funcionar você tem que ficar andando, e com seus movimentos o efeito irá funcionar.
Good Luck!
CREDITOS:
AnneMotta (Banida)
Vodkart (Ajudante da AnneMotta)
Att,
JeanDoido.




info
Grupo: Cavaleiro
Registrado: 26/10/08
Posts: 152
Reputação: +10
quero uma magia que mude de efeito pelo outfit (newtype) do player se tiver com newtype de orc sai exori de tera se tiver newtype de troll sai exori de mort só um exemplo
8.54
tfs
DOU REP+ QUEM CONSEGUIR.