Ir para conteúdo

Remover Skull


douguera

Posts Recomendados

bom galera eu to com esse script mas quando pego red skull n tem como usar oq fassO?

 

-- [( Script created by Doidin for XTibia.com )] --
function onUse(cid, item, fromPosition, item2, toPosisition)
local rskulls = {green = SKULL_GREEN, red = SKULL_RED, black = SKULL_BLACK}
if isInArray(rskulls, getPlayerSkullType(cid)) then
doPlayerSendCancel(cid,"Voce Removeu seus Frags e Skulls.")
doSendMagicEffect(getPlayerPosition(cid), 2)
else
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doCreatureSetSkullType(cid, 0)
doCreatureSay(cid, "Seus Frags e Skull Foram Removidos!", 19)
doSendMagicEffect(getPlayerPosition(cid), 26)
return TRUE
end
end

Link para o comentário
Compartilhar em outros sites

Nao testei se nao der me diga se deu erro;D

 

function onUse(cid, item, fromPosition, item2, toPosisition)

local rskulls = {green = SKULL_GREEN, red = SKULL_RED, black = SKULL_BLACK}

if isInArray(rskulls, getPlayerSkullType(cid)) then

doPlayerSendCancel(cid,"Voce Removeu seus Frags e Skulls.")

doSendMagicEffect(getPlayerPosition(cid), 2)

else

db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")

doCreatureSetSkullType(cid, SKULL_NONE)

doCreatureSay(cid, "Seus Frags e Skull Foram Removidos!", 19)

doSendMagicEffect(getPlayerPosition(cid), 26)

return TRUE

end

end

 

Link para o comentário
Compartilhar em outros sites

humm pera aew tenta esse aew.

 

function onUse(cid, item, fromPosition, item2, toPosisition)

doCreatureSetSkullType(cid, 0)

db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")

doRemoveItem(item.uid, 1)

doPlayerSendTextMessage(cid, 22, "Your skulls was been cleaned.")

 

return TRUE

end

 

Editado por TheDevilZ
Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...