Jump to content

How to Target Pet to cast a spell in CS?


Paultimate

Recommended Posts

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

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...