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

Frag Remover/Soul Point Adder

Soul points
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)

local soul = getPlayerSoul(cid)

	if soul == 200 then
        return doPlayerSendCancel(cid, "You can not add more soul")
	end
	doPlayerAddSoul(cid, 1)
 	doPlayerSendTextMessage(cid,25,"You added 1 soul.")
	doRemoveItem(item.uid, 1)
return true
end

Remove Frags
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)

	db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
 	doPlayerSendTextMessage(cid,25,"Your frags have been removed.")
	doRemoveItem(item.uid, 1)
end

Just made this quick, if you want it to have more things in it, like magic effects or something, let me know.
 
Last edited:
Back
Top