tb neh amigo.. ;x
doSetCreatureOutfit(cid,getPlayerStorageValue[mounts].looktype,-1)
o certo seria..
doSetCreatureOutfit(cid, mounts[getPlayerStorageValue(cid, mounton)],-1)
---
alias achu q n eh isso q vc queria... daonde sao os numeros entre os colchetes da tabela mounts?




info
Grupo: Visconde
Registrado: 21/09/10
Posts: 319
Reputação: +27
Char no Tibia: lest sarif
local mounts = { [12121] = {looktype = 4}, [21212] = {looktype = 5}, [76124] = {looktype = 6}, } mounton = 87871 function onSay(cid,words) if getPlayerStorageValue(cid,mounton) <= 0 then doSetCreatureOutfit(cid,getPlayerStorageValue[mounts].looktype,-1) setPlayerStorageValue(cid,mounton,1) elseif getPlayerStorageValue(cid,mounton) >= 1 then doRemoveCondition(cid,OUTFIT_CONDITION) setPlayerStorageValue(cid,mounton,-1) else doPlayerSendTextMessage(cid,27,"You dont have mount.") end endEditado Novembro 24 por tonynamoral