• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Rune which delete black skull

kluku

New Member
Joined
Feb 26, 2010
Messages
52
Reaction score
0
Hey, I have this script:

Code:
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags has been removed.")
        doRemoveItem(item.uid)
        db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
        doPlayerSetSkullEnd(cid, 0, SKULL_RED)  
    else
        doPlayerSendCancel(cid, "You dot have enough level")
    end
    return TRUE
end

If I want to delete black skull is it enaugh to add
Code:
doPlayerSetSkullEnd(cid, 0, SKULL_BLACK)
under
Code:
doPlayerSetSkullEnd(cid, 0, SKULL_RED)
?

Also I would to add "if player has 0 frags then its impossible to use rune on him"
thanks
 
It was released by me somewhere in LUA section.

Nope. I found only red/black skull remover
But I need frag remover + red/black skull

My script delete all frags (red skull included)
how can I add black skull too?

and if someone has 0 frags than "you don't have frags" and poff
 
Back
Top