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

on death the backpackofholding does not drop

It sure is!

In data/creaturescripts/scripts :
Create here a file : backpackofholding.lua
And then place this script inside of it :

LUA:
function onDeath(cid, corpse, deathlist)
	if  getPlayerSlotItem(cid, CONST_SLOT_BACKPACK).itemid == 2365 then
		doCreatureSetDropLoot(cid, false)
		doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
	end
	return true
end

Then , in data/creaturescripts :
Open creaturescripts.xml and add this line :
<event type="death" name="BoH" event="script" value="backpackofholding.lua"/>


Finally , in data/creaturescritps/scripts :
Find and open login.lua , then add this line :
registerCreatureEvent(cid, "BoH")

And now you are done!


Note :This will cause the wielder of Backpack of holding , to not have any of his items to drop... If you want it in a different way , PM me.
 
Back
Top