-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding workflows files * Automated commit to update trust * Re-adding README.md * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Update weapon_skill.lua * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Update README.md * Automated commit to update trust * Automated commit to update trust * Update README.md * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust * Automated commit to update trust --------- Co-authored-by: cyritegamestudios <>
- Loading branch information
Showing
192 changed files
with
6,717 additions
and
1,192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
local TrustCommands = require('cylibs/trust/commands/trust_commands') | ||
local AssistTrustCommands = setmetatable({}, {__index = TrustCommands }) | ||
AssistTrustCommands.__index = AssistTrustCommands | ||
AssistTrustCommands.__class = "AssistTrustCommands" | ||
|
||
function AssistTrustCommands.new(trust, action_queue) | ||
local self = setmetatable(TrustCommands.new(), AssistTrustCommands) | ||
|
||
self.trust = trust | ||
self.action_queue = action_queue | ||
|
||
self:add_command('default', self.handle_assist_player, 'Assist a party or alliance member, // trust assist player_name') | ||
self:add_command('clear', self.handle_clear_assist, 'Clear assist target') | ||
|
||
return self | ||
end | ||
|
||
function AssistTrustCommands:get_command_name() | ||
return 'assist' | ||
end | ||
|
||
-- // trust assist player_name | ||
function AssistTrustCommands:handle_assist_player(party_member_name) | ||
local success | ||
local message | ||
|
||
local alliance_member = self.trust:get_alliance():get_alliance_member_named(party_member_name) | ||
if alliance_member then | ||
success = true | ||
message = "Now assisting "..party_member_name | ||
|
||
self.trust:get_party():set_assist_target(alliance_member) | ||
|
||
if state.AutoPullMode and state.AutoPullMode.value ~= 'Off' then | ||
state.AutoPullMode:set('Off') | ||
self.trust:get_party():add_to_chat(self.trust:get_party():get_player(), "I can't pull when I'm assisting someone else, so I'm going to stop pulling.") | ||
end | ||
else | ||
success = false | ||
message = (party_member_name or 'nil')..' is not a valid party member' | ||
end | ||
|
||
return success, message | ||
end | ||
|
||
-- // trust assist clear | ||
function AssistTrustCommands:handle_clear_assist() | ||
return self:handle_assist_player(windower.ffxi.get_player().name) | ||
end | ||
|
||
return AssistTrustCommands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
local TrustCommands = require('cylibs/trust/commands/trust_commands') | ||
local AttackTrustCommands = setmetatable({}, {__index = TrustCommands }) | ||
AttackTrustCommands.__index = AttackTrustCommands | ||
AttackTrustCommands.__class = "AttackTrustCommands" | ||
|
||
function AttackTrustCommands.new(trust, action_queue) | ||
local self = setmetatable(TrustCommands.new(), AttackTrustCommands) | ||
|
||
self.trust = trust | ||
self.action_queue = action_queue | ||
|
||
-- AutoEngageMode | ||
self:add_command('engage', function(_) return self:handle_toggle_mode('AutoEngageMode', 'Always', 'Off') end, 'Automatically engage mobs party is fighting') | ||
self:add_command('mirror', function(_) return self:handle_toggle_mode('AutoEngageMode', 'Mirror', 'Off') end, 'Automatically engage only if assist target is fighting') | ||
self:add_command('assist', function(_) return self:handle_toggle_mode('AutoEngageMode', 'Assist', 'Off') end, 'Automatically lock onto the battle target but don\'t engage') | ||
|
||
return self | ||
end | ||
|
||
function AttackTrustCommands:get_command_name() | ||
return 'attack' | ||
end | ||
|
||
-- // trust attack [engage, mirror, assist] | ||
function AttackTrustCommands:handle_toggle_mode(mode_var_name, on_value, off_value) | ||
local success = true | ||
local message | ||
|
||
local mode_var = get_state(mode_var_name) | ||
if mode_var.value == on_value then | ||
handle_set(mode_var_name, off_value) | ||
else | ||
handle_set(mode_var_name, on_value) | ||
end | ||
|
||
return success, message | ||
end | ||
|
||
return AttackTrustCommands |
Oops, something went wrong.