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

Forever amulet and Skull amulet not working correctly!

Santi

Theres no way im stopping
Joined
Aug 29, 2010
Messages
1,975
Reaction score
152
Location
00
Well I'm having some problems with this 2 things..
The forever amulet does work, the skull amulet aswell, but when you die you dont loose eq, but you do loose your bp/bag.(skull ammy only with no rs, with rs you dont loose things).

data/creaturescripts/scripts/forever amulet.lua

Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2198) then 
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
                doCreatureSay(cid, "Forever Amulet!", TALKTYPE_ORANGE_1)
        elseif (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2131) and (getCreatureSkullType(cid)  < 4) then 
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
                doCreatureSay(cid, "Skull Amulet!", TALKTYPE_ORANGE_1)
                
        end
        return true
        end

and my login.lua
Code:
registerCreatureEvent(cid, "Mail")
	registerCreatureEvent(cid, "GuildMotd")
	registerCreatureEvent(cid, "Idle")
	registerCreatureEvent(cid, "SkullCheck")
	registerCreatureEvent(cid, "ReportBug")
	registerCreatureEvent(cid, "demonOakLogout")
	registerCreatureEvent(cid, "forever amulet")
    registerCreatureEvent(cid, "skull amulet")
    registerCreatureEvent(cid, "charge amulet") 

registerCreatureEvent(cid, "demonOakDeath")
          return true
end


I'd like to know whats the problem here.
Thanks in advanced!

PD: I want the skull ammy to work as a forever AOL aswell..(when you got no rs or bs)
 
Okay, Ill take a look thanks!
I use skull ammy in your server aswell :D

EDIT: Great work rep+ :)
 
Last edited:
Back
Top