Skill Links?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Skill Links?

#1 Post by jduartedj » Tue Jan 18, 2011 11:08 am

I was wondering, Items have an ItemLink and skills also have a "skill link", but how do we get a "skill link" ?

I was thinking instead of just accepting Item Links in my gameText function it would Also Accept Skills!

Bu ti don't know how to get a skill link. any ideas?
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

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

Re: Skill Links?

#2 Post by rock5 » Tue Jan 18, 2011 7:07 pm

Rombot manually creates the link itself. You could have a look at how it does it and adapt it to create a skill link too.

It creates an item link like this

Code: Select all

		self.ItemLink = string.format( "|Hitem:%x|h|c%x[%s]|r|h", self.Id, self.Color or 0, self.Name );
A non level skill looks like this.

Code: Select all

|Hskill:540000 -1|h|cff8080ff[Attack]|r|h
A skill with a level looks like this.

Code: Select all

|Hskill:491586 50|h|cff8080ff[Freeze+50]|r|h
You should be able to create your own links with this information.
  • 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
jduartedj
Posts: 599
Joined: Sat Dec 19, 2009 12:18 am
Location: Lisbon
Contact:

Re: Skill Links?

#3 Post by jduartedj » Tue Jan 18, 2011 8:24 pm

GREAT! itemlinks are already supported in gameText, It'll probably support Skill links in next update. I might even submit to you a couple of lines that create the skill link within the bot.
Thanks for reading! :D

Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests