Skip to content

fix(DB/Commands) - Added and updated "go" commands for objects and creatures #22229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions data/sql/updates/pending_db_world/rev_1748445403931598000.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
--
DELETE FROM `command` WHERE `name` IN ("go gameobject", "go gameobject id");
INSERT INTO `command` (`name`, `security`, `help`) VALUES
("go gameobject", 1, "Syntax: .go gameobject $gameobject.guid\r\nTeleports you to the gameobject using `guid` value of `gameobject` table."),
("go gameobject id", 1, "Syntax: .go gameobject id $gameobject_template.entry \r\nTeleports you to a gameobject using the `entry` value of `gameobject_template` table. \r\nIn the case of multiple objects of the same `entry(id)` existing in the world, you will be teleported to the lowest `guid` object.");

UPDATE `command` SET `help` = "Syntax: .go creature $creature.guid \r\nTeleports you to the creature using `guid` value of `creature` table." WHERE `name` LIKE "go creature";
UPDATE `command` SET `help` = "Syntax: .go creature id $creature_template.entry \r\nTeleports you to a creature using the `entry` value of `creature_template` table. \r\nIn the case of multiple creature of the same `entry(id1)` existing in the world, you will be teleported to the lowest `guid` creature." WHERE `name` LIKE "go creature id";
UPDATE `command` SET `help` = "Syntax: .go creature name $creature_template.name \r\nTeleports you to a creature using the `name` value of `creature_template` table. \r\nIn the case of multiple creature of the same `name` existing in the world, you will be teleported to the lowest `guid` creature.\r\nWhen running the command for names with spaces don't break the string, example: .go creature name Ruby Scalebane" WHERE `name` LIKE "go creature name";