Item Search
     
BG-Wiki Search
Page 70 of 302 FirstFirst ... 20 60 68 69 70 71 72 80 120 ... LastLast
Results 1381 to 1400 of 6036

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

  1. #1381
    Custom Title
    Join Date
    Nov 2008
    Posts
    1,065
    BG Level
    6
    FFXI Server
    Diabolos

    Ah right. Was thinking like BST Ready moves. All you could do is predict Automaton WS when they try to skillchain; hell, with server latency it's already over before you see it.

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

    if you put these lines in your pet_midcast(spell) and pet_aftercast(spell)

    Code:
    			add_to_chat(123,"Spell Name="..tostring(spell.english))
    			add_to_chat(123,"Spell Type="..tostring(spell.type))
    this will tell you the actual spell name and type(in chat)

  3. #1383
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    Code:
    print('Name', spell.english)
    print('Type', spell.type)
    A bit shorter, but will print to the console. Alternatively add this to the top of the file:
    Code:
    require('logger')
    Then you can use log instead of print to log to the chatlog:
    Code:
    log('Name', spell.english)
    log('Type', spell.type)

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

    Quote Originally Posted by Arcon View Post
    Code:
    print('Name', spell.english)
    print('Type', spell.type)
    A bit shorter, but will print to the console. Alternatively add this to the top of the file:
    Code:
    require('logger')
    Then you can use log instead of print to log to the chatlog:
    Code:
    log('Name', spell.english)
    log('Type', spell.type)
    does this only work in the dev version because no mater what i do i get the error of
    flow:261(when i put require('logger') in getsets function)
    refresh:131:gearswap file failed to load (when i put require('logger') in above getsets function)

  5. #1385
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    Actually, I've never tried it in GS at all, it might be that logger cannot be loaded (apparently so). I'm not sure why, I don't know much about how GS works internally. So I guess only print works there.

  6. #1386
    Hydra
    Join Date
    Sep 2012
    Posts
    118
    BG Level
    3

    I've never had any success using any requires in GS. I think they have to be explicitly exposed in the application to work, you can't do it yourself.

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

    the only thing that might work is windower.register_event() but:
    Allows users to register events in Lua that will be called by LuaCore directly. See the doku wiki for more details about options here. I'd call this "Super Advanced Mode." Also, this presently causes crashes on reload. Don't use it.

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

    Sorry, that disclaimer is not accurate anymore. AFAIK register_event hasn't caused crashes in quite a while and I actually use it in several of my user files.

  9. #1389
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    The crash on unregistering events was fixed, if that's what you're referring to. Took me too long to respond. Curses!

  10. #1390
    Puppetmaster
    Join Date
    Apr 2013
    Posts
    63
    BG Level
    2
    FFXI Server
    Asura

    Couple questions, i have spellcast and gearswap running at same, would that cause a conflict also and should i unload spellcast, or does gearswap override spellcast. I also had this line of code in spellcast that would tell me when Ja is up, what would be the lua equivalent?
    <elseif spell="*Step">
    <action type="equip" when="precast" set="Steps" />
    <command when="aftercast">wait 13;input /echo ----STEP_READY!---</command>
    </elseif>

    Edit, i equip gears np, what i need is the aftercast wait 13 and input in chat so i know when ja is ready, IE dynamis farm when constatly spamming ja for procing

  11. #1391
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    Running Spellcast and GearSwap at the same time will cause problems. Don't do it.


    Code:
    function aftercast(spell)
        if spell.type == 'Step' and not spell.interrupted then
            send_command("wait 13;input /echo -- STEP READY! ---")
        end
    end

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

    i just thought i would let people know that on the dev version indi spell info is now active

    player.indi
    table
    Table with values "element" (string name), "element_id" (resources ID number), "target" (Ally or Enemy), and "size" (1-4). May not be accurate if gearswap is reloaded while an Indi spell is active.

  13. #1393
    Melee Summoner
    Join Date
    Jan 2014
    Posts
    27
    BG Level
    1

    Can anyone tell me how to change the blue magic groupings in bokuras GS to the new systems PhysicalBlueMagic_STR = S{, PhysicalBlueMagic_DEX = S{ etc please

  14. #1394
    Melee Summoner
    Join Date
    Jan 2014
    Posts
    27
    BG Level
    1

    heres a link to it http://pastebin.com/FknNuR14

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

    Quote Originally Posted by Infinite View Post
    Can anyone tell me how to change the blue magic groupings in bokuras GS to the new systems PhysicalBlueMagic_STR = S{, PhysicalBlueMagic_DEX = S{ etc please
    if you talking about thoes like this
    Code:
    PhysicalBlueMagic_STR = S{
                                'Battle Dance','Bloodrake','Death Scissors','Dimensional Death','Empty Thrash',
                                'Heavy Strike','Quadrastrike','Uppercut','Tourbillion','Vertical Cleave',
                                'Whirl of Rage'}
    let me explain how this works
    PhysicalBlueMagic_STR (the name of the table)
    = (needed by every table,variable,set,etc.)
    S (lets lua know that this is a table)
    { (opens the table,set,variable)
    } (closes the table,set, variable)

    all spells are in strings but to allow lua to know its a string you need to put it in quotes ether " or ' but numbers do not and boolean is just true or false

    to add more then one string it must be a table and all strings must be separated by a ,


    now if you have a name with a ' in it there are 2 ways to get it to work

    example: Evoker's Torque
    you can do this
    'Evoker\'s Torque'
    (the \ just tells lua to ignore this as part of the code for string)

    but i prefer this
    "Evoker's Torque"
    (this way you do not need to use a \)

    if you need help to edit the code your using we need to know exactly what your trying to do

  16. #1396
    Melee Summoner
    Join Date
    Jan 2014
    Posts
    27
    BG Level
    1

    I'm just trying to simply fix my BLU lua. I had no major problems converting to the new style for my other jobs that use magic (PLD, DRK, RUN) but BlueMagic was used 72 times in this lua and this was the first error that came up when i tryed to convert it to ['Blue Magic'] there will probably be other errors i'll get too. I was just hoping for bokura to update it but I cant wait any longer, BLU is my favorite job and I cant play it atm.

  17. #1397
    Chram
    Join Date
    Sep 2007
    Posts
    2,526
    BG Level
    7
    FFXI Server
    Fenrir

    That post finally clarifies what you're actually asking for. However, from reviewing the lua file, at no point does it ever reference spell.skill with respect to blue magic, aside from a single empty set that has no impact on the overall code structure. You do not specify whether you're actually encountering a problem (and if so, what that problem actually is), or if you're just doing this because you were told it needed to be fixed, but don't have any understanding about what it is you're fixing. If the latter, then I can tell you that nothing in the file needs to be changed, because nothing uses spell.skill for blue magic.

  18. #1398
    Melee Summoner
    Join Date
    Jan 2014
    Posts
    27
    BG Level
    1

    I get a error when i try to load the lua, the line for the error is 19 (the PhysicalBlueMagic = S{ part) when i changed it from BlueMagic to ['Blue Magic'] i got this error and i do not know how to fix it, all i am asking is the correct way to fix it. My experience with gearswap is just simply editing other peoples lua's, I have no knowledge of the programming language nor do I want to learn any more than i have to. Sorry if i did not make my question clear enough. I would simply download and edit a new BLU lua if i knew of one available that was as in-depth as i need and updated with ['Blue Magic'] but the only other lua i have seen which seems good enough for what i use BLU for is Prothescars and he has not updated his either. Like i said i had hoped Bokura would have updated by now and i have been patiently waiting but has not so I am looking to fix myself, I had no problems with PLD, DRK, RUN switching to ['Enhancing Magic'] ['Dark Magic'] etc and hopfully i wont run into any major problems once i get past this problem very early in my BLU lua which i thought would be a simple fix.

  19. #1399
    Impossiblu
    Join Date
    Mar 2010
    Posts
    10,445
    BG Level
    9
    FFXIV Character
    Prothescar Centursa
    FFXIV Server
    Balmung
    FFXI Server
    Valefor

    i'll upload my latest version in a few minutes. it does whatever you really need a lua to do. no bells and whistles, but i doubt you need those

  20. #1400
    Melee Summoner
    Join Date
    Jan 2014
    Posts
    27
    BG Level
    1

    Thanks Proth it'll save me some headaches lol

Page 70 of 302 FirstFirst ... 20 60 68 69 70 71 72 80 120 ... LastLast

Similar Threads

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