Here is a game addon that shows the ids of things in game. This is an addon, not a userfunction, so it goes in "Runes of Magic/Interface/Addons".
Features:
Shows Ids of thing you point at in it's tooltip, except fot buff ids which are printed to chat.
Currently supported tooltips include:
- Unit Ids (eg. mobs and npcs),
- Item Ids (eg. bag, bank, magicbox and itemshop items),
- Skill Ids (in the Skillbook),
- Buff and debuff Ids (on the player or others)
- Title Ids (In the title interface)
- Mall Ids and GUIDs (ie. itemshop items)
- Store Ids (both sell and buyback tabs)
- Guild bank Ids.
- Quest Ids
Includes a settings frame where you can choose which Ids you wish to see and what color the ids should be.
The settings frame can be called with the slash commands
If you have AddonManager you can also use the addonmanager button.
Makes 2 new functions available for users to use
GetIdName(id)
Similar to the bot function of the same name, it returns the name associated with that id.
GetNameIds(name)
This returns a table of ids that match that name.
Remembers your settings to restore them the next time you start the game.
Note: Accurate Unit Ids can't be gotten from the game so it lists all matching ids. If you get multiple matches but you want the exact id then use "rom/getid" in the micromacro console.
Note2: The scan for the ids, used with Unit tooltips, takes a few seconds. So if you point at a mob or npc within a few seconds of the game starting, you might see "Still scanning" instead if the id.
Note3: GetIdName and GetNameIds now only work for Unit range of Ids because the scan is faster and so you don't get non-unit ids in the unit tooltips. You can easily increase the scan range if you need the full range of ids for some other purpose.
Hmmm.... Maybe i'm losing it. But I cant get the functions to work.
GetNameIds(name) where name is the the name of the object or npc.
How do I run the function.
For example I want the Id for the First Boss in Bethomia (Hoson) so I can find the drop rates of the items.
What do I type?
/script ll = GetNameIds("Hoson") for k,v in pairs(ll) do SendSystemChat(v) end
That would print in game any Id's for the NPC Hoson
106853, 107581, 107583
Unfortunately I don't know of any table print functions in game and RoMScript would only return table: 3B438540 and not the actual table, hence the long line to just print the Id's, maybe Rock should think of changing the GetNameIds function to print each Id and then also return the table afterwards, purely to make it user friendly??
Remember no matter you do in life to always have a little fun while you are at it
I think that would make things not clear. 'GetNameIds' gets the Ids of the name. It's not a print function. And adding true to mean 'print the results' is not intuitive. I'd probably just create a new function, something like,
function PrintNameIds(name)
local ids = GetNameIds(name)
if ids then
for k,v in pairs(ids) do SendSystemChat(v) end
else
SendSystemChat("Name not found")
end
end
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
For example I want the Id for the First Boss in Bethomia (Hoson) so I can find the drop rates of the items.
Can you explain, how you want to read out the drop rates?
AlterEgo95
I think he means he would record the number of drops and then use that to determine the drop rate. So, if he did 100 runs on the 1st boss and it dropped item "X" 10 times that would be a 10% drop rate.
For example I want the Id for the First Boss in Bethomia (Hoson) so I can find the drop rates of the items.
Can you explain, how you want to read out the drop rates?
AlterEgo95
I have been a fan of Zeus16 over on Curse. And he posted how to find the drop id's of loot that is linked to a particular mob (in my case; A Boss) I need to the know the id's so I can find it in the npcobject.db tables. But using the script Lisa posted I got it to work.
Yeah his addons are nice, I know him he plays on my server ^^
I'm going to try finding the drop rates tomorrow too Didn't know that this would be possible.
rock5 wrote:The quest log doesn't pop up a tooltip
I had a look and some quests do and some don't, so yeah no point doing it that way if you only get it for some.
Do the quests usually have the lvl next to them or was that added in by advanced quest log?
I didn't noticed that.
Sorry to bring up a unreasonable suggestion.
In fact, I already wrote a script to output quest information.
It's just nice to have.
It wasn't at all unreasonable. Obviously quest Ids are something that needed to be added because it's one of the things us botters use in our scripts.
Anyway, had another go at it and didn't find it so hard. Went back to the basics. The quest items have a mouse onenter event. That functions just checks if the quest name is too long to be displayed and shows the tooltip. It's a small enough function that I just copied it over to the addon and added a bit of code to always show the id if the option is enabled.
Now at version 1.0b2
Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
rock5 wrote:It wasn't at all unreasonable. Obviously quest Ids are something that needed to be added because it's one of the things us botters use in our scripts.
Anyway, had another go at it and didn't find it so hard. Went back to the basics. The quest items have a mouse onenter event. That functions just checks if the quest name is too long to be displayed and shows the tooltip. It's a small enough function that I just copied it over to the addon and added a bit of code to always show the id if the option is enabled.