Need help coding an Aspace dispenser

Posted by Logan Orion on Mon 26 Jan 2009 09:17 PM — 2 posts, 12,289 views.

#0
PennMUSH version 1.8.3 patchlevel 6

I'm looking for some help coding a dispenser that locks items so you can only give them back to the dispenser they originated from. Such as a Phaser Dispenser.

The dispenser should create a preloaded item when the command 'Dispense Phaser' is entered. Then only allow the item to be given to the same dispenser that it was created from.

Then when the command 'give phaser to dispenser' it should take the item, @nuke the item, and add to a counter so you know how many items can be created. You must have given the dispenser an item for it to create a new one.

The items created from the dispenser should still be able to be passed to other people as well as dropped and picked up.

If anyone can help me out please let me know.
Australia Forum Administrator #1
It has been a while since I worked on PennMUSH, and it doesn't seem anyone else here is going to answer. We tend to focus on SMAUG-based MUDs here as a general rule.

Probably for a quicker answer, try the PennMUSH forums:

http://community.pennmush.org/