WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Getting Mob coords possible? (https://www.wowinterface.com/forums/showthread.php?t=10257)

thermitesnipes 05-29-07 09:51 AM

Getting Mob coords possible?
 
Using the GetPlayerMapPosition() is it possible to Type in a Name of anything NPC/Player/Mob and get a rough estimate of its coords? I want to try to make this possible to hunt anything and get coords to it. I have it setup as a Edit Box that you can type in the name of unit, hit a button and itll register its coords in a text plane on the same UI. Just wonderin if anyone would like to experiment and help me out with something like this, even if itll just give me any player coords.

[Edit]: Also to get coords in an instance could one use a 100x100 plane and get coords registered by mathematically calculating your position in transition to the 100x100 plane?

[Edit]: Also another thing, is the closer mob's coords would be displayed and I would need help going about that. Or could expand UI to fit more slots for coords of different mobs, but I think that would take more coding than getting the job would need. also If Mob is dead nil coords and move on to next set.

Seerah 05-29-07 10:25 AM

If you haven't yet, read over this page: http://www.wowwiki.com/API_GetPlayerMapPosition

thermitesnipes 05-29-07 10:29 AM

I have but I wish to artificially create a coord system for instances based on a 100x100 square with a overlay map and a position based on where you start in the instance and how you move. as for the mobs being detected, I suppose you cant unless you apply a variable for "player" to read as Mob name but I dunno. Pooey.

Sajomatic 05-29-07 10:42 AM

You could see how MobMap does it ??

http://www-en.curse-gaming.com/downloads/details/7190/

Just trying to help :D

Seerah 05-29-07 11:51 AM

I believe MobMap works like a pre-compiled database.

Sajomatic 05-29-07 12:54 PM

Quote:

Originally Posted by Seerah
I believe MobMap works like a pre-compiled database.


Ahh yes, QFT. It is a database.

And now that i re-read the questions, I see you are looking for a more dynamic type of detection.

Cool idea :p

Phanx 05-29-07 02:16 PM

You could look at GPSLib over on files.wowace.com. It is a library whose purpose is to determine coordinates for the player, including inside instances. As far as I know, though, there's no way to get coordinates for a mob other than by standing on top of the mob, or by making a guess based on your position and facing and an estimated distance between you and a mob in front of you.

thermitesnipes 05-29-07 04:29 PM

Quote:

Originally Posted by Phanx
You could look at GPSLib over on files.wowace.com. It is a library whose purpose is to determine coordinates for the player, including inside instances. As far as I know, though, there's no way to get coordinates for a mob other than by standing on top of the mob, or by making a guess based on your position and facing and an estimated distance between you and a mob in front of you.

I was thinking more of for mobs that dont have a definate location I.E (Rare Spawns and Blood Elf Bandits) Say for instance enter an instance click the button and if it returns 0,0 then your rare mob or player isnt there, exit and try again till it returns a coord and you know your rare mob is there. Also in main maps for rare mobs or for traveling mobs. And for finding those horrible to find Blood Elf bandits. lol.

Phanx 05-30-07 01:22 PM

Not possible. If you can't see a mob (literally in view, or able to target it by name), there's no way for your game client to tell if it exists or not. Like I said in my last post, you can only get coordinates for yourself and party members, and the only way to get coordinates for a mob is by standing on top of it (so its coordinates are the same as yours, which is how things like Gatherer and rare-spawn location recorders work), or by standing facing it and estimate its coordinates based on your coordinates and the distance between you and it. I'm pretty sure the fact that you can't directly get coordinates for mobs is an intentional choice on Blizzard's part to prevent the kind of thing you're looking to do.

Dreadlorde 05-30-07 01:55 PM

MobMap

(too short)

thermitesnipes 05-30-07 02:09 PM

blasphemy.

Shirik 05-31-07 08:38 AM

Quote:

Originally Posted by Dreadlorde
MobMap

(too short)

Read the question first...


Anyway, like has already been said, it's not directly possible, intentionally. The best you can do is estimate where it might be, but even that is difficult as you only have a set of bracketed ranges you can use, and on top of that, it could be anywhere within that radius (you don't have to be facing something for it to be in range). Thus, even though you see the mining nodes far before you actually get to them, gatherer will not record it until you've tapped it, for the sole reason that it is far too unpredictable otherwise.

Quote:

Originally Posted by thermitesnipes
I have but I wish to artificially create a coord system for instances based on a 100x100 square with a overlay map and a position based on where you start in the instance and how you move. as for the mobs being detected, I suppose you cant unless you apply a variable for "player" to read as Mob name but I dunno. Pooey.

The reason this hasn't already been done is because it's impossible. There is no system for getting any coordinates; you can't tell "how you move." If you tried to use that function, it would return nil in an instance.

Dreadlorde 05-31-07 05:15 PM

Quote:

Originally Posted by Shirik
Read the question first...

blah

It's the closet thing to what s/he wants.


Sajomatic 06-01-07 08:25 AM

/popcorn
(too short)

thermitesnipes 06-03-07 02:19 PM

Quote:

Originally Posted by Shirik
Read the question first...


Anyway, like has already been said, it's not directly possible, intentionally. The best you can do is estimate where it might be, but even that is difficult as you only have a set of bracketed ranges you can use, and on top of that, it could be anywhere within that radius (you don't have to be facing something for it to be in range). Thus, even though you see the mining nodes far before you actually get to them, gatherer will not record it until you've tapped it, for the sole reason that it is far too unpredictable otherwise.



The reason this hasn't already been done is because it's impossible. There is no system for getting any coordinates; you can't tell "how you move." If you tried to use that function, it would return nil in an instance.


One thing I want to comment on is using getting a playter position in an instance. I dont want to use that function, instead create a algorithm to estimate on an interface where you are in an instance. You can use metamap to see a map of an instance but I want a node to show on that interface where you are. for seperate instances you would need a start position for the algorithm to read, and somehow read your movement by the buttons you press and for how long, But it wouldnt only be useful in instances, it could be useful for something else....but im not sure of it yet or if that is even possible...so ok this idea is totally dust.


All times are GMT -6. The time now is 01:12 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI