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
➜ General
➜ Not a difficult problem, I just can't think of a solution.
|
Not a difficult problem, I just can't think of a solution.
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| David Berthiaume
(202 posts) Bio
|
| Date
| Sun 29 Jan 2006 11:41 PM (UTC) Amended on Mon 30 Jan 2006 12:43 AM (UTC) by David Berthiaume
|
| Message
| Well, the mud I play uses a vmap for all it's room, it's quite impressive. each room has a room number using a binary array(proper term?).
When you "sense" in a direction, it gives you a list of mobs and their locations:Treacherous Saiyan 23,89 (376)
Treacherous Saiyan 63,122 (542)
High Class Saiyan 113,128 (7,782)
Treacherous Saiyan 23,152 (451)
Saiyan Elite 64,149 (19,346)
Saiyan Elite 37,37 (10,620)
Bardock 95,164 (20,000)
Saiyan Elite 43,57 (18,561)
Saiyan Elite 114,133 (10,573)
Saiyan Elite 19,70 (16,722)
Low Class Saiyan 6,153 (2,062)
Low Class Saiyan 73,48 (1,080)
High Class Saiyan 128,49 (6,546)
What I want to be able to do is just go to any specific location easily. by using the location of the mobs. I know that a lot of mobs have the same name, but there are unique mobs, like Bardock. If I make a trigger to match on that name... I.E. @Targetname 95,164 (20,000)
I'd like to be able to go to that via flying to that location.
Might I add, I'm using vbscript. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Mon 30 Jan 2006 07:12 PM (UTC) |
| Message
| I don't know the exact format of your "go to" command but this seemed to do the trick:
<triggers>
<trigger
custom_colour="2"
enabled="y"
expand_variables="y"
match="@Targetname\s+(?P<location>\d{1,3}\,\d{1,3})\s+\([\d,]+\)\s*"
regexp="y"
sequence="100"
>
<send>go to %<location></send>
</trigger>
</triggers>
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| David Berthiaume
(202 posts) Bio
|
| Date
| Reply #2 on Thu 02 Feb 2006 11:35 PM (UTC) |
| Message
| There is no go to command.
I have to physically fly to them. if I'm at 18, 8 and they are at 125, 200, I have to fly in that direction.
the command is fly 5 (direction)
The vmaps coordinates are all the same format. They all start at 0, 0 and east it goes up, and north it goes up.
If they are at 100, 100 and I am at 0, 0 then it is 100 to the east and 100 to the north.
Now you can fly 5 Northeast, or northwest, and what not.
That's kinda what I'd like to be able to do. See my location, see their location, and using fly 5 (direction) have it automatically fly there. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Fri 03 Feb 2006 12:20 AM (UTC) |
| Message
| | Well, I am sure you have enough to go on with. You need to know your location, and the other location, so you have 2 pairs of numbers. Subtract the first in the pair from the first in the other pair, that gives you the north amount (or south if negative I presume). Similarly for the second number in the pair. |
- 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.
16,968 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top