From b2a4dda478bc75fd89b860b71de4f5e991722a7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A1udio=20Costa?= <54484196+claudiodfc@users.noreply.github.com> Date: Thu, 6 Jan 2022 10:57:18 +0000 Subject: [PATCH] fix(DB\Texts): Goblin pit crew's gossip probability (#9905) * fix(DB): Goblin pit crew's gossip probability - Since these guys have 5 possible gossip options, setting this to 25 each option will equal to 100 percentage. - There are plenty more gossips like this one only have % of 1 to show that need to me manually fixed since we don't know how many npc_text they may have. A query to count the text_x_x and update the according % should be good to go, however this way is safer. * Update rev_1640706977785890600.sql --- .../sql/updates/pending_db_world/rev_1640706977785890600.sql | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 data/sql/updates/pending_db_world/rev_1640706977785890600.sql diff --git a/data/sql/updates/pending_db_world/rev_1640706977785890600.sql b/data/sql/updates/pending_db_world/rev_1640706977785890600.sql new file mode 100644 index 000000000..c53b04e41 --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1640706977785890600.sql @@ -0,0 +1,5 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1640706977785890600'); + +-- Setting probability to 25% for each of the texts. 5*25 = 100% +SET @PROBABILITY = 25; +UPDATE `npc_text` SET `Probability0` = @PROBABILITY, `Probability1` = @PROBABILITY, `Probability2` = @PROBABILITY, `Probability3` = @PROBABILITY, `Probability4` = @PROBABILITY WHERE `ID` IN (778);