Mooper 99 Posted July 11, 2011 Share Posted July 11, 2011 (edited) me.Cast 0100793F xxxxxxxx I need the x's to be whoever my Companion is attacking. Is this possible? The "me." before cast is my companion. Edited July 11, 2011 by Mooper 99 Link to comment Share on other sites More sharing options...
fg109 Posted July 11, 2011 Share Posted July 11, 2011 GetCombatTarget Link to comment Share on other sites More sharing options...
Mooper 99 Posted July 11, 2011 Author Share Posted July 11, 2011 Can you tell me exactly what to put? if IsKeyPressed 20 == 1 ; caps lock me.Cast 0100793F xxxxxxx This is what I have now. Can you put what I need in the x's? Link to comment Share on other sites More sharing options...
fg109 Posted July 11, 2011 Share Posted July 11, 2011 set targetref to me.GetCombatTarget me.Cast SpellID targetref Link to comment Share on other sites More sharing options...
Mooper 99 Posted July 11, 2011 Author Share Posted July 11, 2011 Hm... I get this Error, Unknown variable "targetref" Link to comment Share on other sites More sharing options...
MarkInMKUK Posted July 11, 2011 Share Posted July 11, 2011 (edited) You have to define targetref as a variable of appropriate size before you can use it Edited July 11, 2011 by MarkInMKUK Link to comment Share on other sites More sharing options...
Mooper 99 Posted July 11, 2011 Author Share Posted July 11, 2011 You have to define targetref as a variable of appropriate size before you can use it Can you repeat that in a simpler way? Link to comment Share on other sites More sharing options...
fg109 Posted July 11, 2011 Share Posted July 11, 2011 scriptname examplescript ref targetref .... Link to comment Share on other sites More sharing options...
Mooper 99 Posted July 11, 2011 Author Share Posted July 11, 2011 scriptname examplescript ref targetref .... Ohh ok thanks. I will report back. Link to comment Share on other sites More sharing options...
Mooper 99 Posted July 11, 2011 Author Share Posted July 11, 2011 scriptname examplescript ref targetref .... Ohh ok thanks. I will report back. It did not seem to work... Would like me to post the whole script? That way you can see? Link to comment Share on other sites More sharing options...
Recommended Posts