Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Oprog Question- Deleting the Object?
|
Oprog Question- Deleting the Object?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Seahawk
(2 posts) Bio
|
| Date
| Tue 03 Aug 2010 06:18 AM (UTC) |
| Message
| | I want to make a lever into a one-time use thing where it shatters after being pulled, then pushed. I have it set so it starts out in the up position, got the echoes for the 'shatter' message. To delete the item in question, I tried MPJUNK and MPPURGE, but neither work. Any suggestions? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 03 Aug 2010 09:22 PM (UTC) |
| Message
| |
| Posted by
| Syrin
(4 posts) Bio
|
| Date
| Reply #2 on Tue 03 Aug 2010 11:23 PM (UTC) |
| Message
| | I figured out the reason after digging through how progs work - oprogs set the CHAR_DATA to supermob as a proxy mob, which works fine in most instances, but mpjunk directly references CHAR_DATA ch's inventory, and the item in question wouldn't be in the supermob's inventory - a workaround (that worked) is to just force it to drop with mpforce "drop item" and then mppurge when it's on the ground. It's annoying, though, in that it gives you the drop message, and it won't work in nodrop rooms. | | Top |
|
| Posted by
| Conner
USA (381 posts) Bio
|
| Date
| Reply #3 on Thu 05 Aug 2010 03:51 AM (UTC) |
| Message
| | One solution to that problem might be to look through the stock progs in New Darkhaven. I believe that most of the shopkeeps (or at least certain mobs who routinely get things from players) have in their progs to every so often mpgoto a room that's not player accessible, drop whatever they've gotten for purging, then use mppurge to get rid of it, then mpgoto whence they came. Even if a player is watching them do this, it's all completely over and done with before they'd ever know anything transpired and there's no messages displayed about it. |
-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
19,454 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top