React Or Onevent

Langues: JP EN DE FR
users online
Forum » Windower » Support » React or Onevent
React or Onevent
 Asura.Botosi
Offline
Serveur: Asura
Game: FFXI
user: Botosi
Posts: 375
By Asura.Botosi 2019-08-26 14:11:06
Link | Citer | R
 
Looking for something similar to the old school "on-event":

Is there a lua (possibly react?) that can cast a spell such as Cursna on a character if they say "cursna" in party chat?

Does React have this capability? Specifically I want the Lua to be able to cast on whoever is asking for the debuff/cure/whatever.
 Asura.Meliorah
Offline
Serveur: Asura
Game: FFXI
user: DatGoose
Posts: 576
By Asura.Meliorah 2019-08-26 14:26:23
Link | Citer | R
 
So what you want is a bot.
 Asura.Eiryl
Offline
Serveur: Asura
Game: FFXI
user: Eiryl
By Asura.Eiryl 2019-08-26 14:27:44
Link | Citer | R
 
The whm bots already do this

Whenever you see someone type "Firebuffs" etc it's to command the bot

it's literally built right into the gearswap lua for whm (if you get the right one)
 Asura.Botosi
Offline
Serveur: Asura
Game: FFXI
user: Botosi
Posts: 375
By Asura.Botosi 2019-08-26 14:56:05
Link | Citer | R
 
Asura.Eiryl said: »
The whm bots already do this

it's literally built right into the gearswap lua for whm (if you get the right one)

Do you know which Whm gearswap lua it is? Mine (I'm pretty sure from the Whm guide) doesn't have this feature.
 Asura.Eiryl
Offline
Serveur: Asura
Game: FFXI
user: Eiryl
By Asura.Eiryl 2019-08-26 15:28:04
Link | Citer | R
 
So I have all the files for it, but I don't use it. And I don't want to give you a bunch of random ***that neither of us know how to operate lol. (I used it for like a week just to play with)

If no one comes along to give you an easy version of it ill post what i have.

I -think- that it's spell_stack.lua that makes party commands work.
 Fenrir.Richybear
Offline
Serveur: Fenrir
Game: FFXI
user: Richybear
Posts: 1139
By Fenrir.Richybear 2019-08-26 15:46:28
Link | Citer | R
 
Was always fun if you were in a party with someone with a pocket WHM and made it do derpy ***instead.

Oh, they're in the orange for HP? ask for pro/shell in party chat to confuse it.
[+]
 Asura.Eiryl
Offline
Serveur: Asura
Game: FFXI
user: Eiryl
By Asura.Eiryl 2019-08-26 15:49:04
Link | Citer | R
 
Yeah, that's the issue I have with just giving it out. There are updates people have added to stop that from happening. But I'm not familiar with them.

Or you get like the whole alliance going "Haste" and you break the damn thing with the same command 12 times.

include('spam_protection.lua')
 Asura.Botosi
Offline
Serveur: Asura
Game: FFXI
user: Botosi
Posts: 375
By Asura.Botosi 2019-08-26 15:54:23
Link | Citer | R
 
Honestly i dont even want it for Whm. I just created a new account that I plan on using as a GEO main and I just want to send some commands through party chat rather than control him.

Thing is; I dont want to create a billion lines in my OnEvent. XiClaim is old, janky and crashes sometimes.
 Asura.Eiryl
Offline
Serveur: Asura
Game: FFXI
user: Eiryl
By Asura.Eiryl 2019-08-26 16:03:40
Link | Citer | R
 
You can make it work for any job just by changing the file name from whm.lua to geo.lua

It's got to be pretty easy to just make a single line in lua that casts cursna if someone types 'cursna', I just don't know exactly what makes it do that.
 Asura.Botosi
Offline
Serveur: Asura
Game: FFXI
user: Botosi
Posts: 375
By Asura.Botosi 2019-08-26 16:34:59
Link | Citer | R
 
Is it possible to run 1 instance of Windower and 1 instance of Ashita on the same PC at the same time?

It seems like Ashita's Onevent addon would do exactly what I need it to.
 Asura.Eiryl
Offline
Serveur: Asura
Game: FFXI
user: Eiryl
By Asura.Eiryl 2019-08-26 16:43:26
Link | Citer | R
 
I don't think anything would stop you from doing so, as long as neither full screens to crash the other.
 Asura.Meliorah
Offline
Serveur: Asura
Game: FFXI
user: DatGoose
Posts: 576
By Asura.Meliorah 2019-08-26 17:48:06
Link | Citer | R
 
Dgvoodoo prevents crash on anything going fullscreen or display going off or driver crash. Pretty life changing stuff.
 Asura.Shiraj
Offline
Serveur: Asura
Game: FFXI
user: Shiraj
Posts: 1028
By Asura.Shiraj 2019-08-26 19:06:21
Link | Citer | R
 
I normally wouldn't post anything from gearswap in public, but here, a very basic way of doing party chat commands. There are way more complex ways of doing it, but this is quick and easy.
Put this on mule's lua and where mine has "if sender == 'Shiraj'", change the name to your character of choice, you can do multiple characters if you wish with putting in " if sender == "name" or sender == "other name" and message:contains"

You can use this for whatever, just change the spell "erase" to what you want.
Code
windower.register_event('chat message', function(message,sender,mode,gm)

    --Ignore it if it's not party chat or a tell
    if mode ~= 3 and mode ~= 4 then return end
    
    local play = windower.ffxi.get_player().name
    
    message = message:lower()

    if sender == 'Shiraj' and message:contains('erase') then
        windower.send_command('input /ma Erase ' .. sender)
    end

end)


Edit: As Eiryl said before, party chat commands will end up making an entire alliance spam you with Haste or something, which is why I prefer this method as it only accepts the people in the sender and if other people try who aren't in it will be ignored.
This will not just give anyone in party spells unless it's been specified.
 Asura.Botosi
Offline
Serveur: Asura
Game: FFXI
user: Botosi
Posts: 375
By Asura.Botosi 2019-08-26 19:44:44
Link | Citer | R
 
That is awesome! Thank you and very appreciated.
Log in to post.