-
-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
367 additions
and
175 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
local icon = TalkAction("/guild") | ||
|
||
function icon.onSay(player, words, param) | ||
-- create log | ||
logCommand(player, words, param) | ||
|
||
local split = param:split(",") | ||
local category = split[1] | ||
Check warning on line 8 in data/scripts/talkactions/god/set_icon.lua GitHub Actions / luacheck[luacheck] data/scripts/talkactions/god/set_icon.lua#L8
Raw output
|
||
local icon = split[2] | ||
Check warning on line 9 in data/scripts/talkactions/god/set_icon.lua GitHub Actions / luacheck[luacheck] data/scripts/talkactions/god/set_icon.lua#L9
Raw output
Check warning on line 9 in data/scripts/talkactions/god/set_icon.lua GitHub Actions / luacheck[luacheck] data/scripts/talkactions/god/set_icon.lua#L9
Raw output
|
||
|
||
local guild = player:getGuild() | ||
local guildId = tonumber(param) | ||
local otherGuild = Guild(guildId) | ||
otherGuild:addEnemy(player:getGuild():getId()) | ||
guild:addEnemy(guildId) | ||
guild:updateEmblems() | ||
otherGuild:updateEmblems() | ||
return true | ||
end | ||
|
||
icon:separator(" ") | ||
icon:groupType("normal") | ||
icon:register() |
Oops, something went wrong.