• 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?
 
Try this MOD:
XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Frag Remover" version="1.1" author="Hermes" contact="otland.net" enabled="yes">
	<action itemid="9969" event="script"><![CDATA[
		local noRemove = {SKULL_WHITE, SKULL_YELLOW}
		local playerSkull = getPlayerSkullType(cid)
		if isInArray(noRemove, playerSkull) then
			doPlayerSendCancel(cid, "You can't remove this type of skull.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
			return true
		elseif playerSkull == SKULL_NONE then
			doPlayerSendCancel(cid, "You don't have skull.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
			return true
		else
			db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
			doPlayerSendTextMessage(cid, 27, "Your frags & your skull have been removed!")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
			doSendAnimatedText(getPlayerPosition(cid), "Removed !", 180)
			doCreatureSetSkullType(cid,0)
			doPlayerSetSkullEnd(cid, 0, playerSkull)
			doRemoveItem(item.uid, 1)
		end
		return true
	]]></action>
</mod>

Change
XML:
<action itemid="9969" event="script"><![CDATA[
For the Itemid of the rune

It's from Hermes.
 
ASHUehAUSHeu
Here..

redskullremover.xml (in mods folder)

XML:
<?xml version="1.0" encoding="UTF-8"?>
<mod name="Frag Remover" version="1.1" author="Arthur" contact="otland.net" enabled="yes">
	<action itemid="xxxx" event="script"><![CDATA[
		local noRemove = {SKULL_WHITE, SKULL_YELLOW}
		local playerSkull = getPlayerSkullType(cid)
		if isInArray(noRemove, playerSkull) then
			doPlayerSendCancel(cid, "You can't remove this type of skull.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
			return true
		elseif playerSkull == SKULL_NONE then
			doPlayerSendCancel(cid, "You don't have skull.")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
			return true
		else
			db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
			doPlayerSendTextMessage(cid, 27, "Your frags and your skull have been removed!")
			doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
			doSendAnimatedText(getPlayerPosition(cid), "Removed !", 180)
			doCreatureSetSkullType(cid,0)
			doPlayerSetSkullEnd(cid, 0, playerSkull)
			doRemoveItem(item.uid, 1)
		end
		return true
	]]>
</action>
</mod>
 
Last edited:
db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
doPlayerSendTextMessage(cid, 27, "Your frags and your skull have been removed!")


Have you tried it? :p
 
Are you ridiculous? Why would you put

XML:
<action itemid="9969" event="script">
in anything? It's a mod, and gets put into a MOD folder. There is no XML file to call it........

And the itemID is already called in the script.

Anyway, TKO use mine. :p

facepalm.jpg


That's the part of the mod, and he told him he can edit it if he wants to use another item (not add!)
 
man :) i think is better to use Frag remover on actions bcz when you make reload actions mods dont work more...
so is better if you use this
make file fragrune.lua
and paste this
PHP:
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
and put this in actions.xml you can also change iditem how you wish
PHP:
	<action itemid="9969" event="script" value="fragrune.lua"/>
 
LUA:
local config =
{
    item = xxxx,  //ITEM ID
    level = xxxx,
    count = 0
}
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
 
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!
 
Back
Top