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.
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