Jump to content


Photo

Gearswap help with changespell


    3 replies to this topic

    #1 Tronian

    Tronian

      Member

    • Members
    • PipPip
    • 10 posts

      Posted 20 May 2014 - 01:30 AM

      hi all,

       

      i am new with gearswap and need some help with it.

      i used to use changespell for my whm with below

       

      <if Spell="Paralyze*"> <!-- Check conditions and change if needed when casting Paralyze II -->
      <if SpellTargetType="Self|Player"> <!-- If target is player or self change to paralyna -->
      <action type="DefaultTarget" target="&lt;t&gt;" />
      <!-- <action type=ChangeTarget Target="&lt;st&gt;" /> -->

      <changespell spell="Paralyna" />

       

      I tried the below but it is not working

       

      if spell.english == 'Paralyze' and spell.target.raw == 'PLAYER' then
      cancel_spell()

      send_command('input /ma "Paralyna" 'PLAYER')

      else

      send_command('input /ma "Paralyze" <t>)

      end

       

      Thanks.



      #2 Akumasama

      Akumasama

        Advanced Member

      • Members
      • PipPipPip
      • 79 posts

        Posted 20 May 2014 - 08:36 AM

        I suggest  you go asking for help HERE



        #3 Byrth

        Byrth

          Advanced Member

        • Members
        • PipPipPip
        • 85 posts

          Posted 20 May 2014 - 11:58 AM

          if spell.english:wcmatch('Paralyze*') and spell.target.type == 'PLAYER' then
              cancel_spell()
              send_command('input /ma Paralyna '..spell.target.raw)
          end
          

          I think this does what you wanted.


          • Tronian likes this

          #4 Tronian

          Tronian

            Member

          • Members
          • PipPip
          • 10 posts

            Posted 21 May 2014 - 11:34 AM

            if spell.english:wcmatch('Paralyze*') and spell.target.type == 'PLAYER' then
                cancel_spell()
                send_command('input /ma Paralyna '..spell.target.raw)
            end
            

            I think this does what you wanted.

            Thanks. This does it. :)






            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users