mnk lua
i keep getting an error on line 61 but i cannot figure out where i went wrong can any1 help?
Mnk Gearswap Help ; ; |
||
Mnk gearswap help ; ;
mnk lua
i keep getting an error on line 61 but i cannot figure out where i went wrong can any1 help? Code sets.precast.Flash = { body="Arhat's Gi +1", neck="Invidia Torque", left_ear="Darkness Earring" right_ear="Friomisi Earring" ring1="Eihawz Ring" ring2="Odium Ring" back="Fravashi Mantle" } You need commas between each piece of equipment. So it should be: Code sets.precast.Flash = { body="Arhat's Gi +1", neck="Invidia Torque", left_ear="Darkness Earring", right_ear="Friomisi Earring", ring1="Eihawz Ring", ring2="Odium Ring", back="Fravashi Mantle" } hmm theres more wrong now >.<
but ty for that help sigh its never just 1 problem can any1 proof read this and help me please
error i am getting is
Gearswap: Loaded your Mnk Lua File! Gearswap: Lua error (runtime) - gearswap/refresh.lua:147: Gearswap: File failed to load ...(x86)windower4/addons/gearswap/data/yocuz_mnk.lua:361: attempt to index global 'spell' (a nil value) i will change my pastebin url to what i have now ty for all advice Lakshmi.Yocuz said: » error i am getting is Gearswap: Loaded your Mnk Lua File! Gearswap: Lua error (runtime) - gearswap/refresh.lua:147: Gearswap: File failed to load ...(x86)windower4/addons/gearswap/data/yocuz_mnk.lua:361: attempt to index global 'spell' (a nil value) i will change my pastebin url to what i have now ty for all advice Pastebin it I'll have a gander. Lakshmi.Yocuz said: » The error is coming from this Code if Runes:contains(spell.name) then This should be . . . Code if Runes:contains(spell.english) then I think its been a while since I tried to define my own spellmaps. spell.name should be the same as spell.english if your client language is English, so that should work fine.
The problem is line 357. The end there ends the pretarget function. Remove line 357 and at least it should load, although I didn't check enough to see if that fixes all issues. Leviathan.Arcon said: » spell.name should be the same as spell.english if your client language is English, so that should work fine. The problem is line 357. The end there ends the pretarget function. Remove line 357 and at least it should load, although I didn't check enough to see if that fixes all issues. Ah mines set to JP so I always have to amend to English >.> Cerberus.Conagh said: » Leviathan.Arcon said: » spell.name should be the same as spell.english if your client language is English, so that should work fine. The problem is line 357. The end there ends the pretarget function. Remove line 357 and at least it should load, although I didn't check enough to see if that fixes all issues. Ah mines set to JP so I always have to amend to English >.> You can also use set_language('english'), then .name will default to english. Or just define Japanese names. Leviathan.Arcon said: » Cerberus.Conagh said: » Leviathan.Arcon said: » spell.name should be the same as spell.english if your client language is English, so that should work fine. The problem is line 357. The end there ends the pretarget function. Remove line 357 and at least it should load, although I didn't check enough to see if that fixes all issues. Ah mines set to JP so I always have to amend to English >.> You can also use set_language('english'), then .name will default to english. Or just define Japanese names. I'm used to the format I use currently and wouldn't want to change it around, although thanks for the idea. You figured out why my FFXIDB doesn't work yet?!?! so i deleted line 357 now another error >.<
line 349 function pretarget(spell) Cerberus.Conagh said: » Leviathan.Arcon said: » Cerberus.Conagh said: » Leviathan.Arcon said: » spell.name should be the same as spell.english if your client language is English, so that should work fine. The problem is line 357. The end there ends the pretarget function. Remove line 357 and at least it should load, although I didn't check enough to see if that fixes all issues. Ah mines set to JP so I always have to amend to English >.> You can also use set_language('english'), then .name will default to english. Or just define Japanese names. I'm used to the format I use currently and wouldn't want to change it around, although thanks for the idea. You figured out why my FFXIDB doesn't work yet?!?! No, although now that you mentioned that you use a JP client, that at least gives me an idea of what's different. Any chance you can get your hands on an NA/EU client and can try booting the game with that, even just once to see if it works? I can't think of why it would cause an error, but the fact that it works for almost everyone except a very select few at least points at something that isn't common to many people. Lakshmi.Yocuz said: » so i deleted line 357 now another error >.< line 349 function pretarget(spell) Post the error and the modified file, otherwise we can't help you. Leviathan.Arcon said: » Cerberus.Conagh said: » Leviathan.Arcon said: » Cerberus.Conagh said: » Leviathan.Arcon said: » spell.name should be the same as spell.english if your client language is English, so that should work fine. The problem is line 357. The end there ends the pretarget function. Remove line 357 and at least it should load, although I didn't check enough to see if that fixes all issues. Ah mines set to JP so I always have to amend to English >.> You can also use set_language('english'), then .name will default to english. Or just define Japanese names. I'm used to the format I use currently and wouldn't want to change it around, although thanks for the idea. You figured out why my FFXIDB doesn't work yet?!?! No, although now that you mentioned that you use a JP client, that at least gives me an idea of what's different. Any chance you can get your hands on an NA/EU client and can try booting the game with that, even just once to see if it works? I can't think of why it would cause an error, but the fact that it works for almost everyone except a very select few at least points at something that isn't common to many people. Lakshmi.Yocuz said: » so i deleted line 357 now another error >.< line 349 function pretarget(spell) Post the error and the modified file, otherwise we can't help you. I have an EU client and was using it for your testing ~ I just have all my Gearswap set to english depending on which I use ~ (so it deifnes in each). Code else countmata = 1 send_command('input /p Volatile Mata @ '..countmata..' ') add_to_chat(204, '*-*-*-*-*-*-*-*-* [ AutoCounter ] *-*-*-*-*-*-*-*-*') end end end return modified, mode end) you're missing an end also you have a closing parenthesis without an opening companion. edit: but appears you are missing the end here: Code function pretarget(spell) if spell.type=="WeaponSkill" then if spell.target.distance > 4.5 then add_to_chat(359, '%targetname is too far unable to use %spellname !!! ') cancel_spell() return end end Should appear as: Code function pretarget(spell) if spell.type=="WeaponSkill" then if spell.target.distance > 4.5 then add_to_chat(359, '%targetname is too far unable to use %spellname !!! ') cancel_spell() return end end end where would i put the opening parenthesis
Lakshmi.Yocuz said: » where would i put the opening parenthesis Well really it depends on what you are trying to do here: Code --- Delve Assistant windower.register_event('incoming text', function(original, modified, mode) local match if player.target.name == "Volatile Matamata" then match = original:match('The Volatile Matamata readies') if match then if countmata <6 then countmata = countmata+1 send_command('input /p Volatile Mata @ '..countmata..' ') add_to_chat(204, '*-*-*-*-*-*-*-*-* [ AutoCounter ] *-*-*-*-*-*-*-*-*') elseif countmata >=6 then --FS countmata = countmata+1 send_command('input /ja "Formless Strikes" <me> ') send_command('input /p Volatile Mata @ '..countmata..' : Formless Strikes !!! ') add_to_chat(204, '*-*-*-*-*-*-*-*-* [ AutoCounter : FS ON ] *-*-*-*-*-*-*-*-*') else countmata = 1 send_command('input /p Volatile Mata @ '..countmata..' ') add_to_chat(204, '*-*-*-*-*-*-*-*-* [ AutoCounter ] *-*-*-*-*-*-*-*-*') end end end return modified, mode end) It looks like you created a function and gave it 3 variables original, modified and mode. I'm getting the impression you only want original and modified as they are both modes. Also being that your variables are scripts you probably want quotation marks/apostrophes around them. Then at the bottom you have a return and it appears you want return (modified) end. to be honest i was given this and i modded the gear only
i just wanna get this working so if i delete the mata count it could work? well if you just want to keep it simple: http://pastebin.com/EJCanu3k
All you got to do is swap out the gear to match your own. This should cover your basic needs though. Also the toggle macros would be: console gs c toggle 'X' set. ex: console gs c toggle TP set console gs c toggle VS set console gs c toggle AF set console gs c toggle Imp set The indices for them are all set to variable 1 or "Reg". So you just create the macro and press it to cycle through the sets. edit: It only has one issue since I spaghetti coded/mickey moused the buff status changes. That is that it wont switch out of the impetus set when the buff wears off until you do something. Any action will change it to the correct TP set. Also dont take the example and make one macro. Make one for each set. That way you have flexibility.
delete the mata thing anyways, melee prepping it is bad management of time and a dd, if not just inefficient, should time not be an issue. youll end up deleting that either out of agreement with this fact, or due to your delve members over time shifting the strat over themselves. it's just annoying when someone pops formless after being told not to and to not formless.
see i dont want to keep it simple because i have mdt , pdt , voke,flash , tp,mid acc, high acc, ws , ws mid acc, etc
plus you guys are right i dont need to have delve ***in there because i know what to do my self if u cant count to 5 well.... lol but ty anyway for your help now i have a different gearswap semi working but it wont let me use /console gc c .....
so all i can use is base set gear >.< Well I updated my files on pastebin due to some revelations about midcast.
Well you shouldnt use the / if youre doing a console gs c in a macro. Just type console gs c toggle whatever set. //gs c toggle whatever set if you're typing it in the chat line. Chat line: //gs c command
Macro: /console gs c command Bind: gs c command ahh ty guys for the help i am slowly getting this figured out thanks to you
so i got frustrated and tried using the gearswap u created for me now when im in your lua file and type /console gs c toggle TP set nothing happens btw this was written in macros sigh i really didnt think getting gearswap working would be this diffucult
the one im referring to is the one zero created you wrote in the macro button and did you press it?
Because i use that file and it will switch from "reg" to "acc" if you press it. Then to PDT if you press it again, then back to Reg. You should also see it in the chat log. If you are in game atm send me a tell. Should appear as: Should see when you press it: |
||
All FFXI content and images © 2002-2024 SQUARE ENIX CO., LTD. FINAL
FANTASY is a registered trademark of Square Enix Co., Ltd.
|