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 https://wrobot.eu/forums/topic/10287-how-to-target-pet-to-cast-a-spell-in-cs/ Share on other sites More sharing options...
Matenia 627 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 https://wrobot.eu/forums/topic/10287-how-to-target-pet-to-cast-a-spell-in-cs/#findComment-48803 Share on other sites More sharing options...
Paultimate 2 Posted October 20, 2018 Author Share Posted October 20, 2018 Thank you! Link to comment https://wrobot.eu/forums/topic/10287-how-to-target-pet-to-cast-a-spell-in-cs/#findComment-48806 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