Jump to content


Photo

Spellcast: Advanced changespell

spellcastadvancedchangespellcure

Best Answer Arcon , 01 October 2013 - 05:12 AM

<elseif> is the first tag inside your cure rule. Change that to <if>. You can also remove all of your advanced rules and replace them with regular rules, which will be faster to process.

Go to the full post


    2 replies to this topic

    #1 Skiwee

    Skiwee

      Newbie

    • Members
    • Pip
    • 6 posts
    • LocationNetherlands

    Posted 01 October 2013 - 03:23 AM

    Hi everyone,

    I've been busy the past couple weeks fixing my old PLD script and trying to improve it. But I keep running into a brick wall when it comes to more complicated part.

    What I'm trying to do is have 1 macro in-game { /ma "Cure" <st> }, so that spellcast can check the targets HP% and use an appropriate Cure(I-IV), effectively using less mp then would otherwise be used.

    The concept should be simple enough and very rarely it seems to hint at working (though it's never been a "Cure IV"). so I assume my logic may be the issue  :huh:

    Thanks for taking the time to check it out.

     

    relevant code can be found on lines: 614 - 652

    Attached Files

    • Attached File  PLD.xml   53.79K   9 downloads


    #2 Arcon

    Arcon

      Advanced Member

    • Windower Staff
    • 1189 posts
    • LocationMunich, Germany

    Posted 01 October 2013 - 05:12 AM   Best Answer

    <elseif> is the first tag inside your cure rule. Change that to <if>. You can also remove all of your advanced rules and replace them with regular rules, which will be faster to process.



    #3 Skiwee

    Skiwee

      Newbie

    • Members
    • Pip
    • 6 posts
    • LocationNetherlands

    Posted 01 October 2013 - 08:51 PM

    oeps forgot to change that elseif. I've now converted all the advanced into regular expressions as well that did indeed solve my problem and took a closer look at my logic. my problem was the rules where to strict and the Cure IV rule too lean. guess I still got some work to do on it till I'm satisfied. thanks for the quick reply.







    Also tagged with one or more of these keywords: spellcast, advanced, changespell, cure

    1 user(s) are reading this topic

    0 members, 1 guests, 0 anonymous users