Returning!

Posted by Scarn on Sun 04 Jun 2006 06:30 PM — 5 posts, 24,424 views.

#0
Hi there, I play an assassin on T2T.

We have the "hunt" command, where you follow your prey, syntax of hunting is:

You follow <target> <direction>.

Now, somtimes if the victim is clever he leads you into another party and theres no way to know your way back...so is there any way that you guys could help me make a VBscript that would track my movemnts while hunting and then with a simple alias...run the return route?

Thanks,

Scarn.
#1
Ok! My friend has a Java script that does that same thing...but as all my other stuff is in VB, It wont work. Anyoen can covnert thsi to VB?

You follow @victim (?P<where>.*).



______________________________________





x = GetTriggerWildcard ("follow", "where");
if (x == "north")
{
y = "s";
}
else if (x == "south")
{
y = "n";
}
else if (x == "east")
{
y = "w";
}
else if (x == "west")
{
y = "e";
}
else if (x == "northeast")
{
y = "ws";
}
else if (x == "northwest")
{
y = "es";
}
else if (x == "southeast")
{
y = "wn";
}
else if (x == "southwest")
{
y = "en";
}
route = world.GetVariable("direction");
world.SetVariable("direction", route + "," + y);

______________________________________________

and the alais

________________________________________________


world.GetVariable("direction");
var back = new String("do ")
var len = route.length - 1;
for (i=len; i >= 0; i--)
{
back = back + route.charAt(i);
}
world.Execute(back);
Australia Forum Administrator #2
Take a look at this post:

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=6567

I think ReverseSpeedwalk will do what you want a lot more simply - it reverses a speedwalk direction.

See:

http://www.gammon.com.au/scripts/doc.php?function=ReverseSpeedwalk
#3
Wow, can't believe I stumbled on this. I was looking to do this exact same thing. Do I install this with the normal way of pasting into MUSHclient? I can just add the tablet headings and whatnot...
Australia Forum Administrator #4
Not sure what you mean by installing. The posts above and in the linked thread just seem to be discussing snippets.