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

Mystic Spirit's aol.

Nightimarez

New Member
Joined
Jul 24, 2008
Messages
287
Reaction score
2
I'm trying to make an aol unlimited for players below level 50 on Mystic Spirit.
Setting the charges to -1 doesn't work anymore. And this is the error I'm getting on my script.

Code:
attempt to call global 'doPlayerSetDropLoot' (a nil value)

Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if getPlayerLevel(cid) < 50 then
        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
                doCreatureSetDropLoot(cid, false)
			doPlayerRemoveItem(cid, 2196, 1)
        end
        return true
        end
        return true
        end
 
I'm not really familiar with lua, but I'm pretty sure that when it says (a nil value) it means that you don't have such a function. What server are you running?
 
Lmao, my bad..

Code:
function onPrepareDeath(cid, lastHitKiller, mostDamageKiller)
if getPlayerLevel(cid) < 50 then
        if (getPlayerSlotItem(cid, CONST_SLOT_NECKLACE).itemid == 2196) then
                doSetCreatureDropLoot(cid, false)
        end
        return true
        end
        return true
        end
 
Back
Top