|
how do I add more warp options ot myhome.lua
By DaneBlood 2024-12-07 00:04:27
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
Serveur: Asura
Game: FFXI
Posts: 104
By Asura.Nalfey 2024-12-07 01:03:15
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}
}
By DaneBlood 2024-12-07 01:27:10
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
By Lili 2024-12-07 04:19:40
Treat staff II is already in:
https://github.com/Windower/Lua/blob/45db20d088daf72d97e358c3f4b79861d9e3d92c/addons/MyHome/MyHome.lua#L41-L44Code
[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"'}}
By Drayco 2024-12-07 13:16:36
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.
By Kaffy 2024-12-07 13:43:31
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
Serveur: Carbuncle
Game: FFXI
Posts: 4099
By Carbuncle.Nynja 2024-12-07 16:54:13
Dont forget to re-enable ring2 at the end
By Kaffy 2024-12-07 17:42:52
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)
[+]
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 ?
|
|