SkyFireArchives / SkyFireDB

This Repository will no longer be updated. Download here.
http://www.projectskyfire.org/index.php?/files/file/1-skyfiredb-release11zip/
GNU General Public License v3.0
100 stars 52 forks source link

Removed all ambient gossip that didn't/shouldn't exist. #194

Open ghost opened 12 years ago

ghost commented 12 years ago

Redundancies are in place to prevent potential undesired loss of data.

Signed-off-by: sycantha bryan.mayer26@yahoo.com

Kretol commented 12 years ago

After doing this, we'll probably also want to include a query to remove creature_ai_scripts entries pointing to these no-longer-existing gossips.

DELETE FROM creature_ai_scripts WHERE event_type=1 AND action1_type=1 AND action1_param1 NOT IN (SELECT entry FROM creature_ai_texts)

This is to mostly remove all the console errors about the ai_texts not existing when the scripts try to run. However, this also brings up other console errors about NPCs not having script entries. I'd suggest we then run:

ALTER TABLE  `creature_ai_scripts` ADD INDEX ( `creature_id` )
UPDATE `creature_template` SET AIName='' WHERE AIName = 'EventAI' AND entry NOT IN (SELECT creature_id FROM creature_ai_scripts)
ALTER TABLE  `creature_ai_scripts` DROP INDEX `creature_id`
ghost commented 12 years ago

agreed.

ghost commented 12 years ago

http://pastebin.com/h88siTfu

Paste bin for prettiernesseress.

SkyFire commented 12 years ago

Will add this to the next DB update coming soon.

ghost commented 12 years ago

: D