forked from TrinityCore/TrinityCore
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom npc commands for creature_template_addon
- Loading branch information
1 parent
5106d9b
commit 410ac3e
Showing
9 changed files
with
210 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
sql/custom/auth/2023_04_15_add_customnpc_addon_commands.sql
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,29 @@ | ||
/** | ||
* PERMISSION GROUP STRUCTURE: | ||
* NOTE: Lesser ID PERM GROUP inherits all permissions from higher ID PERM GROUP. | ||
* e.g. PERM GROUP 198 (mod) has all permissions of PERM GROUP 199 (player) | ||
* 196 - Role: [GM3] Administrator | ||
* 197 - Role: [GM2] Gamemaster | ||
* 198 - Role: [GM1] Moderator, ST | ||
* 199 - Role: [GM0] Player | ||
*/ | ||
START TRANSACTION; | ||
SET @PLAYER := 195; | ||
SET @MODERATOR := 194; | ||
SET @GM := 193; | ||
SET @ADMIN := 192; | ||
|
||
-- [RECREATION: CUSTOM PERMS] | ||
REPLACE INTO rbac_permissions (`id`, `name`) VALUES | ||
(1368, 'Command: .cnpc set aura'), | ||
(1369, 'Command: .cnpc set emote'), | ||
(1370, 'Command: .cnpc set mount') | ||
; | ||
|
||
REPLACE INTO rbac_linked_permissions (`id`, `linkedId`) VALUES | ||
(@MODERATOR, 1368), | ||
(@MODERATOR, 1369), | ||
(@MODERATOR, 1370) | ||
; | ||
COMMIT; | ||
|
10 changes: 10 additions & 0 deletions
10
sql/custom/world/2023_04_15_add_customnpc_addon_commands.sql
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,10 @@ | ||
-- FREEDOM CUSTOM COMMANDS | ||
REPLACE INTO `command` (name, help) VALUES | ||
('customnpc set aura', 'Syntax: .customnpc set aura $key $auraId [0|1]\nToggles the aura for $auraId for the custom npc template with key $key. Optionally use 1 for toggle on (default), or 0 for toggle off.'), | ||
('customnpc set emote', 'Syntax: .customnpc set emote $key $emoteId\nSets the default emote state for the custom NPC template with key $key to $emoteId.'), | ||
('customnpc set mount', 'Syntax: .customnpc set mount $key $mountId\nSets the mount for the custom NPC template with key $key to the creature with id $mountId.'), | ||
|
||
('cnpc set aura', 'Syntax: .cnpc set aura $key $auraId [0|1]\nToggles the aura for $auraId for the custom npc template with key $key. Optionally use 1 for toggle on (default), or 0 for toggle off.'), | ||
('cnpc set emote', 'Syntax: .cnpc set emote $key $emoteId\nSets the default emote state for the custom NPC template with key $key to $emoteId.'), | ||
('cnpc set mount', 'Syntax: .cnpc set mount $key $mountId\nSets the mount for the custom NPC template with key $key to the creature with id $mountId.') | ||
; |
10 changes: 10 additions & 0 deletions
10
sql/updates/freedom/2023_04_15_add_customnpc_addon_commands.sql
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,10 @@ | ||
-- FREEDOM CUSTOM COMMANDS | ||
REPLACE INTO `commands` (command, syntax, description, gmlevel) VALUES | ||
('customnpc set aura', 'Syntax: .customnpc set aura $key $auraId [0|1]','Toggles the aura for $auraId for the custom npc template with key $key. Optionally use 1 for toggle on (default), or 0 for toggle off.', 1), | ||
('customnpc set emote', 'Syntax: .customnpc set emote $key $emoteId','Sets the default emote state for the custom NPC template with key $key to $emoteId.', 1), | ||
('customnpc set mount', 'Syntax: .customnpc set mount $key $mountId','Sets the mount for the custom NPC template with key $key to the creature with id $mountId.', 1), | ||
|
||
('cnpc set aura', 'Syntax: .cnpc set aura $key $auraId [0|1]','Toggles the aura for $auraId for the custom npc template with key $key. Optionally use 1 for toggle on (default), or 0 for toggle off.', 1), | ||
('cnpc set emote', 'Syntax: .cnpc set emote $key $emoteId','Sets the default emote state for the custom NPC template with key $key to $emoteId.', 1), | ||
('cnpc set mount', 'Syntax: .cnpc set mount $key $mountId','Sets the mount for the custom NPC template with key $key to the creature with id $mountId.', 1) | ||
; |
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
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