your right im sorry i saw "I Use Motenten's" and it messed me up
here is the list of this i have done so far(ill keep this updated as i go)
1. when doing a switch like on/off its best to us a true/false not 1/0
--the reason is when using a string or number it has to check every character/number in sequence then tell if its true or false
--while a bool type var is only true or false
--example:
--if "abc" == "abc" then --needs to check every character then return true/false
--but
--vara = true
--if vara then will always be true/false so no checks needed
2. thoings that could never happen have been removed (i.e. line 566)
should beCode:if (spell.skill == 'Elemental Magic' or spell.english:startswith('Cur') or spell.english:startswith('Bio') or spell.english:startswith('Dia') or spell.english == 'Aspir' or spell.english == 'Drain') and not Non_Obi_Spells:contains(spell.english) and (world.day_element == spell.element or world.weather_element == spell.element) and sets.Obi[spell.element] and Obi == 'ON' and spell.english ~= "Cursna" then
3.redundant checksCode:if (spell.english:startswith('Bio') or spell.english:startswith('Dia') or spell.english == 'Aspir' or spell.english == 'Drain') and not Non_Obi_Spells:contains(spell.english) and (world.day_element == spell.element or world.weather_element == spell.element) and sets.Obi[spell.element] and Obi == 'ON' and spell.english ~= "Cursna" then
example:
should beCode:elseif spell.skill == 'Elemental Magic' and MB == 'ON' then equipSet = set_combine(equipSet,sets.MB) --custom for MB and Obi-- elseif spell.skill == 'Elemental Magic' and MB == 'ON' and Obi == 'ON' then equipSet = set_combine(equipSet,sets.MB,{waist="Hachirin-no-Obi"})
4. using nested gearsets is stuipd because it can overwrite your sets on the fly (i did not fix this as it would take to long to fix)Code:elseif spell.skill == 'Elemental Magic' and MB then equipSet = set_combine(equipSet,sets.MB) if Obi then equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"}) end
--best way to do dynamic set building is to start with your base set then add gear as needed from other sets based on your rules
example of how to do it right(this is how i do it in my include and i dont even need to have any rules in my main files unless for some reason i need to do something differently):
here is the fixed codeCode:sets.Engaged = {...}--default base engaged set sets.Midcast.Magic = {...}--gear that needs to be changed only when using magic (only gear not used in the sets before this one) sets.Midcast["Elemental Magic"] = {...}--gear that needs to be changed only for Elemental Magic (only gear not used in the sets before this one) sets.Midcast.Fire = {...}--gear thats needed only for the spell Fire (only gear not used in the sets before this one) sets.Obi = { Lightning = {waist='Hachirin-no-Obi'}, Water = {waist='Hachirin-no-Obi'}, Fire = {waist='Hachirin-no-Obi'}, Ice = {waist='Hachirin-no-Obi'}, Wind = {waist='Hachirin-no-Obi'}, Earth = {waist='Hachirin-no-Obi'}, Light = {back="Twilight Cape",waist='Hachirin-no-Obi'}, Dark = {waist='Hachirin-no-Obi'}, } function midcast(spell) local equipSet = set_combine({},sets.Engaged) if sets.Midcast[spell.action_type] then equipSet = set_combine(equipSet,sets.Midcast[spell.action_type]) end if sets.Midcast[spell.skill] then equipSet = set_combine(equipSet,sets.Midcast[spell.skill]) end if sets.Midcast[spell.name] then equipSet = set_combine(equipSet,sets.Midcast[spell.name]) end if world.day_element == spell.element or world.weather_element == spell.element then equipSet = set_combine(equipSet,sets.Obi[spell.element]) end equip(equipSet) end
http://pastebin.com/RPDzrUha
one thing i just thought i would let you know encase you dont already know
each rule needs to be true
if a and b and c then --only works if a and b and c all = true
if (a and b) or c then --only works if (a and b) or c = true
if you want to check if something is false use not
example: if not a then --this says if a is false then it is true but if it is true it is false
Is there a way to for gear swap to pick up your going to MBing? Atm I toggle between standard nuke and MB set depending on which I am doing.
Also does GearSwap still work if I do /console exec <script_name>.txt?
Gearswap will respond to the script and change gear accordingly as long as the script does not have gear swaps of its own afaik.
Additionally no gearswap has no way to tell if the nuke you're casting will burst or not. You have to toggle it based on if you think its going to burst or not.
I spent the last 4 hours tying to figure out how to get gearswap to work. I must be brain dead because I updated everything I am assuming I have the files in the right place but when it came down to unloading and reloading the swaps it did not work for me.
SO to get to my question..
Does anyone know what is the best gearswap for monk I can use as I would like to be able to make this work without 12 years of making mistakes ><
Any help is appreciated!
Follow up to which gearswap I am trying to learn
github. com/Kinematics/GearSwap-Jobs/blob/master/MNK.lua
your files go in the Windower4\addons\GearSwap\data folder
i dont know what the best gearswap file is for mnk(there are several)
but here is some useful info
http://pastebin.com/GLdhjSuR
[QUOTE=dlsmd;6623643]your files go in the Windower4\addons\GearSwap\data folder
i dont know what the best gearswap file is for mnk(there are several)
I appreciate the help but my issue is trying to figure out all of what I need to configure to make it properly run (besides putting in my armor pieces)
I tried reading the link you gave and..I have no idea what he is talking about.
Hello!
Can anyone tell me how i can use Globals file which affects all my job.lua file?
The only thing that can probably be suggested is to try to reverse engineer Mote's gearswap files and teach yourself. It's not something that is easily explained. His are actually amazingly written and you can just use those as a base to build from and write your own .lua to include his globals.
Oh, thank you.
I know Mote's file is great. But i am not very good at programming.
Anyone know a guide or some tips for Motes's file?
hey guys im trying to run a skill up program, but when I type in the command in the ingame chat I get the message. >Gearswap: command not found
any ideas?
I haven't looked at the code, because I rarely play DNC, but Monte's DNC Lua has chat notifications to tell you when a monster is chain bound. Ie. when I use Rudras storm, a few seconds later a chat line pops up saying "Skillchain pending is now off" to inform me that I have missed the window to make a SC.
This could just be a hard timer that starts any time that a WS is used (like I said, I haven't looked at the code) or it could be parsing actions taken on the target. I have no idea. I assume that whatever mechanism is in use to check for chain bound status could be applied to chains initiated by a SCH using Immanence. So that could be of some use to people making SCH Luas at the least.
If it only parses actions taken on the enemy by the user, then it would be useful for BLU, SCH and the occasional melee BLM or w/e. People could make their Luas switch to MB sets automatically whenever it detects that they ahve made an appropriate SC.
But, if it parses ALL actions on the target (I doubt this is the case) it would be useful for everyone. For example, it could automatically spit out possible weapon skill combos based on whatever chain properties are currently on the mob or automatically swap to an MB set if an appropriate spell is cast while chain bound.
I'll leave it to someone smarter to figure out how to implement this, but it is apparent that the functionality is there to at least know / act on skill chains that YOU have created if not stuff done by others.
I found the relevant parts of the DNC file:
Code:function job_post_precast(spell, action, spellMap, eventArgs) if spell.type == "WeaponSkill" then if state.Buff['Climactic Flourish'] then equip(sets.buff['Climactic Flourish']) end if state.SkillchainPending.value == true then equip(sets.precast.Skillchain) end end endIt looks like it isn't checking anything on the target. It's just looking at user actions. Could be useful for changing to MB mode when making self SC on SCH or maybe BLU, but won't do any good if you aren't the one who made the SC (and is probably more trouble than it's worth).Code:function job_aftercast(spell, action, spellMap, eventArgs) if not spell.interrupted then if spell.english == "Wild Flourish" then state.SkillchainPending:set() send_command('wait 5;gs c unset SkillchainPending') elseif spell.type:lower() == "weaponskill" then state.SkillchainPending:toggle() send_command('wait 6;gs c unset SkillchainPending') end end end
I guess it could give a basic idea as to what to do if someone chose to parse the log/packets for SCs. Basically just change casting mode to MB for like 10 seconds any time it sees an appropriate SC on the target.
The more I think about it though, I generally start my first MB cast before the SC actually goes off so that I can get off 2-3 spells. So even if something like this were built, it would be of questionable use and I would probably still just switch casting modes manually.