Postado Agosto 10, 2016 8 anos Oi gente. Eu to tentando fazer uma action OnUse de addon doll mas n sei oq ta dando de errado. local c = { actionId = 11391, } local femaleOutfits = {["Sea Dog"]={749}} local maleOutfits = {["Sea Dog"]={750}} function onUse(cid, item, fromPosition, itemEx, toPosition) if item.actionid == c.actionId then local femaleOutfits = {["Sea Dog"]={749}} local maleOutfits = {["Sea Dog"]={750}} local msg = {"Sailor man outfit."} end if(getPlayerItemCount(cid, 5810) > 0) then if(param ~= "" and maleOutfits[param] and femaleOutfits[param]) then doPlayerRemoveItem(cid, 5810, 1) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[4]) doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) if(getPlayerSex(cid) == 0)then doPlayerAddOutfit(cid, femaleOutfits[param][1], 3) else doPlayerAddOutfit(cid, maleOutfits[param][1], 3) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[1]) end else doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, msg[2]) end end Onde eu to errando ? Obg desde ja Erro denunciado pelo servidor : Editado Agosto 10, 2016 8 anos por ducklin (veja o histórico de edições)
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.