Jump to content


Photo

spellcast var help


Best Answer theblackdeath , 11 December 2013 - 08:20 AM

it works thank you ill have to learn how the bool part works

Go to the full post


    3 replies to this topic

    #1 theblackdeath

    theblackdeath

      Member

    • Members
    • PipPip
    • 15 posts

      Posted 11 December 2013 - 04:17 AM

      <variables clear="True">
      <var name="mnkstatus">idleday</var>
      <var name="spjig">1</var>
      <var name="cs">manibozho boots</var>
      <var name="belt">windbuffet belt</var>
      <var name="body">thaumas coat</var>
      <var name="impstatus">engagedday</var>
      </variables>
      <rules>
       
      <if spell="break">
      <cancelspell/>
      </if>
      <if status="engaged|idle">
      <if  advanced='"buffactive"=="counterstance" and "buffactive"=="impetus"'>
      <var cmd='set cs "mel. gaiters +2"' />
      <var cmd='set body "tantra cyclas +2"' />
      <var cmd='set belt "black belt"' />
      <var cmd='set impstatus "impstatus"' />
      <equip set="$mnkstatus"/>
      </if>
      <if  advanced='"buffactive"=="counterstance" and "notbuffactive"=="impetus"'>
      <var cmd='set cs "mel. gaiters +2"' />
      <var cmd='set body "otronif harness"' />
      <var cmd='set belt "cetl belt"' />
      <var cmd='set impstatus "engagedday"' />
      <equip set="$mnkstatus"/>
      </if>
      <if  advanced='"notbuffactive"=="counterstance" and "buffactive"=="impetus"'>
      <var cmd='set cs "manibozho boots"' />
      <var cmd='set body "tantra cyclas +2"' />
      <var cmd='set belt "cetl belt"' />
      <var cmd='set impstatus "impstatus"' />
      <equip set="$mnkstatus"/>
      </if>
      <if advanced='"notbuffactive"=="counterstance" and "notbuffactive"=="impetus"'>
      <var cmd='set cs "manibozho boots"' />
      <var cmd='set body "thaumas coat"' />
      <var cmd='set belt "windbuffet belt"' />
      <var cmd='set impstatus "engagedday"' />
      <equip set="$mnkstatus"/>
      </if>
      </if>
       
       
       
      <if status="idle|resting">
      <var cmd='set mnkstatus "idleday"' />
      </if>
      <if status="engaged">
      <var cmd='set mnkstatus "$impstatus"' />
      </if>
      <if spell="autoset">
      <if status="idle|resting">
      <equip when="autoset" set="$mnkstatus"/>
      </if>
      <if status="engaged">
      <equip when="autoset" set="$mnkstatus"/>
      </if>
      </if>     trying to get it to change the var's but its not working ive no idea why


      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 11 December 2013 - 06:43 AM

      <if advanced='"notbuffactive"=="counterstance" and "notbuffactive"=="impetus"'>
      

      I'm think this line won't work. You can try this instead (no guarantees, because Spellcast is stupid):

      <if advanced='(bool)notbuffactive("Counterstance") AND (bool)notbuffactive("Impetus")'>

      Also for future reference, use pastebin or something to post your XML file, don't just dump it into a post. It's hard to read like this and distracts from what you're actually trying to say.



      #3 theblackdeath

      theblackdeath

        Member

      • Members
      • PipPip
      • 15 posts

        Posted 11 December 2013 - 08:01 AM

        ill give it a try its odd cause ive used these advanced before and they work on other xml's just not this one. i also didnt think it really warranted a pastebin cause of how small it is but i can see how being able to see the color codes would help ill do that from now on



        #4 theblackdeath

        theblackdeath

          Member

        • Members
        • PipPip
        • 15 posts

          Posted 11 December 2013 - 08:20 AM   Best Answer

          it works thank you ill have to learn how the bool part works






          1 user(s) are reading this topic

          0 members, 1 guests, 0 anonymous users