Ir para conteúdo

Featured Replies

Postado

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 : 5871a47c48874619af61b1d63bf224df.png

Editado 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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo