Page 1 of 1
Skill Links?
Posted: Tue Jan 18, 2011 11:08 am
by jduartedj
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?
Re: Skill Links?
Posted: Tue Jan 18, 2011 7:07 pm
by rock5
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.
Re: Skill Links?
Posted: Tue Jan 18, 2011 8:24 pm
by jduartedj
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.