Remove Advertisements

Ovale Spell Priority and Tankadins 4.2

All things /script related

Moderators: Fridmarr, Worldie, Aergis, _Chloe

Ovale Spell Priority and Tankadins 4.2

Postby Eroslight » Sun Jul 10, 2011 4:07 pm

All.
I'm trying to update the stock Ovale Spell Priority code to include Theck's Rotation of:
(SotR if Sacred Duty or Inquisition active)>Inq>CS>AS>J.


I've got the Inq>CS>AS>J down.

My problem is the conditional "SotR if Sacred Duty or Inquisition active" if not then Inquisition.

Here is the pertinent stock code:
Code: Select all
if CheckBoxOff(aoe)
    {
        if HolyPower(more 2) Spell(SHIELDOFTHERIGHTEOUS)
        Spell(CRUSADERSTRIKE)
    }



My Attempt at modifying it:
Code: Select all
{
       
   if HolyPower(more 2) and BuffDuration(SACREDDUTY more 0) or BuffDuration(INQUISITION more 0) Spell(SHIELDOFTHERIGHTEOUS)

   if HolyPower(more 2) Spell(INQUISITION)     
   Spell(CRUSADERSTRIKE)
}


The problem with my attempt is this: Its not recognizing the X And (Y or Z) its doing it as (X and Y) or Z.

Anybody have any idea on how to do this??

Thanks
Eroslight
Eroslight
 
Posts: 152
Joined: Mon Dec 10, 2007 12:17 am

Re: Ovale Spell Priority and Tankadins 4.2

Postby RedAces » Tue Jul 12, 2011 5:51 am

try to parenthize the Y or Z part? like this:

Code: Select all
{
       
   if HolyPower(more 2) and (BuffDuration(SACREDDUTY more 0) or BuffDuration(INQUISITION more 0)) Spell(SHIELDOFTHERIGHTEOUS)

   if HolyPower(more 2) Spell(INQUISITION)     
   Spell(CRUSADERSTRIKE)
}
Image
User avatar
RedAces
 
Posts: 500
Joined: Tue Dec 01, 2009 9:39 am
Location: Germany

Re: Ovale Spell Priority and Tankadins 4.2

Postby Eroslight » Fri Aug 12, 2011 11:16 am

Doesn't Like it - I just Broke it up into two "AND" statements which works.
Eroslight
 
Posts: 152
Joined: Mon Dec 10, 2007 12:17 am

Re: Ovale Spell Priority and Tankadins 4.2

Postby Klaudandus » Thu Oct 06, 2011 5:54 pm

Can I see your string?
The Element of Forum Hyperbole
Image
---
Flüttershy - Draenei Protection Paladin, Aerie Peak
Klaudandus - BE Protection Paladin, Feathermoon (Semi-retired)
User avatar
Klaudandus
 
Posts: 11018
Joined: Thu Apr 02, 2009 7:08 am
Location: Texas' Armpit


Return to Add-ons, UI, and Macros

Who is online

Users browsing this forum: Google [Bot] and 1 guest


Remove Advertisements

Who is online

In total there are 2 users online :: 1 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 380 on Tue Oct 14, 2008 6:28 pm

Users browsing this forum: Google [Bot] and 1 guest