How Do I Add More Warp Options Ot Myhome.lua

Langues: JP EN DE FR
users online
Forum » Windower » Support » how do I add more warp options ot myhome.lua
how do I add more warp options ot myhome.lua
Offline
Posts: 1161
By DaneBlood 2024-12-07 00:04:27
Link | Citer | R
 
i was looking at myhome.lua add on and was trying to add the treat staff II and trick staff II.
i added then in the item list and it appears the add-oin undestood they were there and tried to use them but it had a weird effect

One of the staf every so often it would not use it. Just wait 31 secs.
once both staves was addeed the addon would now skip using warp ring.

So i must be missing some changes needed somewhere else in the code.
anyway got myhome.lua to work with more warp items ?
 Asura.Nalfey
Offline
Serveur: Asura
Game: FFXI
user: Nalf
Posts: 104
By Asura.Nalfey 2024-12-07 01:03:15
Link | Citer | R
 
Hi Dane,

I don't have those two staves to test but did you add them to the list like this ?:

Code
item_info = {
    [1]={id=28540,japanese='デジョンリング',english='"Warp Ring"',slot=13},
    [2]={id=17040,japanese='デジョンカジェル',english='"Warp Cudgel"',slot=0},
    [3]={id=4181,japanese='呪符デジョン',english='"Instant Warp"'},
    [4]={id=17588,japanese='トリートスタッフII',english='"Treat Staff II"',slot=0},
    [5]={id=17587,japanese='トリックスタッフII',english='"Trick Staff II"',slot=0}
    }
Offline
Posts: 1161
By DaneBlood 2024-12-07 01:27:10
Link | Citer | R
 
Asura.Nalfey said: »
Hi Dane,

I don't have those two staves to test but did you add them to the list like this ?:

Code
item_info = {
    [1]={id=28540,japanese='デジョンリング',english='"Warp Ring"',slot=13},
    [2]={id=17040,japanese='デジョンカジェル',english='"Warp Cudgel"',slot=0},
    [3]={id=4181,japanese='呪符デジョン',english='"Instant Warp"'},
    [4]={id=17588,japanese='トリートスタッフII',english='"Treat Staff II"',slot=0},
    [5]={id=17587,japanese='トリックスタッフII',english='"Trick Staff II"',slot=0}
    }

Yup. well kinda mine was like this

Code
item_info = {
    [1]={id=28540,japanese='デジョンリング',english='"Warp Ring"',slot=13},
    [2]={id=17040,japanese='デジョンカジェル',english='"Warp Cudgel"',slot=0},
    [3]={id=17588,japanese='トリートスタッフII',english='"Treat Staff II"',slot=0},
    [4]={id=17587,japanese='トリックスタッフII',english='"Trick Staff II"',slot=0},
    [5]={id=4181,japanese='呪符デジョン',english='"Instant Warp"'}
    }



So I looked through the codes to see if there was any kind of index counter but could not see any that would indciate it only looks through X amount of entries on that list

Maybe I'll just try to redo it
VIP
Offline
Posts: 788
By Lili 2024-12-07 04:19:40
Link | Citer | R
 
Treat staff II is already in:

https://github.com/Windower/Lua/blob/45db20d088daf72d97e358c3f4b79861d9e3d92c/addons/MyHome/MyHome.lua#L41-L44
Code
    [1]={id=28540,japanese='デジョンリング',english='"Warp Ring"',slot=13},
    [2]={id=17588,japanese='トリートスタッフII',english='"Treat Staff II"',slot=0},
    [3]={id=17040,japanese='デジョンカジェル',english='"Warp Cudgel"',slot=0},
    [4]={id=4181,japanese='呪符デジョン',english='"Instant Warp"'}}
Offline
Posts: 696
By Drayco 2024-12-07 13:16:36
Link | Citer | R
 
As long as we're asking coding questions here... How would you go about having myhome deactivating Gearswap slots for these items? It would be amazing to have it //gs disable ring1 whenever MyHome equips Warp Ring and then reenable it after it uses it.
Offline
Posts: 383
By Kaffy 2024-12-07 13:43:31
Link | Citer | R
 
just make an alias, is what I did. but then I don't use this addon or other items just warp ring and instant warp scrolls
Code
alias wring send @all gs disable ring2;wait 1;send @all /equip ring2 'warp ring';wait 12;send @all /item 'warp ring' <me>
 Carbuncle.Nynja
Offline
Serveur: Carbuncle
Game: FFXI
user: NynJa
Posts: 4102
By Carbuncle.Nynja 2024-12-07 16:54:13
Link | Citer | R
 
Dont forget to re-enable ring2 at the end
Offline
Posts: 383
By Kaffy 2024-12-07 17:42:52
Link | Citer | R
 
oh yeah i use this to make sure everything is enabled upon zoning
Code
windower.register_event('zone change', function()
	send_command('wait 10;gs enable all;wait 1;gs equip sets.Idle')
end)
[+]
Log in to post.