Gear Swap

Language: JP EN DE FR
New Items
2023-11-19
users online
Forum » Windower » Support » Gear Swap
Gear Swap
 Phoenix.Rikudosennin
Offline
Server: Phoenix
Game: FFXI
Posts: 52
By Phoenix.Rikudosennin 2014-08-24 12:44:13
Link | Quote | Reply
 
Good afternoon everyone. I am in need of some help. my AutoRA.Lua file continuously stops me from AutoRA once I hit 1000 tp. Is there a way to fix it. Here is my AutoRA.lua commands now.


function get_sets()
AccIndex = 1
AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For Shooting/TP/WS. First Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below. Most of These Sets Are Empty So You Need To Edit Them On Your Own. Remember To Check What The Combined Set Is For Each Sets. --
WeaponIndex = 1
WeaponArray = {"Annihilator",} -- Default Ranged Weapon Is Annihilator. Can Delete Any Weapons/Sets That You Don't Need Or Replace/Add The New Weapons That You Want To Use. --
IdleIndex = 1
IdleArray = {"Movement"} -- Default Idle Set Is Movement --
Armor = 'None'
warning = false
AutoMode = 'ON' -- Set Default Auto RA/WS ON or OFF Here --
Attack = 'OFF' -- Set Default Attack Set ON or OFF Here --
Enmity = 'OFF' -- Set Default Enmity Set ON or OFF Here --
ammo_warning_limit = 10 -- Set Ammo Limit Check Here --
Samurai_Roll = 'ON' -- Set Default SAM Roll ON or OFF Here --
target_distance = 5 -- Set Default Distance Here --




-- Preshot --
sets.Preshot = {
ammo="Scorpion. Arrow"} -- Change to your cheap ammo

end

function pretarget(spell,action)
if spell.action_type == 'Ranged Attack' and not buffactive.amnesia then -- Auto WS/Decoy Shot/Double Shot --
if player.tp >= 4000 and AutoMode == 'ON' then
cancel_spell()
autoWS()
end
elseif spell.action_type == 'Ranged Attack' and spell.target.distance > 24.9 then
cancel_spell()
add_to_chat(123, spell.name..' Canceled: [Out of Range]')
return
elseif spell.type == 'WeaponSkill' and player.status == 'Engaged' then
if spell.skill == 'Archery' or spell.skill == 'Marksmanship' then
if spell.target.distance > 16+target_distance then
cancel_spell()
add_to_chat(123, spell.name..' Canceled: [Out of Range]')
return
end
else
if spell.target.distance > target_distance then
cancel_spell()
add_to_chat(123, spell.name..' Canceled: [Out of Range]')
return
end
end
end
end

function precast(spell,action)
local check_ammo
local check_ammo_count = 1
if spell.action_type == 'Ranged Attack' then
check_ammo = player.equipment.ammo
if player.equipment.ammo == 'empty' or player.inventory[check_ammo].count <= check_ammo_count then
add_to_chat(123, spell.name..' Canceled: [Out of Ammo]')
cancel_spell()
return
else
equip(sets.Preshot)
if player.inventory[check_ammo].count <= ammo_warning_limit and player.inventory[check_ammo].count > 1 and not warning then
add_to_chat(123, '***** [Low Ammo Warning!] *****')
warning = true
elseif player.inventory[check_ammo].count > ammo_warning_limit and warning then
warning = false
end
end
elseif spell.type == "WeaponSkill" then
if player.status ~= 'Engaged' then -- Cancel WS If You Are Not Engaged. Can Delete It If You Don't Need It --
cancel_spell()
add_to_chat(123,'Unable To Use WeaponSkill: [Disengaged]')
return
else
equipSet = sets.
equip(equipSet)
end
end

function midcast(spell,action)

end

function aftercast(spell,action)
if AutoMode == 'ON' then
autoRA()
end
end

function status_change(new,old)
if new == 'Engaged' then
if AutoMode == 'ON' then
autoRA()
end
end

end


-- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
function self_command(command)
if command == 'C2' then -- Auto RA/WS Toggle --
if AutoMode == 'ON' then
AutoMode = 'OFF'
add_to_chat(123,'Auto Mode: [OFF]')
else
AutoMode = 'ON'
add_to_chat(158,'Auto Mode: [ON]')
end
end
end

function autoRA()
if player.status == 'Engaged' then
send_command('@wait 2.7; input /ra <t>')
end
end

function autoWS() -- Change Auto WS Here --
send_command('input /ws "Flaming Arrow" <t>')
end
 Cerberus.Conagh
Offline
Server: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2014-08-24 13:57:02
Link | Quote | Reply
 
Your AutoWS and AutoRA have the same toggle, I assume once you get 100 tp it is trying to send a RA and WS command at the same time, but the WS will show an error (assuming you use gun).

Put the whole file into a
So we can look through without huge downloads :)
 Asura.Kurairyu
Offline
Server: Asura
Game: FFXI
Posts: 19
By Asura.Kurairyu 2014-08-24 14:46:50
Link | Quote | Reply
 
