• 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!

Gesior Skull/frag remover Help!

Kjosen

New Member
Joined
Sep 1, 2008
Messages
94
Reaction score
0
Okey, I am using TFS 0.3.6pl1,

Problem:

The problem i have is when i am using Gesiors or anny other script i cant get the skull remover to delete the frags! (the skull remover is working)

In the gesior aac its like this on the redskullremover: (shopsystem)

('UPDATE players SET skull=0, skulltime=0 WHERE id='. $my_acc_id .';');

And i think it shuld be some thing like this, but i dont get it to work... :/


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


Please help me!
 
use this script :
in actions/actions.xml add
PHP:
<action itemid="9969" script="blackskull.lua"/>

in actions/sctipts/blackskull.lua paste
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
       doCreatureSay(cid, "Frags sucesfully removed.", TALKTYPE_ORANGE_1)
       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) 
       doTransformItem(item.uid, 2320)
end
 
ops sorry, wrong line xD
here it is:
Code:
('UPDATE killers SET unjustified=0 WHERE id IN (SELECT kill_id FROM player_killers WHERE player_id='. $my_acc_id .');');


the problem i have with this one is that its removing the frags but not the skull...


Thanks alot Tuchol that workd!
 
the problem i have with this one is that its removing the frags but not the skull...


Thanks alot Tuchol that workd!

Then use both?!! I posted the skull remover first.
PHP:
$SQL->query('UPDATE killers SET unjustified=0 WHERE id IN (SELECT kill_id FROM player_killers WHERE player_id='. $my_acc_id .');');
$SQL->query('UPDATE players SET skulltime=0, skull=0 WHERE id='. $my_acc_id .';');
Much easier, faster and better than a talkaction
 
Back
Top