Gearswap Lua

Langues: JP EN DE FR
users online
Forum » Windower » General » Gearswap Lua
Gearswap Lua
Offline
Posts: 7
By Pookiezz 2016-08-31 04:26:25
Link | Citer | R
 
Where can i find whm lua's at. Apparently they don't exist, at least not the good ones xD
 Odin.Lygre
Offline
Serveur: Odin
Game: FFXI
user: Dylaudid
Posts: 89
By Odin.Lygre 2016-08-31 10:05:57
Link | Citer | R
 
A good one to start with.

You'll need these files in your GearSwap/libs folder
Offline
Posts: 7
By Pookiezz 2016-09-01 06:59:46
Link | Citer | R
 
This is what i currently have now. Not sure why i'm having complications. It's like not switching to my idle set. i will look at my lua again an figure out the problem ^^ thanks a lot!
 Bismarck.Kuroganashi
Offline
Serveur: Bismarck
Game: FFXI
Posts: 1346
By Bismarck.Kuroganashi 2016-09-01 10:46:02
Link | Citer | R
 
Pookiezz said: »
This is what i currently have now. Not sure why i'm having complications. It's like not switching to my idle set. i will look at my lua again an figure out the problem ^^ thanks a lot!

I would advice you to make one from Scratch ^^

Always nice to have it custom to you and not pulling from somebody else.

However for WHM you gonna have to keep few rules in mind:

1) Refresh idle set with mov speed feet
2) Refresh resting set
3) PDT / MDT sets
4) Cure
5) Cure with Weather
6) WS Set
7) TP set
8) TP set ACC
9) FC Set
10) Fast Recast set
11) Waltz Potency Set
12) Steps Set
13) Cursna set
14) *-na Set
15) Bar* set
16) Divine Magic Set
17) Enfeebling Set
18) Rules for When MP < 51
19) Enhancing Set
20) Stoneskin Set
21) Protect* / Shell* sets
22)Regen* set
23) Cures with Aff. Solance Set
24) Cures with Aff. Misery Set
25) Benedition Set

ETC................

(There are a few other things but start by making those sets and it should help alot when writing a new GS)


^^/
Offline
Posts: 7
By Pookiezz 2016-09-01 11:38:50
Link | Citer | R
 
:P If i knew how to make it from scratch ^_^ i mean.. writing the rules out is what i never done before. >.<
Offline
Posts: 174
By Jumeya 2016-09-01 12:03:28
Link | Citer | R
 
The rules already exist in the plugin libraries for most things,
so you just use the right syntax/wording that is mapped / check the GS page.

For example, bar spells are sets.midcast.Barelement

you can define any magics of a grouping using eg:

sets.midcast['Elemental Magic']

or specifically to a spell with

sets.midcast['Spell Name'] which will prioritize over the umbrella terms like (like it'll chose sets.midcast['Fire V'] over Elemental

you can get very funky all sorts of way, but that's the most straightforward.
Also, you need

function display_current_job_state(eventArgs)
display_current_caster_state()
eventArgs.handled = true
end

to handle your changes from pre-mid-aftercasting.
 Odin.Lygre
Offline
Serveur: Odin
Game: FFXI
user: Dylaudid
Posts: 89
By Odin.Lygre 2016-09-01 16:09:17
Link | Citer | R
 
Since you're using Mote's Include and one of his job templates, I'd recommend reading this and probably keeping it handy for reference if needed.

Additionally, I would recommend going through the include code and see for yourself what's going on, should you have the gumption and time. There are some things in there that aren't mentioned in his wiki, and if so not in full detail.

EDIT: Forgot to include This. Between that and the Variables.xlsx in GearSwap/beta_examples_and_information/ you should have a good reference for variables provided by gearswap to get what you need done.
Offline
Posts: 7
By Pookiezz 2016-09-02 07:04:09
Link | Citer | R
 
Wow thank actually makes a lot of sense ;D thanks everyone for your imput ^_^ glad to know there are still appreciated players out here still :D. And if ya ever need a whm, im on Asura :D
Offline
Posts: 7
By Pookiezz 2016-09-11 08:30:27
Link | Citer | R
 
Blah making lua isnt really easy xD im stuck on a like that says Error near 'sets' line 98 syntax, wtf is syntax :x
 Valefor.Omnys
Offline
Serveur: Valefor
Game: FFXI
user: omnys
Posts: 1759
By Valefor.Omnys 2016-09-11 09:25:55
Link | Citer | R
 
Syntax is programming's grammar. Every programming engine is basically the world's worst grammar-nazi (generally, it has to be).

Unfortunately, without seeing your lua, that error doesn't mean much.

Wrap the whole thing in [code][/code] blocks like this
Code
function get_sets()

end

...
Log in to post.