Not a difficult problem, I just can't think of a solution.

Posted by David Berthiaume on Sun 29 Jan 2006 11:41 PM — 4 posts, 17,805 views.

#0
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?).
Location: 18,8

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.
Amended on Mon 30 Jan 2006 12:43 AM by David Berthiaume
Australia Forum Administrator #1
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&lt;location&gt;\d{1,3}\,\d{1,3})\s+\([\d,]+\)\s*"
   regexp="y"
   sequence="100"
  >
  <send>go to %&lt;location&gt;</send>
  </trigger>
</triggers>

#2
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.
Australia Forum Administrator #3
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.