• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Frags cleaner with skull remover

Rodo

New Member
Joined
Oct 23, 2007
Messages
575
Solutions
1
Reaction score
3
Location
Mexico
Here you are, a script for clean unjustified frags, you don't need to relog... use it and frags and skull removed :thumbup:


Lua:
local config =  {
                remove_Skulls = true;
                };

function onUse(cid, item, frompos, item2, topos)

  if config.remove_Skulls == TRUE then
     if getPlayerSkullType(cid) > 3 then
       doCreatureSetSkullType(cid, 0)
     end
  end


  db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ");")
  doRemoveItem(item.uid, 1)
  doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Your frags where successfully cleaned.")

  return TRUE   
end
 
Last edited:
What?, I can't understand but this can remove any skull
 
would like to remove red skull and black skull
 
Last edited:
:mad: Ozico, this script doesn't work bro ;] Is crashing the server.
im not trying to flame but it works ive tested it, if you just did it right it will work, maybe you did it in a .lua file instead of .xml because its a mod if you cant read a script
 
@Rodo
Lua:
if 
  db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ");")
  doRemoveItem(item.uid, 1)
  doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Your frags where successfully cleaned.")

  return TRUE   
end
?????

bolero said:
@ Ozico, this script doesn't work bro ;] Is crashing the server.
Actually it work perfectly but you're to dumb to read that it was tested on 0.4..
 
@Rodo
Lua:
if 
  db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ");")
  doRemoveItem(item.uid, 1)
  doPlayerSendTextMessage(cid,MESSAGE_INFO_DESCR,"Your frags where successfully cleaned.")

  return TRUE   
end
?????

Thanks mate :thumbup:
 
Back
Top