Paultimate 2 Posted October 20, 2018 Share Posted October 20, 2018 I have been looking for a good hour now though other peoples work and testing things. Im sorry to have to make a post asking. How do I target my pet with a spell in CS? Also, does anyone know of an API resource for wrobot for CS? Would love to develop. EG of what I have for self targeting. I can change 'me' to 'pet' but it will still target myself for the cast, else if (ObjectManager.Me.HealthPercent <= 65 && !ObjectManager.Me.HaveBuff("Renew") && Renew.KnownSpell) { SpellManager.CastSpellByNameLUA("Renew"); return; } else if (ObjectManager.Me.HealthPercent <= 65 && !ObjectManager.Me.HaveBuff("Rejuvenation") && Rejuv.KnownSpell) { SpellManager.CastSpellByNameLUA("Rejuvenation"); return; } Thanks. Link to comment Share on other sites More sharing options...
Matenia 625 Posted October 20, 2018 Share Posted October 20, 2018 (edited) ObjectManager.Me.Target = ObjectManager.Pet.Guid; SpellManager.CastSpellByNameOn("Rejuventation", "pet"); Edited October 20, 2018 by Matenia Paultimate 1 Link to comment Share on other sites More sharing options...
Paultimate 2 Posted October 20, 2018 Author Share Posted October 20, 2018 Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now