Recall-Spell 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

Recall-Spell ID

#1 Post by gloover »

Hey Rock, hey lisa.

is it possible to get out the ID of "recall" and "recall to heffner..". I mean not to use spell position 1,2 for recall - its easy, but "recall to heffner.." is based on char lvl - so i could be mooved to another position.

I want be able to cast this spell, using CastSpellbyName or better CastSpellByID (if it is possible)?

thx for ya answer in advance!
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Recall-Spell ID

#2 Post by lisa »

Code: Select all

RoMScript('CastSpellByName("Heffner Camp Transport Spell")')
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: Recall-Spell ID

#3 Post by gloover »

Oh, easier I thought, thx lisa.

And how to get out the spell's cooldown using spells name?
This RoMScript("GetSkillCooldown(1,4);"); works, but how to use splells Name? RoMScript("GetSkillCooldown("Heffner Camp Transport Spell");"); I got a syntax error?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Recall-Spell ID

#4 Post by lisa »

the cooldown function doesn't use the name, it only uses tab and number. Recall and the teleports do share the cooldown though and recall is always 1,2

Code: Select all

local cooldown, remaining = sendMacro("GetSkillCooldown(1,2);")
if remaining > 1 then
printf("skill on cooldown\n") -- skills on cooldown
else
RoMScript('CastSpellByName("Heffner Camp Transport Spell")') -- use teleport
end
Something like that will do what you want.
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: Recall-Spell ID

#5 Post by gloover »

:idea: Why it haven't occured to me! You've right lisa, recall and other stransport spells have the same cooldown! :oops:
Thx again.
Post Reply