Jump to content

Recommended Posts

Sample lua code: 

local spellNameInGame = "Charge";

local freeslot = -1;
for i=1, 120, 1 do
   if not HasAction(i) then freeslot = i; break; end
end

if freeslot <= 0 then return; end

local i = 1
while true do
   local spellName, spellRank = GetSpellName(i, BOOKTYPE_SPELL)
   if not spellName then break; end
   
   if spellName == spellNameInGame then PickupSpell(i, BOOKTYPE_SPELL); PlaceAction(freeslot); ClearCursor() end
   
   i = i + 1
end

 

Link to comment
https://wrobot.eu/forums/topic/7076-training-new-skills/#findComment-32035
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...