mptransfer $n not working

Posted by Xavier on Sun 28 Sep 2003 04:43 AM — 14 posts, 38,597 views.

USA #0
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.
#1
Looking at that prog theres no need for the ifcheck, have you tried it without it?
USA #2
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.
USA #3
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.
#4
Hrmm after removing it I can see why the echo might not work but I dont see why the transfer doesnt.
USA #5
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?
Amended on Mon 29 Sep 2003 04:06 AM by Xavier
USA #6
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.
USA #7
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.
#8
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.
USA #9
I tried this myself, there were no log/bugs.
USA #10
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.
USA #11
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.
USA #12
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.
USA #13
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.