Jump to content

Red/Black skull remover


Recommended Posts

Ele pode ser útil para muitos OTS com Gesior Account Maker 2012, pois não há opção "remover red skull" na loja de SMS.

 

Basta ir em data/actions/scripts, criar um arquivo .lua com o nome de skullremove e adicionar o seguinte código -

function onUse(cid, item, frompos, item2, topos)
local skull = getCreatureSkullType(cid) 
local bad_skulls = {SKULL_RED,SKULL_BLACK}
if(isInArray(bad_skulls, skull)) then
doPlayerSetSkullEnd(cid, 0, skull)
doRemoveItem(item.uid, 1)
db.executeQuery('UPDATE `killers`, `player_killers` SET `killers`.`unjustified` = 0 WHERE `killers`.`unjustified` = 1 AND `player_killers`.`player_id` = ' .. getPlayerGUID(cid) .. ' AND `killers`.`id` = `player_killers`.`kill_id`')
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your skull has been removed!")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You do not have red/black skull!")
end
return true
end

 

Adicione esta tag em action.xml -

<action itemid="IDDOITEM" event="script" value="skullremove.lua"/>

 

Créditos - Gesior.pl

Link to comment
Share on other sites

Já não tem uns desses aqui no fórum?

Mesmo assim, obrigado pelo conteúdo.

Seria mesmo util da forma que você disse.

Parabéns e obrigado.

 

Action não, Talkaction...

Link to comment
Share on other sites

  • 7 years later...
 Share

×
×
  • Create New...