Register forum user name Search FAQ

Gammon Forum

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 ➜ MUSHclient ➜ VBscript ➜ Returning!

Returning!

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Scarn   (47 posts)  Bio
Date Sun 04 Jun 2006 06:30 PM (UTC)
Message
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.
Top

Posted by Scarn   (47 posts)  Bio
Date Reply #1 on Sun 04 Jun 2006 07:44 PM (UTC)
Message
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);
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Mon 05 Jun 2006 10:36 PM (UTC)
Message
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

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Azoroth   (31 posts)  Bio
Date Reply #3 on Mon 02 Feb 2009 07:48 PM (UTC)
Message
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...
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #4 on Tue 03 Feb 2009 08:38 AM (UTC)
Message
Not sure what you mean by installing. The posts above and in the linked thread just seem to be discussing snippets.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


18,446 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.