Bind script to hotkey or keyword?
Hey! I've got this script and I would like to preferably bind it to a hotkey but could settle for a keyword if its not possible.
@DarkstaR @kamilqq
What should I add to this script in order to bind it?
For example if i use F1 this script will run once.
local spells = {"Utori Bomb Vis", "Utori Bomb Flam", "Exevo Vort Lux", "Exori Pyro"}
local runeid = 3154
local dist = 7
while (true) do
local creature = Creature.GetByID(Self.TargetID())
local i = 1
while (creature:isValid() and creature:isAlive() and (creature:DistanceFromSelf() <= dist) and creature:isTarget()) do
Self.Cast(spells[i])
Self.UseItemWithTarget(runeid)
i = i + 1
wait(2010)
if (i > 4) then i = 1 end
end
end