GTXMike 21 Posted July 7, 2015 Share Posted July 7, 2015 Hiya Droidz I wonder if there is a possibility to add something like this into rotation and if so how. If Prismatic Crystal detected within X yards attack Prismatic Crystal OR If Prysmatic Crystal detected within X yards from target attack Prismatic Crystal. Link to comment https://wrobot.eu/forums/topic/2236-frost-mages-prismatic-crystal/ Share on other sites More sharing options...
Droidz 2738 Posted July 8, 2015 Share Posted July 8, 2015 Hello, Try this code: Distance from you: (ObjectManager.GetWoWUnitByEntry(76933).Count(u => u.GetDistance < 30 && u.IsMyPet) > 0) Distance from target: (ObjectManager.Target.IsValid && ObjectManager.GetWoWUnitByEntry(76933).Count(u => u.Position.DistanceTo(ObjectManager.Target.Position) < 30 && u.IsMyPet) > 0) - Replace 30 by distance. - If this don't works try to remove code: && u.IsMyPet - I have found entry id of crystal (76933) in wowhead ( http://www.wowhead.com/npc=76933/prismatic-crystal ), if id is not correct you can found it with Dev tools (tab Tools). Use spell condition type "C Sharp Code" and put code in "Value". Link to comment https://wrobot.eu/forums/topic/2236-frost-mages-prismatic-crystal/#findComment-10489 Share on other sites More sharing options...
GTXMike 21 Posted July 8, 2015 Author Share Posted July 8, 2015 Will try thanks for info mate. Droidz 1 Link to comment https://wrobot.eu/forums/topic/2236-frost-mages-prismatic-crystal/#findComment-10495 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