Code
function get_sets()
	AccIndex = 1
	AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For Shooting/TP/WS. First Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below. Most of These Sets Are Empty So You Need To Edit Them On Your Own. Remember To Check What The Combined Set Is For Each Sets. --
	WeaponIndex = 1
	WeaponArray = {"Annihilator",} -- Default Ranged Weapon Is Annihilator. Can Delete Any Weapons/Sets That You Don't Need Or Replace/Add The New Weapons That You Want To Use. --
	IdleIndex = 1
	IdleArray = {"Movement"} -- Default Idle Set Is Movement --
	Armor = 'None'
	warning = false
	AutoMode = 'ON' -- Set Default Auto RA/WS ON or OFF Here --
	Attack = 'OFF' -- Set Default Attack Set ON or OFF Here --
	Enmity = 'OFF' -- Set Default Enmity Set ON or OFF Here --
	ammo_warning_limit = 10 -- Set Ammo Limit Check Here --
	Samurai_Roll = 'ON' -- Set Default SAM Roll ON or OFF Here --
	target_distance = 5 -- Set Default Distance Here --


	

	-- Preshot --
	sets.Preshot = {
			ammo="Scorpion. Arrow"} -- Change to your cheap ammo

end

function pretarget(spell,action)
	if spell.action_type == 'Ranged Attack' and not buffactive.amnesia then -- Auto WS/Decoy Shot/Double Shot --
		if player.tp >= 4000 and AutoMode == 'ON' then
			cancel_spell()
			autoWS()
		end
	elseif spell.action_type == 'Ranged Attack' and spell.target.distance > 24.9 then
		cancel_spell()
		add_to_chat(123, spell.name..' Canceled: [Out of Range]')
		return
	elseif spell.type == 'WeaponSkill' and player.status == 'Engaged' then
		if spell.skill == 'Archery' or spell.skill == 'Marksmanship' then
			if spell.target.distance > 16+target_distance then
				cancel_spell()
				add_to_chat(123, spell.name..' Canceled: [Out of Range]')
				return
			end
		else
			if spell.target.distance > target_distance then
				cancel_spell()
				add_to_chat(123, spell.name..' Canceled: [Out of Range]')
				return
			end
		end
	end
end

function precast(spell,action)
	local check_ammo
	local check_ammo_count = 1
	if spell.action_type == 'Ranged Attack' then
		check_ammo = player.equipment.ammo
		if player.equipment.ammo == 'empty' or player.inventory[check_ammo].count <= check_ammo_count then
			add_to_chat(123, spell.name..' Canceled: [Out of Ammo]')
			cancel_spell()
			return
		else
			equip(sets.Preshot)
			if player.inventory[check_ammo].count <= ammo_warning_limit and player.inventory[check_ammo].count > 1 and not warning then
				add_to_chat(123, '***** [Low Ammo Warning!] *****')
				warning = true
			elseif player.inventory[check_ammo].count > ammo_warning_limit and warning then
				warning = false
			end
		end
	elseif spell.type == "WeaponSkill" then
		if player.status ~= 'Engaged' then -- Cancel WS If You Are Not Engaged. Can Delete It If You Don't Need It --
			cancel_spell()
			add_to_chat(123,'Unable To Use WeaponSkill: [Disengaged]')
			return
		else
			equipSet = sets.
			equip(equipSet)
		end
end

function midcast(spell,action)

end

function aftercast(spell,action)
        if AutoMode == 'ON' then
                autoRA()
		end
end

function status_change(new,old)
    if new == 'Engaged' then
       if AutoMode == 'ON' then
                autoRA()
		end
    end

end


-- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
function self_command(command)
	if command == 'C2' then -- Auto RA/WS Toggle --
		if AutoMode == 'ON' then
			AutoMode = 'OFF'
			add_to_chat(123,'Auto Mode: [OFF]')
		else
			AutoMode = 'ON'
			add_to_chat(158,'Auto Mode: [ON]')
		end
	end
end

function autoRA()
if player.status == 'Engaged' then
	send_command('@wait 2.7; input /ra <t>')
end
end

function autoWS() -- Change Auto WS Here --
	send_command('input /ws "Flaming Arrow" <t>')
end
 Asura.Kurairyu
Offline
Server: Asura
Game: FFXI
Posts: 19
By Asura.Kurairyu 2014-08-24 14:48:08
Link | Quote | Reply
 
There you go. I am a Samurai. Using a bow and to skill up while I play my 3DS and other games.
 Cerberus.Conagh
Offline
Server: Cerberus
Game: FFXI
user: onagh
Posts: 3189
By Cerberus.Conagh 2014-08-24 15:12:49
Link | Quote | Reply
 
Asura.Kurairyu said: »
There you go. I am a Samurai. Using a bow and to skill up while I play my 3DS and other games.

My main question however, is why you dont use this...


This is the AutoRA Addon that Auto Shots as soon as you are able to and is more efficient than waiting 2.7 seconds.
 Asura.Kurairyu
Offline
Server: Asura
Game: FFXI
Posts: 19
By Asura.Kurairyu 2014-08-24 15:37:17
Link | Quote | Reply
 
the reason why is because I was told that with GearSwap I can have it auto load my ammo when I run out. Just in case I don't fully pay attention.
 Asura.Kurairyu
Offline
Server: Asura
Game: FFXI
Posts: 19
By Asura.Kurairyu 2014-08-24 18:53:28
Link | Quote | Reply
 
Is it possible for AutoRa add on put arrows on if you run out. Because when I am going to skill up Archery I am going to be afk playing something else and I don't want to keep switching back and forth between the games just to see if I have arrows equipped.
Offline
Posts: 1
By number619 2014-09-18 20:35:04
Link | Quote | Reply
 
anyone have a way to add an auto weaponskill and auto job ability to autora.lua file? Thanks!
Log in to post.