Drg Gearswap Lua

Language: JP EN DE FR
2010-09-08
New Items
407 users online
Forum » FFXI » Jobs » Dragoon » Drg Gearswap lua
Drg Gearswap lua
 Phoenix.Nightfrost
Offline
Server: Phoenix
Game: FFXI
Posts: 7
By Phoenix.Nightfrost 2019-04-03 13:32:58
Link | Quote | Reply
 
Does anyone have a GS they can post here that is alil more recent. Most I've found were 2013/14.

thanks in advance.
Offline
Posts: 333
By Sidiov 2019-04-03 14:17:59
Link | Quote | Reply
 
Need to use the equip slot bug for this, but makes it easy.
Code
function sets{
sets.all = {main="Shining One",sub="Shining One",range="Shining One",ammo="Shining One",
head="Shining One",neck="Shining One",ear1="Shining One",ear2="Shining One",
body="Shining One",hands="Shining One",ring1="Shining One",ring2="Shining One",
back="Shining One",waist="Shining One",legs="Shining One",feet="Shining One"}
}
[+]
 Asura.Reichleiu
Offline
Server: Asura
Game: FFXI
user: Reichleiu
Posts: 414
By Asura.Reichleiu 2019-04-03 14:24:13
Link | Quote | Reply
 
Just replace the old sets with updated equipment. The easiest way is to use "//gs export" when you're wearing the correct set. Open that file, copy the text, and replace the old set with it.

It would take only a few minutes to update a gearswap from 2013/14.

You may have to replace some of the globals at the top, but that's easy to do as well. The functionality of a drg.lua from 2013/14 should still be nearly identical today.

Only the sets should need updating...

Just update the sets...
 Phoenix.Nightfrost
Offline
Server: Phoenix
Game: FFXI
Posts: 7
By Phoenix.Nightfrost 2019-04-03 14:34:56
Link | Quote | Reply
 
thanks for the response guys, But the ones I have use side card files. I'm looking for one that doesn't require alot of include files for it to work.
Offline
Posts: 333
By Sidiov 2019-04-03 15:33:23
Link | Quote | Reply
 
I doubt youll ever find a no sidecar one thats useful, but if you can stomach mote's you can use this
https://github.com/AlanWarren/gearswap/blob/master/DRG.lua
you can comment out the organizer include at the top if you dont use it.

*Note.. sets are outdated in this as well.
Offline
Posts: 333
By Sidiov 2019-04-03 15:36:18
Link | Quote | Reply
 
Spoke too soon... I found this just hitting the DRG page on bg-wiki
It appears to be self contained:
https://pastebin.com/THLpaa7D
necroskull Necro Bump Detected! [195 days between previous and next post]
 Bahamut.Shozokui
Offline
Server: Bahamut
Game: FFXI
user: Shozokui
Posts: 307
By Bahamut.Shozokui 2019-10-16 02:19:32
Link | Quote | Reply
 
Sidiov said: »
I doubt youll ever find a no sidecar

Why do you want to use a lua that has 2000 lines of code in it? Most luas that don't use mote are that way because their existence predates Mote.

Using Mote does not make a lua bad or less performant, in fact it adds so much value and out-of-the-box functionality that you can create very complex rulesets with a few lines of code.

As a programmer, you're making a mistake if you don't use Mote. It's like using C++ without Boost or just writing your application in ASM.

Edit: Saw this one the recent posts and didn't check the dates of the last post. How is this "recent" lol...
[+]
 Asura.Barone
Offline
Server: Asura
Game: FFXI
user: Barone
Posts: 29
By Asura.Barone 2019-10-16 14:05:29
Link | Quote | Reply
 
Part of what makes that LUA so long is the fact that each gear is on it's own individual line, there's a bit much of information there but even my LUA is 879 lines long.

However it does a check for the weapon attached and equips appropriately, adding 300 lines to it though.

If each piece was on it's own line my lua would probably be just as long.

https://pastebin.com/xVXxZv9w
necroskull Necro Bump Detected! [273 days between previous and next post]
 Siren.Lionsheart
Offline
Server: Siren
Game: FFXI
Posts: 6
By Siren.Lionsheart 2020-07-15 16:30:56
Link | Quote | Reply
 
Would anyone help be with adding a GS that switches to a set for when the wyvern uses an elemental breath each time you WS?
 Asura.Koddin
Offline
Server: Asura
Game: FFXI
user: North9ish
Posts: 7
By Asura.Koddin 2020-07-16 16:28:13
Link | Quote | Reply
 
Siren.Lionsheart said: »
Would anyone help be with adding a GS that switches to a set for when the wyvern uses an elemental breath each time you WS?

The first lua at the bottom of "Here Be Drgs" guide on BGwiki has that feature so you could pull it out of that one.
 Siren.Lionsheart
Offline
Server: Siren
Game: FFXI
Posts: 6
By Siren.Lionsheart 2020-07-16 17:20:18
Link | Quote | Reply
 
I apologize, I'm terrible at this. Would this be the area to add in?

function pet_midcast(spell, act)
PetBreathFailover = true
if string.find(spell.english,'Healing Breath') then
ChangeGear(sets.HB.Mentos)
elseif ElementalBreath:contains(spell.english) then
ChangeGear(sets.HB.Ricola)
end
send_command('wait 1.2;gs c PetBreathFailover')
end

And the sets he has further up in the lua that define the gear from it?
 Asura.Koddin
Offline
Server: Asura
Game: FFXI
user: North9ish
Posts: 7
By Asura.Koddin 2020-07-16 20:21:42
Link | Quote | Reply
 
I'm not very good at LUAs but I believe that's most of what you need. Hopefully some one more experienced can correct me if I am wrong. He also has an elemental breath table that should need to be included but I have no idea if you still need this if you use motes

ElementalBreath = S { "Flame Breath", "Sand Breath", "Hydro Breath","Gust Breath", "Frost Breath", "Lightning Breath", }

You may should also either have to remove PetBreathFailover = true or add whatever function uses that variable.
Log in to post.