Jump to content


Photo

Gear Swap Help


    2 replies to this topic

    #1 sdahlka

    sdahlka

      Advanced Member

    • Members
    • PipPipPip
    • 324 posts

      Posted 30 March 2014 - 07:38 PM

      this is what i have so far

       

      http://pastebin.com/8KLJgDQP

       

      this is what im trying to convert from spellcast

       

      http://pastebin.com/bEAKbbkN

       

      any help is appreciated

       

       

      this is what im having trouble with

      if buff_change == 'Sleep,true' then

              equip(sets.Sleep)
          end
          if buff_change == 'Sleep,false' then
              if new=='Engaged' then
                  equip(sets.Engaged)
              elseif new=='Idle' then
                  equip(sets.Idle)
              elseif new=='Resting' then
                  equip(sets.Resting)
          end
       
      im also having trouble with setting up base sets


      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 31 March 2014 - 08:25 AM

      You should ask specific questions if you want good answers.

       

      As for the code you posted, it has various issues:

      • if name == 'Sleep' and gain == true then (same for the other case
      • if player.status == 'Engaged' then
      • Line 84 in the file you posted: if spell.name == 'Spectral Jig' then


      #3 sdahlka

      sdahlka

        Advanced Member

      • Members
      • PipPipPip
      • 324 posts

        Posted 31 March 2014 - 12:24 PM

        is there a way to call variables and make my own variables

         

        i.e

        Main.Weapon.Type = GreatAxe

        Sub.Weapon.Type = Sword

        Ranged.Weapon.Type = 

         

           if spell.type == "WeaponSkill"then
                if spell.wsA == '[world.day_element] and or [world.weather_element]' then
                     equip(sets.[spell.wsA].[Main.Weapon.Type])
                 end
           end

         

        all things in [] are the variables i want to call

         

        is there a way to tell what weapon type each ws requires (i know that spell.wsA = lvl 1skill chain wsB and wsC are lv 2 and 3 respectivly)






        1 user(s) are reading this topic

        0 members, 1 guests, 0 anonymous users