VW Commands

Langues: JP EN DE FR
users online
Forum » Windower » Support » VW Commands
VW Commands
 Asura.Einzig
Offline
Serveur: Asura
Game: FFXI
user: Zekky
Posts: 2
By Asura.Einzig 2019-02-19 10:34:39
Link | Citer | R
 
I'm using the autovw lua and noticed I'm unable to determine how many stones I want to use. I'm only allowed 3 or 5 as the script says. I tried editing it so I could use 1 to 5 stones whenever, but I get errors. Any suggestions?
Code
autovw = false
pop = false
popper = "Einzig" -- change to whomever is popping
phase = 3 --1-5, false for none
rubicund = true
Code
windower.register_event('addon command',function (command,...)
	local args = T{...}
	if S{"run","on","start"}:contains(command) then
		autovw = true
        windower.add_to_chat(200,'AutoVW on')
	    if type(phase)=='number' then
			if phase==5 then
                windower.send_command('d m vw5')
            elseif phase==3 then
                windower.send_command('d m vw3')
            end
        end	
 Leviathan.Zelllo
Online
Serveur: Leviathan
Game: FFXI
user: Zelllo
Posts: 30
By Leviathan.Zelllo 2019-02-19 12:04:32
Link | Citer | R
 
Could try changing:
Code
            if phase==5 then
                windower.send_command('d m vw5')
            elseif phase==3 then
                windower.send_command('d m vw3')
            end


To this:
Code
            windower.send_command('d m vw'..phase)


Then just set phase equal to the number of displacers you want to use. All this is assuming the code otherwise does what it is saying correctly and with the disclaimer that I don't care what happens if you set phase to -6 or 7657634 and you blow up your machine.

I've never used autovw, but would be curious to know if it solves your problem.
Log in to post.