My friend had problem with skull remover. After relog/one frag player get red skull again, so I fixed it
It can be useful for many OTS as in Gesior Account Maker 2012 there is no option 'remove red skull' in SMS shop.
Tested on TFS 0.3.6, should work on 0.3.7 and all 0.4
It can be useful for many OTS as in Gesior Account Maker 2012 there is no option 'remove red skull' in SMS shop.
Lua:
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
Last edited: