No loot on death?
Posted: Mon Aug 10, 2015 4:09 am
Hi again,
I need to prevent some players to drop loot on death on some circumstances.
To make an example, let's say I want that anyone who dies in the Britain area does not lose any item.
Solutions I've already think of:
1. Use areas enterscript and leavescript to set all items as newbie and then back when entering/leaving the area. Why this is bad: too much risk that all the items will stay newbie if (when) something goes wrong.
2. On chrdeath.ecl move all items from corpse back to ghost; that's Zulu's solution. Why this is bad: consumes a lot of script cycles, screws up the backpack, since the items do not retain their original x,y position and z order inside the backpack.
Any ideas?
I need to prevent some players to drop loot on death on some circumstances.
To make an example, let's say I want that anyone who dies in the Britain area does not lose any item.
Solutions I've already think of:
1. Use areas enterscript and leavescript to set all items as newbie and then back when entering/leaving the area. Why this is bad: too much risk that all the items will stay newbie if (when) something goes wrong.
2. On chrdeath.ecl move all items from corpse back to ghost; that's Zulu's solution. Why this is bad: consumes a lot of script cycles, screws up the backpack, since the items do not retain their original x,y position and z order inside the backpack.
Any ideas?