Olá galera , eu gostaria de por assim , quando o carinha bater , ele olhar para onde está o target , porque se nao ele iria ficar batendo no vento exemplo
eu to olhando pra << , e o meu target ta >> , minha outfit estára batendo no vento '-' , será que alguem poderia fazer pra eu??
local outfits = {
[348] = 333,
[347] = 329,
[349] = 330,
}
function onCombat(cid, target)
local tmp = getCreatureOutfit(cid)
if outfits[tmp.lookType] then
tmp.lookType = outfits[tmp.lookType]
doSetCreatureOutfit(cid, tmp, 900)
end
return true
end
Pergunta
tonynamoral 27
Olá galera , eu gostaria de por assim , quando o carinha bater , ele olhar para onde está o target , porque se nao ele iria ficar batendo no vento exemplo
eu to olhando pra << , e o meu target ta >> , minha outfit estára batendo no vento '-' , será que alguem poderia fazer pra eu??
local outfits = { [348] = 333, [347] = 329, [349] = 330, } function onCombat(cid, target) local tmp = getCreatureOutfit(cid) if outfits[tmp.lookType] then tmp.lookType = outfits[tmp.lookType] doSetCreatureOutfit(cid, tmp, 900) end return true endLink para o comentário
https://xtibia.com/forum/topic/204649-por-uma-fun%C3%A7ao-no-atacar-e-mudar-de-outfit/Compartilhar em outros sites
12 respostass a esta questão
Posts Recomendados