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

Blessing Amulet

Triggah

TrigCore
Joined
Aug 1, 2007
Messages
436
Reaction score
2
How would i make an amulet to be like all 5 blessings.

basically im asking for blessings to be an amulet.

possible?
 
Surely that is what a "skull" amulet is. If it works w/o skull then when you die it just teleports you to the temple and/or reheals you. Therefore you don't actually die. Therefore no level/skills loss. Therefore what you want?
 
iam not scripter but iam trying to learn some lua
try this one

Code:
local bless = {1, 2, 3, 4, 5}
local AMULET_ID = XXXX -- Amulet ID
 
function onPrepareDeath(cid)
if getPlayerSlotItem(cid, 2).itemid == AMULET_ID then
        for i = 1, table.maxn(bless) do
            doPlayerAddBlessing(cid, bless[i])
        end
        doPlayerSendTextMessage(cid,24, "You have bought all blessings.")
        doSendMagicEffect(getPlayerPosition(cid), 28)
    end
    return TRUE
end
 
You have to put it in creaturescripts and add 1 line to login.lua

Login.lua (above return true)
LUA:
	registerCreatureEvent(cid, "PrepareDeath")

Creaturescripts.xml
LUA:
	<event type="preparedeath" name="PrepareDeath" event="script" value="blessamulet.lua"/>
 
Back
Top