Postado Maio 19, 2015 11 anos Boa noite.. Fiz esse script porém não está funcionando, poderiam me ajudar? function onSay(cid, words, param, channel) if (getCreatureSkullType(cid) == SKULL_RED) then if doPlayerRemoveItem(cid, 8300,1) == TRUE then doPlayerSendTextMessage(cid, 22, "Red Skull Retirada.") else doPlayerSendTextMessage(cid, 22, "Voce precisa de uma Pedra Donate") end end <talkaction words="!removeskull" event="script" value="skull.lua"/>
Postado Maio 19, 2015 11 anos Bom você esqueceu de checar se o cara não estivesse red skull , não colocou pra tirar o red skull e esqueceu um end no seu script, use o meu. function onSay(cid, words, param, channel) if getCreatureSkullType(cid) == SKULL_RED == false then doPlayerSendTextMessage(cid, 22, "Voce nao esta red skull !") end if (getCreatureSkullType(cid) == SKULL_RED) then if doPlayerRemoveItem(cid, 8300,1) == TRUE then doCreatureSetSkullType(cid,0) doPlayerSendTextMessage(cid, 22, "Red Skull Retirada.") else doPlayerSendTextMessage(cid, 22, "Voce precisa de uma Pedra Donate") end end return true end
Postado Maio 19, 2015 11 anos Autor Bom você esqueceu de checar se o cara não estivesse red skull , não colocou pra tirar o red skull e esqueceu um end no seu script, use o meu. function onSay(cid, words, param, channel) if getCreatureSkullType(cid) == SKULL_RED == false then doPlayerSendTextMessage(cid, 22, "Voce nao esta red skull !") end if (getCreatureSkullType(cid) == SKULL_RED) then if doPlayerRemoveItem(cid, 8300,1) == TRUE then doCreatureSetSkullType(cid,0) doPlayerSendTextMessage(cid, 22, "Red Skull Retirada.") else doPlayerSendTextMessage(cid, 22, "Voce precisa de uma Pedra Donate") end end return true end Muito obrigado pelo script, porém tive uma outra ideia, após isso ele removeria também os frags... teria como?
Postado Maio 19, 2015 11 anos Solução Testa ai não tenho certeza se vai dar certo. function onSay(cid, words, param, channel) if getCreatureSkullType(cid) == SKULL_RED == false then doPlayerSendTextMessage(cid, 22, "Voce nao esta red skull !") return true end if (getCreatureSkullType(cid) == SKULL_RED) then if doPlayerRemoveItem(cid, 8300,1) == TRUE then doCreatureSetSkullType(cid,0) db.executeQuery("UPDATE killers SET unjustified = 0 WHERE id IN (SELECT kill_id FROM player_killers WHERE player_id = " .. getPlayerGUID(cid) .. ");") doPlayerSendTextMessage(cid, 22, "Red Skull Retirada.") else doPlayerSendTextMessage(cid, 22, "Voce precisa de uma Pedra Donate") end end return true end
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.