diff options
| author | treeston <treeston.mmoc@gmail.com> | 2016-01-20 23:43:13 +0100 |
|---|---|---|
| committer | joschiwald <joschiwald.trinity@gmail.com> | 2016-09-03 13:46:33 +0200 |
| commit | a92bfb5505e17cc183ec5aa74b01564d566b7677 (patch) | |
| tree | 874e21eafc1c7bed13881c9119fa4f9fd155253f /sql/updates | |
| parent | a140ba4b7598636e1e90ed0243b58878231e4b3b (diff) | |
Scripts/Commands: Small QoL adjustments
- .debug hostil now shows spawn ID (DBGUID) in addition to current GUID (so you can .go creature to it)
- .npc temp now takes an additional argument before the creature entry that determines whether the spawned creature instantly despawns upon death. Default is instant despawn (current behavior).
- Add .npc evade command.
- Add .pet level command.
- .server shutdown and .server restart now fail with an error message if time is below a config var (GM.ForceShutdownThreshold, default 30s) as long as another player is connected.
- New commands .server shutdown force and .server restart force bypass this limitation.
(cherry picked from commit 0e1eb460d687e545f95caf0f38a16c3feb7132a3)
Diffstat (limited to 'sql/updates')
| -rw-r--r-- | sql/updates/auth/6.x/2016_09_03_00_auth_2016_05_11_00_auth.sql | 6 | ||||
| -rw-r--r-- | sql/updates/world/6.x/2016_09_03_02_world_2016_05_11_00_world.sql | 33 |
2 files changed, 39 insertions, 0 deletions
diff --git a/sql/updates/auth/6.x/2016_09_03_00_auth_2016_05_11_00_auth.sql b/sql/updates/auth/6.x/2016_09_03_00_auth_2016_05_11_00_auth.sql new file mode 100644 index 00000000000..d1a6f3e6023 --- /dev/null +++ b/sql/updates/auth/6.x/2016_09_03_00_auth_2016_05_11_00_auth.sql @@ -0,0 +1,6 @@ +-- +DELETE FROM `rbac_permissions` WHERE `id` IN (837,838,839,840); +INSERT INTO `rbac_permissions` (`id`,`name`) VALUES (837,"Command: npc evade"), (838,"Command: pet level"), (839,"Command: server shutdown force"), (840,"Command: server restart force"); + +DELETE FROM `rbac_linked_permissions` WHERE `linkedId` IN (837,838,839,840); +INSERT INTO `rbac_linked_permissions` (`id`,`linkedId`) VALUES (196,837),(196,838),(196,839),(196,840); diff --git a/sql/updates/world/6.x/2016_09_03_02_world_2016_05_11_00_world.sql b/sql/updates/world/6.x/2016_09_03_02_world_2016_05_11_00_world.sql new file mode 100644 index 00000000000..8552142ede2 --- /dev/null +++ b/sql/updates/world/6.x/2016_09_03_02_world_2016_05_11_00_world.sql @@ -0,0 +1,33 @@ +-- +DELETE FROM `command` WHERE `name` IN ('server shutdown force','server restart force'); +INSERT INTO `command` (`name`,`permission`) VALUES ('server shutdown force', 839),('server restart force', 840); +UPDATE `command` SET `help`="Syntax: .server shutdown [force] #delay [#exit_code] [reason] + +Shut the server down after #delay seconds. Use #exit_code or 0 as program exit code. Specify 'force' to allow short-term shutdown despite other players being connected." WHERE `name` IN ('server shutdown','server shutdown force'); +UPDATE `command` SET `help`="Syntax: .server restart [force] #delay [#exit_code] [reason] + +Restart the server after #delay seconds. Use #exit_code or 2 as program exit code. Specify 'force' to allow short-term shutdown despite other players being connected." WHERE `name` IN ('server restart','server restart force'); + + +DELETE FROM `command` WHERE `name` IN ('npc add','npc add temp'); +INSERT INTO `command` (`name`,`permission`,`help`) VALUES +("npc add", 571, "Syntax: .npc add #entry + Spawn a creature using template #entry and save it to the database. + If you want a temporary spawn that is not saved to the database, use .npc add temp instead."), +("npc add temp", 575, "Syntax: .npc add temp [loot/noloot] #entry +Adds temporary NPC, not saved to database. + Specify 'loot' to have the NPC's corpse stick around for some time after death, allowing it to be looted. + Specify 'noloot' to have the corpse disappear immediately."); + +DELETE FROM `command` WHERE `name`='npc evade'; +INSERT INTO `command` (`name`,`permission`,`help`) VALUES ("npc evade",837,"Syntax: .npc evade [reason] [force] +Makes the targeted NPC enter evade mode.\nDefaults to specifying EVADE_REASON_OTHER, override this by providing the reason string (ex.: .npc evade EVADE_REASON_BOUNDARY).\nSpecify 'force' to clear any pre-existing evade state before evading - this may cause weirdness, use at your own risk."); + +DELETE FROM `command` WHERE `name`='pet level'; +INSERT INTO `command` (`name`,`permission`,`help`) VALUES ("pet level",838,"Syntax: .pet level #dLevel +Increases/decreases the pet's level by #dLevel. Pet's level cannot exceed the owner's level."); + +DELETE FROM `trinity_string` WHERE `entry` IN (11015,11016); +INSERT INTO `trinity_string` (`entry`,`content_default`) VALUES +(11015,"This creature does not have an active CreatureAI assigned to it."), +(11016,"Select a player or player pet."); |
