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.
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.
if you put these lines in your pet_midcast(spell) and pet_aftercast(spell)
this will tell you the actual spell name and type(in chat)Code:add_to_chat(123,"Spell Name="..tostring(spell.english)) add_to_chat(123,"Spell Type="..tostring(spell.type))
A bit shorter, but will print to the console. Alternatively add this to the top of the file:Code:print('Name', spell.english) print('Type', spell.type)
Then you can use log instead of print to log to the chatlog:Code:require('logger')
Code:log('Name', spell.english) log('Type', spell.type)
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.
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.
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.
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.
The crash on unregistering events was fixed, if that's what you're referring to. Took me too long to respond. Curses!
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
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
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.
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
heres a link to it http://pastebin.com/FknNuR14
if you talking about thoes like this
let me explain how this worksCode:PhysicalBlueMagic_STR = S{ 'Battle Dance','Bloodrake','Death Scissors','Dimensional Death','Empty Thrash', 'Heavy Strike','Quadrastrike','Uppercut','Tourbillion','Vertical Cleave', 'Whirl of Rage'}
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
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.
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.
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.
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
Thanks Proth it'll save me some headaches lol