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
➜ mptransfer $n not working
|
mptransfer $n not working
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Xavier
USA (6 posts) Bio
|
| Date
| Sun 28 Sep 2003 04:43 AM (UTC) |
| Message
| For some reason or another I can't get this mptransfer to work... hope someone can tell me if I'm doing something wrong.
> speech_prog p evil~
mpmset $n align -1000
say Then it is done, your choice has been made.
mpecho A dark cloud envelopes you, instantly you feel an evil glow about yourself.
if isevil($n)
mptransfer $n 201
mpecho You are swept away before you can blink.
endif~
I have one for evil, good, and neutral, the player must choose his/her alignment. The alignment change works, just not the transfer. | | Top |
|
| Posted by
| Rob Harper
(108 posts) Bio
|
| Date
| Reply #1 on Sun 28 Sep 2003 07:37 AM (UTC) |
| Message
| | Looking at that prog theres no need for the ifcheck, have you tried it without it? | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #2 on Sun 28 Sep 2003 03:05 PM (UTC) |
| Message
| Yes, there is no need for the ifcheck... you already set $n to evil so no need to check for it.
However, I don't think mpmset will work on players. You may have to look into that. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Xavier
USA (6 posts) Bio
|
| Date
| Reply #3 on Sun 28 Sep 2003 08:55 PM (UTC) |
| Message
| | The mpmset works just fine... but the "mptransfer $n" still doesn't work even with taking out the "if isevil($n)" check I had in it. | | Top |
|
| Posted by
| Rob Harper
(108 posts) Bio
|
| Date
| Reply #4 on Sun 28 Sep 2003 08:59 PM (UTC) |
| Message
| | Hrmm after removing it I can see why the echo might not work but I dont see why the transfer doesnt. | | Top |
|
| Posted by
| Xavier
USA (6 posts) Bio
|
| Date
| Reply #5 on Sun 28 Sep 2003 09:02 PM (UTC) Amended on Mon 29 Sep 2003 04:06 AM (UTC) by Xavier
|
| Message
| I even tried "mptrans 0.$n 201" which I've seen around sometimes... it doesn't work either.
I've also tried it without anything but "mptrans 0.$n 201" or "mptransfer $n 201" ... that doesn't work either.
Do I need a certain flag in the room to be able to transfer people out of it... or does the mob need a certain flag to be able to transfer players? | | Top |
|
| Posted by
| Xavier
USA (6 posts) Bio
|
| Date
| Reply #6 on Mon 29 Sep 2003 04:08 AM (UTC) |
| Message
| | I uploaded this area to my afkmud and converted it... no luck either... there has got to be something ... any more ideas would be greatly appreciated. | | Top |
|
| Posted by
| David Haley
USA (3,881 posts) Bio
|
| Date
| Reply #7 on Mon 29 Sep 2003 05:47 AM (UTC) |
| Message
| | Can the mob see whatever it's trying to transfer? That could be the problem, but probably isn't, since the mpmset wouldn't (shouldn't...) work either. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Rob Harper
(108 posts) Bio
|
| Date
| Reply #8 on Mon 29 Sep 2003 02:42 PM (UTC) |
| Message
| | If your working from a shell check the logs to see what it says when it trys to execute the prog, or just pay attention to the log channel when you do it. | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #9 on Mon 29 Sep 2003 07:09 PM (UTC) |
| Message
| | I tried this myself, there were no log/bugs. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Nick Cash
USA (626 posts) Bio
|
| Date
| Reply #10 on Mon 29 Sep 2003 09:11 PM (UTC) |
| Message
| Just some checing here. I tried this on my mud and I got this error:
You say 'evil'
A cook says 'Then it is done, your choice has been made.'
A dark cloud envelopes you, instantly you feel an evil glow about
Log: [*****] FILE: $ LINE: 0
Log: [*****] BUG: Mptransfer - No such location, Mob #9409.
You are swept away before you can blink.
Now, this is just mine. For 1, 201 doesn't exist. Perhaps you may wan't to check on that. Make sure the room is there. Also, one other thing you might check is that if the room is there, but isn't installed, make sure it's loaded. Other then that, I'm at a loss. Sorry I haven't been much help, but perhaps you just need to go check on room 201 and see whats happening there. |
~Nick Cash
http://www.nick-cash.com | | Top |
|
| Posted by
| Zeno
USA (2,871 posts) Bio
|
| Date
| Reply #11 on Mon 29 Sep 2003 09:31 PM (UTC) |
| Message
| Works fine for me.
You say 'evil'
A newly created testmob says 'Then it is done, your choice has been made.'
A dark cloud envelopes you, instantly you feel an evil glow about yourse
Transfered me to the room and everything. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | | Top |
|
| Posted by
| Xavier
USA (6 posts) Bio
|
| Date
| Reply #12 on Mon 29 Sep 2003 09:49 PM (UTC) |
| Message
| | Yeah, the room is there and installed... this is the craziest thing. I wonder if the problem might be because the area is above the players level... an immortal can transfer and just get the warning about the player is in an area above his level... but perhaps it won't let a mob do it... I will see and let you all know. | | Top |
|
| Posted by
| Xavier
USA (6 posts) Bio
|
| Date
| Reply #13 on Mon 29 Sep 2003 10:12 PM (UTC) |
| Message
| | K... I got it working... my area was set at level 1 ... the players that come in there have been advanced by the autoadvancer and are level 2... I changed the area to level 2 and it works great. | | 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.
36,562 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top