Get own ID?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Get own ID?

#1 Post by gloover » Mon Dec 19, 2011 1:07 pm

Hey guys and experts

rock, lisa how can I get the players id?
NPC's and objects can be readed in runsdatabase, but I dont know how to get the players id (own or target player)
Is it possible, when yes: how?

thx in advance

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Get own ID?

#2 Post by lisa » Mon Dec 19, 2011 7:28 pm

players ID is 1001

I think you might be after the address?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Get own ID?

#3 Post by rock5 » Mon Dec 19, 2011 9:59 pm

I think there are 4 player id depending on race and sex. I think it's 1001 to 1004.
  • 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.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

User avatar
Administrator
Site Admin
Posts: 5313
Joined: Sat Jan 05, 2008 4:21 pm

Re: Get own ID?

#4 Post by Administrator » Mon Dec 19, 2011 10:08 pm

Maybe he's looking for the GUID (Global Unique Identifier) instead?

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Get own ID?

#5 Post by gloover » Tue Dec 20, 2011 2:27 am

Of course, Admin - thats what I'm looking for.

It could be realized with API's UPDATE_MOUSEOVER_UNIT (arg1,arg2) or UNIT_TARGET_CHANGED but I dont know how exactly?
In WoW it was easier using UnitGUID("target"), but here in rom I'm out of basics to create something like that.

May U know, admin, rock, lisa?

PS: I've tried this one /run DEFAULT_CHAT_FRAME:AddMessage(UnitGUID("player"))
but I get a variable number depending on the zone and the number was something between 50 - 3000.
I know the GUID must be something above 130.000 - so back to beginning :-(

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Get own ID?

#6 Post by lisa » Tue Dec 20, 2011 4:47 am

you mean you want

Code: Select all

player.GUID
?
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Get own ID?

#7 Post by gloover » Tue Dec 20, 2011 5:42 am

Yes lisa, thats what i mean

player GUID and target GUID, well formated such like the npc format XXXXXX i.e. 104146 for Mendoza Ayekin

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Get own ID?

#8 Post by lisa » Tue Dec 20, 2011 6:25 am

I think you are getting confused.

mobs and NPC have an Id, in your example the Id of Mendoza Ayekin is 104146.

You can get the target's Id by using

Code: Select all

rom/getid.lua
and then point your mouse at any object/npc/mob and the ID will be on micromacro window.

If you were trying to use the Id in code then you use it like this.

after you have targeted something then

Code: Select all

target = player:getTarget();
then the id is

Code: Select all

target.Id
If I knew what you were trying to do it would be a lot easier to help you.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests