What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

How to get GPS coords

Status
Not open for further replies.

Benninger

Member
Joined
Apr 22, 2010
Messages
457
Reaction score
0
Hi there,

after reading arounf I started to program my very first plugin.

First questions where I cannot find answers:

1. How do I get my current GPS coordinate (my current one. I want to use a MoveTo(x,y,z) to my current position).


2. In a *.cs file I found:
CollectItemsInZone("Iron Vein","Mining: Spend up to 10 Labor to extract ore.",z);​

Has "Fortuna Vein" to be translated, because I use a gemran client ("Eisenader")? Where does the text "Mining: Spend up to 10 Labor to extract ore.",z);
" come from? Where can I get the needed textx for other actions or (according to CollectItemsInZone Method (UInt32, UInt32, Zone)) the doodadStageId and skillId?

Best regards,
The Benninger
 
Last edited:
How do I get my current GPS coordinate (my current one. I want to use a MoveTo(x,y,z) to my current position).
You havent your GPS coordinates. You have only your world pos coordinates. me.X, me.Y, me.Z
Has "Fortuna Vein" to be translated, because I use a gemran client ("Eisenader")?
Nope, AB use only english database, so you should use english names, or IDs instead of names
Where can I get the needed textx for other actions
Try found in google AA database, or you can use sites like "http://archeagedatabase.net/us/"
 
Thank you Out, I understood (and asked the wrong thing, because of my bad english).
- GPS = my Coords
- My current position can be read using the little window from AB (that with the name, life, mana, xy-ccord)
- Using the english "Iron Vein" works now - was another fault in my plugin

I can move now ^^ Next is reading db3 :)
 
the ,z after the skill is the ZONE it will execute the skill ... in that specific case i think its a RoundZone(me.x,me,y,2) (2m radius around you)

it should be a few lines above that one. something like

var z = new RoundZone (...)
 
Thank you Out, I understood (and asked the wrong thing, because of my bad english).
- GPS = my Coords
- My current position can be read using the little window from AB (that with the name, life, mana, xy-ccord)
- Using the english "Iron Vein" works now - was another fault in my plugin

I can move now ^^ Next is reading db3 :)

Code:
double X=me.X;
double Y=me.Y;
double Z=me.Z;
You can use GPS editor with plugin for easy creating paths.
Code:
DoodadObject tmpDoodad=getNearestDoodad Method ("Iron vein");
Log (tmpDoodad.ID);
U can use this code for receiving ID's of Doodads. ID is universal for all types of clients.
Or use plugin for easy dump all infos, look in Other section.
 
Status
Not open for further replies.
Back
Top