Page 1 of 1

Recall-Spell ID

Posted: Thu Oct 20, 2011 11:54 am
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!

Re: Recall-Spell ID

Posted: Thu Oct 20, 2011 7:33 pm
by lisa

Code: Select all

RoMScript('CastSpellByName("Heffner Camp Transport Spell")')

Re: Recall-Spell ID

Posted: Fri Oct 21, 2011 1:14 am
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?

Re: Recall-Spell ID

Posted: Fri Oct 21, 2011 2:52 am
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.

Re: Recall-Spell ID

Posted: Fri Oct 21, 2011 3:19 am
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.