Drg Gearswap Lua

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » FFXI » Jobs » Dragoon » Drg Gearswap lua
Drg Gearswap lua
 Phoenix.Nightfrost
Offline
サーバ: Phoenix
Game: FFXI
Posts: 8
By Phoenix.Nightfrost 2019-04-03 13:32:58  
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: 346
By Sidiov 2019-04-03 14:17:59  
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
サーバ: Asura
Game: FFXI
user: Reichleiu
Posts: 414
By Asura.Reichleiu 2019-04-03 14:24:13  
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
サーバ: Phoenix
Game: FFXI
Posts: 8
By Phoenix.Nightfrost 2019-04-03 14:34:56  
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: 346
By Sidiov 2019-04-03 15:33:23  
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: 346
By Sidiov 2019-04-03 15:36:18  
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
サーバ: Bahamut
Game: FFXI
user: Shozokui
Posts: 460
By Bahamut.Shozokui 2019-10-16 02:19:32  
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
サーバ: Asura
Game: FFXI
user: Barone
Posts: 32
By Asura.Barone 2019-10-16 14:05:29  
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
サーバ: Siren
Game: FFXI
Posts: 6
By Siren.Lionsheart 2020-07-15 16:30:56  
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
サーバ: Asura
Game: FFXI
user: North9ish
Posts: 7
By Asura.Koddin 2020-07-16 16:28:13  
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
サーバ: Siren
Game: FFXI
Posts: 6
By Siren.Lionsheart 2020-07-16 17:20:18  
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
サーバ: Asura
Game: FFXI
user: North9ish
Posts: 7
By Asura.Koddin 2020-07-16 20:21:42  
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.
necroskull Necro Bump Detected! [280 days between previous and next post]
Offline
Posts: 281
By Galkapryme 2021-04-22 22:37:08  
For my edification, in lua files, what are:

1. Mote
2. Sidecar
Offline
Posts: 179
By Subadai 2021-04-22 23:14:58  
1. Motenten/Kinematics libraries for GearSwap. Luas based on these libraries have additional features as explained here.

2. Sidecar files are one of the extra features in Mote's, briefly documented here.
[+]
Offline
Posts: 30
By Yzen 2021-04-24 09:03:47  
@Galkapryme and Subadai -- thanks for the query and sharing the information -- Gives a whole new meaning to the term "Veteran". To capture and synthesize the context and intersections of lua use is like a full time second job
Offline
Posts: 30
By Yzen 2021-04-25 09:31:05  
Anyone have a 2021 DRG lua they can share publicly for DRG newbies?
 Ragnarok.Garzyan
Offline
サーバ: Ragnarok
Game: FFXI
user: Garzyan
Posts: 23
By Ragnarok.Garzyan 2021-04-25 11:46:58  
You can get one from the drg guide on bgwiki.
I use a slightly modified version of that. and im pretty happy with it
Log in to post.