potinho
Advanced OT User
Hi guys,
I have this action who remove skills and frags, but i have one problem. I use item and frags and skull gone, but when i relog red skull come back, can u guys help me to fix?
Looking a little more and found this, solved. Thanks.
I have this action who remove skills and frags, but i have one problem. I use item and frags and skull gone, but when i relog red skull come back, can u guys help me to fix?
Lua:
-- Scripted by Leon Zawodowiec --
function onUse(cid, item, frompos, item2, topos)
local playerskull = getCreatureSkullType(cid)
local skulls = {
SKULL_NONE,
SKULL_YELLOW,
SKULL_GREEN,
SKULL_WHITE
}
if isInArray(skulls, playerskull) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't remove that skull !")
return 0
else
doCreatureSetSkullType(cid, skulls[1])
doRemoveItem(item.uid, 1)
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Your Skull has been removed !")
end
return true
end
Post automatically merged:
Looking a little more and found this, solved. Thanks.
Action - Red/Black skull remover
My friend had problem with skull remover. After relog/one frag player get red skull again, so I fixed it :D It can be useful for many OTS as in Gesior Account Maker 2012 there is no option 'remove red skull' in SMS shop. function onUse(cid, item, frompos, item2, topos) local skull =...
otland.net
Last edited: