|
jmmq Newbie
Joined: 22 Nov 2007 Posts: 6
|
Posted: Sun Dec 09, 2007 11:18 pm
last dir in slow walk (w/o mapper) |
Ok, i have a slow walk script that goes to different areas and do some things,
sometimes for problems with mobs or something i need to re-enter the last dirrection sended to the mud.
example...
script does N
mud=> U are currently fighting
i need to re-do the N (or any dirrection) when the mob dies and continue the slowwalk in the right room.
p.d: I'm not using the mapper for this. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Mon Dec 10, 2007 1:49 am |
You can simply all you move commands n,w,s,e etc to store the direction in variable. That way you trigger can check to see if you moved successful then resend the lastdir variable.
The mapper has a %lastdir special variable, but since you're not using the mapper I don't think it will you. |
|
_________________ Asati di tempari! |
|
|
|
Iceclaw Apprentice
Joined: 11 Sep 2005 Posts: 124
|
Posted: Mon Dec 10, 2007 5:19 am |
Yeah, I did something like this and ended up just storing the direction myself in a varable done from the alias
#alias {e} {#send east;#var lastdir east}
#trig {When the fight is over} {@lastdir} |
|
|
|
jmmq Newbie
Joined: 22 Nov 2007 Posts: 6
|
Posted: Mon Dec 10, 2007 10:40 pm |
Thx
can i store the direction in a variable from the direction settings?
i mean...
because
my e direction = e|este|est|east comands
or i should name the alias with the first entry of commands (e) ? |
|
|
|
Fang Xianfu GURU
Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Tue Dec 11, 2007 3:47 am |
Perhaps an oninput trigger would be easiest.
#oninput {({north|south|east|whatever})} {lastdir = %1} |
|
|
|
|
|