• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Red skull remover rune?

TKO

Syphero Owner!
Joined
Mar 10, 2008
Messages
2,252
Reaction score
27
Location
Sweden
Hey i need a redskull remover rune script can any one make this or is it not possibel on the in 0.4 dev?
 
im using the lates rev arthur for the last time last rev:P
anco i dont want frag remover i want rs remover that removes frags also!

doPlayerSetSkullEnd(cid, 0, SKULL_RED)
doPlayerSetSkullEnd(cid, 0, SKULL_BLACK)

????
It does that, nuub, you didn't even tried it <_<
 
This script dint remove his redskull only save Your frags have been removed but noting happend with his redskull...
I was using a God to try to remove his redskull
i use this script to remove the redskull:
LUA:
local config =
{
    item = 2276,
    level = 1,
    count = 1
}
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= config.level then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags have 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)  
        doPlayerSetSkullEnd(cid, 0, SKULL_BLACK) 
    else
        doPlayerSendCancel(cid, "You dot have enough level")
    end
    return TRUE
end
 
did you use as a staff member or as a player? becouse my script dose not remove the skull ingame i told him to relogg but it dint help any....
 
if you are using a item that is targetable

LUA:
function onUse(cid, item, frompos, item2, topos)
if isPlayer(topos.uid) then
        doPlayerSendTextMessage(topos.uid, MESSAGE_INFO_DESCR, "Your frags have 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(topos.uid) .. ")")
        doCreatureSetSkullType(topos.uid, 0)
        doPlayerSetSkullEnd(topos.uid, 0, SKULL_RED)  
        doPlayerSetSkullEnd(topos.uid, 0, SKULL_BLACK) 
end
return true
end

if not

LUA:
function onUse(cid, item, frompos, item2, topos)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Your frags have 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) .. ")")
        doCreatureSetSkullType(cid, 0)
        doPlayerSetSkullEnd(cid, 0, SKULL_RED)  
        doPlayerSetSkullEnd(cid, 0, SKULL_BLACK) 
return true
end
 
try my first code..

LUA:
function onUse(cid, item, frompos, item2, topos)
if isPlayer(topos.uid) then
        doPlayerSendTextMessage(topos.uid, MESSAGE_INFO_DESCR, "Your frags have 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(topos.uid) .. ")")
        doCreatureSetSkullType(topos.uid, 0)
        doPlayerSetSkullEnd(topos.uid, 0, SKULL_RED)  
        doPlayerSetSkullEnd(topos.uid, 0, SKULL_BLACK) 
end
return true
end
 
Knight xd it dint work.....
This one workt but lagged the whole server....And every one had to relogg...
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition) 

if getCreatureSkullType(cid) == SKULL_RED then 

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

doPlayerSendTextMessage(cid,27,"Your frags and skull have been removed!") 

doSendMagicEffect(getPlayerPosition(cid),CONST_ME_MAGIC_RED) 

doRemoveItem(item.uid, 1) 

doPlayerSetSkullEnd(cid, 0, getPlayerSkullType(cid)) 



else 

doPlayerSendCancel(cid, "You do not have a red skull.") 

doSendMagicEffect(getPlayerPosition(cid),2) 

end 



return TRUE 

end
 
Back
Top