Recent Topics

Ads

Any way of looking up an object's name via it's id?

Here you can post addons, or anything related to addons.

Moderators: Management, Web Developer

Forum rules
Before posting on this forum, be sure to read the Terms of Use
Omegus
Posts: 430

Any way of looking up an object's name via it's id?

Post#1 » Tue Jun 09, 2020 10:23 pm

I'm experimenting with making addons and have found an issue that I haven't been able to solve by pulling apart other mods (Enemy and Pure are fantastic learning resources!).

Hypothetical question: if I have an object's ID and that object is not currently targeted by the player, is there any way of looking up the display name of the object or any other details about it (friendly/hostile, player/NPC, etc)?

Thank you

edit: "GetNameForObject" seems to always return nothing
Zomega: RR8x Zealot
Addons: CityFix v1.0

Ads
User avatar
darkt
Posts: 10

Re: Any way of looking up an object's name via it's id?

Post#2 » Wed Jul 15, 2020 12:01 am

i believe the dev tools have something like that.

https://warapi.fandom.com/wiki/WAR_API

Look at "Devbar" download it inside is a tool called "Tooltip Spy" and "APV"'

Tooltip spy is what you need i believe: show you info on your current hover over item: Like Id's and stuff see picture

APV give you info over you characters spells and abilities. Like SpellID

Image

Who is online

Users browsing this forum: No registered users and 2 guests