Item Search
     
BG-Wiki Search
Page 60 of 302 FirstFirst ... 10 50 58 59 60 61 62 70 110 ... LastLast
Results 1181 to 1200 of 6036

Thread: Gearswap Help Thread!     submit to reddit submit to twitter

  1. #1181
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    two questions

    1.is there a way to expose stats like vit, str, chr , etc.. to gearswap??

    2. does return end the function early??

  2. #1182
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Quote Originally Posted by dlsmd View Post
    two questions

    1.is there a way to expose stats like vit, str, chr , etc.. to gearswap?? Yes, but only for you and your Automaton. Also, these stats will not update fast enough to follow your equipment changes.

    2. does return end the function early?? Yes
    Two answers!

  3. #1183
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Byrthnoth View Post
    Two answers!
    for #1. ok
    what i wanted to do was run the calulations for cure/waltz when used on my self to auto select the correct cure/waltz spell to use
    i.e.
    local cwalts1 = ((player.VIT + player.CHR)* 0.125 + 60)
    if player.max_hp - math.floor(cwalts1) <= player.hp then

    for #2. does return need to be "return end" or "return"??

  4. #1184
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    1) math.floor will round the number for you. Arcon opened an issue for himself to expose str/dex/vit/etc. a while back, but I don't think he has done it yet. I know exactly where it is in the packets, so perhaps we'll do it soon.

    2) return works by itself, but you need to maintain the proper syntax for your if/else statement, so:
    Code:
    if pants == 'totally awesome' then
        -- No need to change them!
        return
    end

  5. #1185
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    i just found info on rounding numbers
    math.ceil(number) rounds up
    math.floor(number) rounds down

    i edited my post just as you answered
    would this be correct
    Code:
    local cwalts1 = ((player.VIT + player.CHR)* 0.125 + 60)
    if player.max_hp - math.floor(cwalts1) <= player.hp then

  6. #1186
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    It would, if VIT and CHR were exposed yet. Also, you would be over-healing a bit in that situation, but I assume that's what you want.

  7. #1187
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Byrthnoth View Post
    It would, if VIT and CHR were exposed yet. Also, you would be over-healing a bit in that situation, but I assume that's what you want.
    how is that the only thing not figured in to it would be Potency gear(im working on that now)

    edit it might be because i should have used >= instead of <=

  8. #1188
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Yeah, you would want to include your potency gear and actually test for whether waltz 2 is more than you need.

  9. #1189
    Melee Summoner
    Join Date
    Feb 2014
    Posts
    48
    BG Level
    1

    if rline.skill and tonumber(rline.skill) then
    rline.skill = res.skills[rline.skill].english
    end

    i'm getting an error with this line in helper_functions.lua anyone else getting this?

  10. #1190
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    these are my calulations for curing waltz 1-6

    main job dnc
    local cwalts1 = math.floor(((player.VIT + player.CHR)* 0.250) + 60) +pot
    local cwalts2 = math.floor(((player.VIT + player.CHR)* 0.500) + 130) +pot
    local cwalts3 = math.floor(((player.VIT + player.CHR)* 0.750) + 270) +pot
    local cwalts4 = math.floor(((player.VIT + player.CHR)* 1.000) + 450) +pot
    local cwalts5 = math.floor(((player.VIT + player.CHR)* 1.250) + 600) +pot

    sub job dnc
    local cwalts1 = math.floor(((player.VIT + player.CHR)* 0.125) + 60) +pot
    local cwalts2 = math.floor(((player.VIT + player.CHR)* 0.250) + 130) +pot
    local cwalts3 = math.floor(((player.VIT + player.CHR)* 0.375) + 270) +pot

    for potency gear i could just create a new variable like this depending on the gear i have sence gs would no be able to keep up with gear changes
    i.e if i only haveDancer's Casaque +1 which is Waltz potency+10%
    local waltzpot = 10%
    local cwalts1 = math.floor((((player.VIT + player.CHR)* 0.250) + 60) + waltzpot)

    Does anybody know the cure spell calulations

  11. #1191
    Old Merits
    Join Date
    Apr 2012
    Posts
    1,109
    BG Level
    6

    Quote Originally Posted by Anadrag View Post
    if rline.skill and tonumber(rline.skill) then
    rline.skill = res.skills[rline.skill].english
    end

    i'm getting an error with this line in helper_functions.lua anyone else getting this?

    reopen launcher, that error has been fixed in newest push.

  12. #1192
    Melee Summoner
    Join Date
    Feb 2014
    Posts
    48
    BG Level
    1

    Quote Originally Posted by Fake View Post
    reopen launcher, that error has been fixed in newest push.
    hmm.. wouldn't update... so i even deleted gearswap.lua and helper_functions.lua and after it updated but still triggers error.

  13. #1193
    BG Content
    Join Date
    Jul 2007
    Posts
    22,359
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    It's probably due to you not having skills.lua in the new windower/res folder. Here is a link:
    https://www.dropbox.com/s/wiyhyylgv3ov0b5/skills.lua

  14. #1194
    Melee Summoner
    Join Date
    Feb 2014
    Posts
    48
    BG Level
    1

    thank you! that fixed it!

  15. #1195
    Melee Summoner
    Join Date
    Feb 2014
    Posts
    48
    BG Level
    1

    wonder if i'm missing other files

  16. #1196
    Hydra
    Join Date
    Sep 2012
    Posts
    118
    BG Level
    3

    Quote Originally Posted by Raelia View Post
    Code:
    if sets.precast.WS[spell.english][WeaponskillMode]) then
        equip(sets.precast.WS[spell.english][WeaponskillMode])
    end


    You can be so fucking lazy with dynamic typed languages. It's kinda sickening.
    Yeah you can, for instance, you can also do this this way....

    Code:
    if spell.type == 'WeaponSkill' then
      equip(sets.precast.WS[spell.english][WeaponSkillMode] or {})
    end
    I haven't decided yet if I like doing it this way or with an additional if statement more. The additional if statement is very clear, but adds a lot to the length of your code.

  17. #1197
    RIDE ARMOR
    Join Date
    Apr 2014
    Posts
    22
    BG Level
    1

    hello,

    I can't get my sch to equip sets.midcast.elementalmagic set for nukes

    ::edit:: downloaded new sch.lua file. origional sch.lua didnt work for nukes apparently

  18. #1198
    Smells like Onions
    Join Date
    Jan 2014
    Posts
    3
    BG Level
    0

    spell.skill issue?

    Also having trouble with my midcast rule since recently
    Code:
    elseif spell.skill ==
    I think is my issue

    To test i made:
    Code:
    function midcast(spell)
       if spell.skill == 'HealingMagic' then
          add_to_chat(206,'Cure Test')
       end
    end
    but this doesnt give me a message on any cures.


    edit:
    if spell.skill == 'Singing' then is only one i can get to work.....

  19. #1199
    Relic Shield
    Join Date
    Oct 2006
    Posts
    1,599
    BG Level
    6
    FFXI Server
    Odin

    Quote Originally Posted by Flowooo View Post
    Also having trouble with my midcast rule since recently
    Code:
    elseif spell.skill ==
    I think is my issue

    To test i made:
    Code:
    function midcast(spell)
       if spell.skill == 'HealingMagic' then
          add_to_chat(206,'Cure Test')
       end
    end
    but this doesnt give me a message on any cures.


    edit:
    if spell.skill == 'Singing' then is only one i can get to work.....
    Try changing it to Healing Magic (with a space) and see if it works. It might be caused by the new resources.

  20. #1200
    Smells like Onions
    Join Date
    Jan 2014
    Posts
    3
    BG Level
    0

    Quote Originally Posted by Mafai View Post
    Try changing it to Healing Magic (with a space) and see if it works. It might be caused by the new resources.
    Thank you, this works .

    it does seem inconsistant, as i replaced it with
    spell.type == 'WhiteMagic'
    Which works as a temporary fix, but doesnt need a space.

Page 60 of 302 FirstFirst ... 10 50 58 59 60 61 62 70 110 ... LastLast

Similar Threads

  1. Replies: 6547
    Last Post: 2014-07-08, 22:45