DarkCastleMUD / DarkCastle

Dark Castle is a text-based MUD (multi-user dungeon) that was originally based on DIKU MUD around 1995. It has been running since then.
https://www.dcastle.org/
GNU Lesser General Public License v2.1
12 stars 11 forks source link

Please create a tool to mass-swap items out of the game #162

Open dmhenderson76 opened 2 years ago

dmhenderson76 commented 2 years ago

Occasionally, we re-balance equipment and need a way to remove existing (custom) copies of those items from the game and replace them with the new version.

Requirements:

bdunavant commented 2 years ago

IIRC the way to do this, is to delete the VNUM and not re-use it. When the user logs in, if the item number no longer exists, it will remove it from their inventory. Create the toned version with a different item number, and then update it.

The way it works currently was specifically so we allow people to keep the old items even if we change future versions.

dmhenderson76 commented 2 years ago

Yes, that's the way we currently do it but Jared suggested creating a tool to do this instead of just retiring vnums. Also typically, we don't delete the vnum but remove the "custom" flag and all hit location flags but "take". Jared already wrote code that will automatically return anything worn in an invalid location to inventory (along with a warning) on login.