View Single Post
08-29-20, 11:35 AM   #3
cokedrivers
A Rage Talon Dragon Guard
 
cokedrivers's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 325
Originally Posted by Kanegasi View Post
Try using CastSpell(prof1) instead. GetProfessions() returns spell book indexes which can be fed straight into CastSpell().
Nope, i change it to the above and got this error:
Code:
1x BasicUI\Modules\Datapanel.lua:1756: CastSpell(): Invalid spell slot
[string "=[C]"]: in function `CastSpell'
[string "@BasicUI\Modules\Datapanel.lua"]:1756: in function <BasicUI\Modules\Datapanel.lua:1752>

Locals:
(*temporary) = 7
  Reply With Quote