Jump to content


Photo

Something tries to use Curing Waltz III when I only have Curing Waltz II


    5 replies to this topic

    #1 Altnob

    Altnob

      Advanced Member

    • Members
    • PipPipPip
    • 37 posts

      Posted 24 April 2015 - 05:04 AM

      I can't use curing waltz because whenever I do something makes it try and cast waltz III when I don't have III.

       

      How can I fix?



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 24 April 2015 - 05:21 AM

      Sounds like you have a GearSwap rule that's messed up.



      #3 Altnob

      Altnob

        Advanced Member

      • Members
      • PipPipPip
      • 37 posts

        Posted 24 April 2015 - 05:34 AM

        edit: nvm



        #4 Cptbirdseye

        Cptbirdseye

          Advanced Member

        • Members
        • PipPipPip
        • 88 posts

          Posted 26 April 2015 - 03:14 AM

          Yeah it's Gearswap alright.  I get this error all the time if I got DNC levelled up as a sub to 49 and trying to use Curing Waltz II on a job that can't yet use Curing Waltz III.  I'll get weird error like this:

           

          /ma "Curing Waltz III" 1248574

          Command error.



          #5 Arcon

          Arcon

            Advanced Member

          • Windower Staff
          • 1189 posts
          • LocationMunich, Germany

          Posted 26 April 2015 - 03:37 AM

          For the record, it's not GearSwap itself. It's a rule you're using. Probably because you're using a pre-made library by someone else. Some people think it's a good idea to redirect spells like this.



          #6 sdahlka

          sdahlka

            Advanced Member

          • Members
          • PipPipPip
          • 324 posts

            Posted 26 April 2015 - 12:28 PM

            are you using motes include?? if so he does have coding that auto changes your curing waltz to the most efficient one and as far as i know it does not check to see if your player level is high enuf to use it

             

            this is the code i use to get the highest one you can use as well as the most suited for your hp lvl

            
            function pretarget(spell)
                ...
                if spell.type == "Waltz" and spell.target.type == "SELF" and spell.en:startswith('Curing Waltz') then
                    local new_waltz = (extra.select_waltz() or false)
                    if new_waltz and spell.en ~= new_waltz then cancel_spell() send_command('input /ja "'..new_waltz..'" <me>') return end
                end
                ...
            end
            function buff_change(name,gain,buff_table)
                ...
                if buff_table.id == 582 then Contradance_potency = (gain and 100 or 0) end
                ...
            end
            Contradance_potency = 0
            function extra.waltz_potency()
                local potency = 0
                local waltz_pot = {[14578]=10,[14579]=10,[11302]=10,[11303]=10,[16002]=5,[11478]=5,[11479]=5,[10668]=7,[10751]=3,[10402]=5,[10407]=8,[28635]=5,[10787]=3,
                    [27825]=20,[27826]=20,[27846]=21,[27847]=21,[28241]=10,[28242]=10,[28262]=10,[28263]=10,[20626]=3,[28002]=5,[26660]=9,[26661]=11,[20610]=7}
                for i2,v2 in pairs(sets["Curing Waltz"]) do
                    if type(v2) == "table" then
                        local gear = (res.items:with('name', v2.name)) if v2.name == gear[gearswap.language] then potency = potency + waltz_pot[gear.id] end
                    else
                        local gear = (res.items:with('name', v2)) if v2 == gear[gearswap.language] then potency = potency + waltz_pot[gear.id] end
                    end
                    if potency > 30 then potency = 30 end
                end
                return potency
            end
            function extra.select_waltz() -- returns the most usable Waltz for use on your player
                local potency = 0
                if sets["Curing Waltz"] then potency = extra.waltz_potency() end
                potency = potency + (player.job_points.dnc.waltz_potency*2) + Contradance_potency
                local add_perc = function(num,per) return (((num/100)*per)+num) end
                local hp_dif = player.max_hp - player.hp
                local abilitys = res.job_abilities
                local base = waltz_stats.vit + waltz_stats.chr
                local dnc_type
                local h_waltz
                local waltz = {
                    main_job={[1]={heal=math.floor((base*0.250)+60),tp=200,lvl=15,id=190},[2]={heal=math.floor((base*0.500)+130),tp=350,lvl=30,id=191},
                        [3]={heal=math.floor((base*0.750)+270),tp=500,lvl=45,id=192},[4]={heal=math.floor((base*1.000)+450),tp=650,lvl=75,id=193},
                        [5]={heal=math.floor((base*1.25)+600),tp=800,lvl=80,id=311},},
                    sub_job={[1]={heal=(math.floor((base*0.125)+60) > 95 and 95 or math.floor((base*0.125)+60)),tp=200,lvl=15,id=190},
                        [2]={heal=(math.floor((base*0.250)+130) > 200 and 200 or math.floor((base*0.250)+130)),tp=350,lvl=30,id=191},
                        [3]={heal=(math.floor((base*0.375)+270) > 375 and 375 or math.floor((base*0.375)+270)),tp=500,lvl=45,id=192},},}
                if player.main_job == "DNC" then dnc_type = 'main_job' elseif player.sub_job == "DNC" then dnc_type = 'sub_job' end
                for i,v in ipairs(waltz[dnc_type]) do
                    if add_perc(v.heal,potency) >= hp_dif and player[dnc_type..'_level'] >= v.lvl and player.tp >= v.tp then 
                        return abilitys[v.id][gearswap.language]
                    elseif player[dnc_type..'_level'] >= v.lvl and player.tp >= v.tp then h_waltz = v.id end
                end
                if h_waltz then return abilitys[h_waltz][gearswap.language] end
            end
            

            but you need to input this in your main file

            waltz_stats = {vit=<vit when curing waltz gear on>,chr=<chr when curing waltz gear on>}
            

            like this

            waltz_stats = {vit=128,chr=154}
            

            all the rest is automatic






            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users