|
1. Mob Prog Boat Ride and saving doors.
|
|
Mon Dec 5, 2005 [12:24 AM]
|
inkpanther
JCinkpanther@hotmail.com
member since: Jul 13, 2005
|
Reply
|
|
I am trying to create a boat ride using mobprogs. I have like 16 rooms with different desc. What I want is after the player has paid for the person the be transfer from room. Unforunately I cant seem to get the second mob to recognize the players is in the room after the transfer. If the player walks into the room all is fine and the mob transfers. I was wondering if anyone knew of a way to get the mob to recognize someone is in the room on a transfer?
My second question is this. When creating a door and flagging it door closed the doors come open if copied over or if the builderport crashes. What would I do to fix that? How do I get the doors to save?
Iskra
(Comment added by inkpanther on Mon Dec 5 14:01:56 2005)
Sorry I forgot to mention it ROM code base and I am working in OLC.
|
|
|
MY FAVORITE MUD LEGENDS FORGOTTEN
hera.twilightstar.net port 9000
|
|
2. RE: Mob Prog Boat Ride and saving doors.
|
|
Mon Dec 5, 2005 [10:08 AM]
|
Massaria
Email not supplied
member since: Apr 17, 2004
|
In Reply To
Reply
|
|
It's hard to help you here, since we cannot know what kind of scripting language you're using, and in earnest, it doesn't seem very stable - has some serious flaws it seems.
Anyways, you might want to try transferring the character to the next room, and then quickly sending some message to the mob in the 'arrival room', maybe the transportee's name, so it'll know when and who to transport further down the river or whatever.
My second question is this. When creating a door and flagging it door closed the doors come open if copied over or if the builderport crashes. What would I do to fix that? How do I get the doors to save?
Again, impossible to tell you without knowing the code base you're using. With that, someone (prolly not me ;) might be able to clue you in.
Good Luck!
|
|
|
|
|
3. RE: Mob Prog Boat Ride and saving doors.
|
|
Mon Dec 5, 2005 [11:43 AM]
|
inkpanther
JCinkpanther@hotmail.com
member since: Jul 13, 2005
|
In Reply To
Reply
|
|
I am sorry. I forgot to give you the code base. I am working in ROM 2.4 and OlC. I am using the mobprog from olc to try and make the boat ride. And the door issue from OlC also.
|
|
|
MY FAVORITE MUD LEGENDS FORGOTTEN
hera.twilightstar.net port 9000
|
|
4. RE: Mob Prog Boat Ride and saving doors.
|
|
Mon Dec 5, 2005 [3:56 PM]
|
Molly
molly.4d@tele2.se
member since: Jul 29, 1999
|
In Reply To
Reply
|
|
The easiest way to set up the boat ride is to have the scripted mob teleport everyone (including itself) to the new room, and then just continue the script room by room after an appropriate wait.
There are of course more sophisticated ways of doing it and, at least with the DG_scripts that we use in my mud, a player being teleported into a room is treated by a script in the same way as if he walked in. So greet scripts work fine for us.
Anyhow, teleporting all should do the trick, and if it doesn't teleport the mob itself, use 'mpgoto '.
About the door problem, I'm not sure. I assume you set the door in zedit, and not with a script? Scripted doors tend to screw up if the mud reboots at the wrong moment, so I avoid those myself.
Make sure the door is set exactly the same from both sides, i.e. if it is pickproof it needs to be set as that in both rooms, and it also needs to be reset as closed or locked in both rooms to work properly. (I work in a Circle codebase though, so this might not be the same for you at all).
Molly O'Hara of 4 Dimensions
|
|
|
|
|
5. RE: Mob Prog Boat Ride ROM OLC
|
|
Tue Dec 6, 2005 [8:57 PM]
|
inkpanther
JCinkpanther@hotmail.com
member since: Jul 13, 2005
|
In Reply To
Reply
|
|
I am trying to make a boat ride in ROM OLC mobprogs. I got my GRALL which works it greets and tells the price of passage. I got my BRIBE which seems to be working. I pay gold and it transfers me and the group to the next room. But the DELAY isnt working. I don't really understand the delays yet. But from what I read I tried to piece together what i thought was right and point to it in the BRIBE. Anyways is anyone familar with ROM OLC mobprogs and perhaps can look at this code and tell me where I am going wrong? Thanks
GRALL 100
if ISIMMORT $n say Hello there your godliness $N. else nod $N say All aboard! The Riverserpent is setting sail for Salidar! say Only 10 gold coins and we can be on our way. say You need to sit in the boat! endif
BRIBE 10
if isdelay $i break else say Sit back and enjoy the ride. We shall be arriving in Salidar in 20 minutes. mob echo The Riverserpent embarks on its voyage down the river. mob gtransfer $q 26303 mob remember $n mob delay 3 endif
DELAY 100
if hastarget $ mob echo The Riverserpent rushes forward down the river. break endif if room $i == 26303 mob transfer all 26302 mob delay 3 break endif if room $i == 26302 mob echo The Riverserpent lurches onward down the river. mob transfer all 26301 mob delay 3 break endif if room $i == 26303 mob echo The Riverserpent continues down the river. mob transfer all 26302 mob delay 3 break endif if room $i == 26302 say Please everyone remain sitting! mob transfer all 26301 mob delay 3 break endif if room $i == 26301 mob echo The "Riverserpent" continues to sail onward. mob transfer all 26300 mob delay 3 break endif if room $i == 26300 say I have travel this river almost all my life. Is this your first trip to Salidar? mob transfer all 26308 mob delay 3 break endif if room $i == 26308 mob echo A salidar soldier waves from the bank at the captain. mob echo Nods back at the the soldier. mob transfer all 26309 mob delay 3 break endif if room $i == 26309 mob echo The Riverserpent picks up speeds as it passes along the river. mob transfer all 26310 mob delay 3 break endif if room $i == 26310 say I have seen fish jumper higher then that. That is not a lie. mob transfer all 26311 mob delay 3 break endif if room $i == 26311 Mob echo The wind catches the sails once again the Riverserpent soars pass the banks. mob transfer all 26312 mob delay 3 break endif if room $i == 26312 say The weather is good this time of year. Yes, indeed. mob transfer all 26313 mob delay 3 break endif if room $i == 26313 mob echo The Riverserpent takes the turn with ease. mob transfer all 26314 mob delay 3 break endif if room $i == 26314 say One time a friend and I fish right her on the banks. We caught a whopper of a fish that day. say You should of seen the size of that fish. Boy, was those the good ole days. mob transfer all 26315 mob delay 3 break endif if room $i == 26315 say My father used to work at this old mill. He walked to work across that very bridge up ahead. mob transfer all 26316 mob delay 3 break endif if room $i == 26315 mob echo nods to his crew. say Lower the sails bridge ahead! mob transfer all 26492 mob delay 3 break endif if room $i == 26492 mob echo The captain singles to his crew to tie the craft down. mob transfer all 26505 mob delay 3 break endif if room $i == 26505 say Please watch your step as you exit the boat. mob transfer all 26432 mob delay 3 break else mob forget endif
|
|
|
MY FAVORITE MUD LEGENDS FORGOTTEN
hera.twilightstar.net port 9000
|
|
6. RE: Mob Prog Boat Ride ROM OLC
|
|
Wed Dec 7, 2005 [9:39 PM]
|
inkpanther
JCinkpanther@hotmail.com
member since: Jul 13, 2005
|
In Reply To
Reply
|
|
Thanks everyone for you help. We got it working. I just noticed someone had mention using mob goto that what we finally used and it worked. Sorry I didnt see that earlier might of saved me some time. But then again I never did mobprogs so I guess I had to go the long way round.
Thanks again.
|
|
|
MY FAVORITE MUD LEGENDS FORGOTTEN
hera.twilightstar.net port 9000
|
|