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
➜ Progs
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Akula
(24 posts) Bio
|
| Date
| Wed 23 Jan 2002 02:11 AM (UTC) |
| Message
| I am pretty sure that I've seen this done and was curious in what I do to create this. What is the commands to setup a prog that prevents players from leaving an exit unless they give a certain amount of gold to the mob guarding the exit or the mob is killed. (e.g.)
You try leaving south but the Ogre blocks your way!
The Ogre says 'You must pay 50 gold coins to cross this bridge, traveller.'
Oh, and I was also wondering if the act_prog is what causes what LP MUD calls 'room chats'. Room chats are where you are standing in a room and messages will appear every minute or so (e.g.)
The wind blows strongly.
Is this so?
Thanks
Akula
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Wed 23 Jan 2002 04:46 AM (UTC) |
| Message
| On the room you could put a "leave_prog" to force the mobile to make that statement - you might need to check if the mobile exists, so that you let the player leave if he doesn't (ie. has been killed), or, put a "death_prog" on the mobile to transfer you out, so that the player doing the killing gets through the door.
On the mobile you could put a "bribe_prog" to accept the bribe and transfer the player out.
As for periodic messages, try "rand_prog". If you give it a lower percentage then the messages will appear less frequently.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Akula
(24 posts) Bio
|
| Date
| Reply #2 on Thu 24 Jan 2002 03:24 AM (UTC) |
| Message
| If you have any spare time could you please show me a brief example of a bribe_prog where you cannot leave a certain exit without giving an item/money to the mob?
Akula
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Sat 26 Jan 2002 09:00 PM (UTC) |
| Message
| I would make an exit that can't normally be traversed at all, eg. one which needs a key you don't have. Then add a bribe_prog that transfers you into the room the exit leads to. eg.
mpechoat $r Your bribe is accepted.
mpechoat $r You pass through the door to room X.
mpechoaround $r $r bribes the guard and leaves west!
mptransfer $r 12345
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Akula
(24 posts) Bio
|
| Date
| Reply #4 on Sun 27 Jan 2002 04:47 PM (UTC) |
| Message
| My problems were as follows with a similiar version to your suggestion.
I want the exit you cannot enter to still be displayed, and if I have it as a doorway it will not be. And if I do have it displayed you can enter it as you please without paying the bribe.
Also the mptransfer doesn't automatically show the 'look' description as entering a room does and 'mpforce $n look' did nothing.
Any suggestions? :)
| | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #5 on Mon 28 Jan 2002 09:36 PM (UTC) |
| Message
| | Yes, I see what you mean. I can't suggest a simple fix, excepting maybe changing the source code to add another flag. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Tyr
(2 posts) Bio
|
| Date
| Reply #6 on Mon 22 Jul 2002 04:29 PM (UTC) |
| Message
| Couldn't you use a room leave_prog that
mpecho Ogre growls in anger when you try to enter backroom!
mptrans 0.$n 100
Assuming room with Ogre is vnum 100, and then use the bribe to get past the exit. | | 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.
23,136 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top