Leon Zawodowiec
Leon The Professional
Name: Frag Remover / Skull Remover
Compatibility: TFS 0.3.6 PL [8.54]
Author: Leon Zawodowiec / Mag Egzorcysta
Description: Automatically and instantly removes Skull (Black or Red) with Frags from Data Base. Not working on a white skull.
Script:
In Actions.xml paste:
Of course dont forget remove loot of this item from mobs: "Hellspawn, Infernalist"
Or create own item !
Yours - Mag Egzorcysta / Leon Zawodowiec
Compatibility: TFS 0.3.6 PL [8.54]
Author: Leon Zawodowiec / Mag Egzorcysta
Description: Automatically and instantly removes Skull (Black or Red) with Frags from Data Base. Not working on a white skull.
Script:
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
In Actions.xml paste:
Code:
<action itemid="9969" event="script" value="skull.lua"/>
Or create own item !
Yours - Mag Egzorcysta / Leon Zawodowiec
Last edited: