From 9d4a8d8fa11fd928aad4b88dc2d5638d0a13b02c Mon Sep 17 00:00:00 2001 From: chaosua <544218+chaosua@users.noreply.github.com> Date: Sun, 6 Oct 2024 13:41:00 +0300 Subject: [PATCH] quest delete button: added more data to delete --- MainUnit.pas | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/MainUnit.pas b/MainUnit.pas index 809ecd1..93ab80a 100644 --- a/MainUnit.pas +++ b/MainUnit.pas @@ -4362,12 +4362,21 @@ procedure TMainForm.btDeleteQuestClick(Sender: TObject); begin PageControl2.ActivePageIndex := SCRIPT_TAB_NO_QUEST; meqtScript.Text := Format( - 'DELETE FROM `quest_template` WHERE (`Id`=%0:s);'#13#10+ + 'DELETE FROM `quest_template` WHERE (`ID`=%0:s);'#13#10+ 'DELETE FROM `creature_queststarter` WHERE (`quest`=%0:s);'#13#10+ - 'DELETE FROM `gameobject_queststarter` WHERE (`quest`=%0:s);'#13#10+ 'DELETE FROM `creature_questender` WHERE (`quest`=%0:s);'#13#10+ + 'DELETE FROM `gameobject_queststarter` WHERE (`quest`=%0:s);'#13#10+ 'DELETE FROM `gameobject_questender` WHERE (`quest`=%0:s);'#13#10+ - 'DELETE FROM `areatrigger_involvedrelation` WHERE (`quest`=%0:s);'#13#10 + 'DELETE FROM `areatrigger_involvedrelation` WHERE (`quest`=%0:s);'#13#10+ + 'DELETE FROM `quest_details` WHERE (`ID`=%0:s);'#13#10+ + 'DELETE FROM `quest_greeting` WHERE (`ID`=%0:s);'#13#10+ + 'DELETE FROM `quest_mail_sender` WHERE (`QuestId`=%0:s);'#13#10+ + 'DELETE FROM `quest_offer_reward` WHERE (`ID`=%0:s);'#13#10+ + 'DELETE FROM `quest_poi` WHERE (`QuestId`=%0:s);'#13#10+ + 'DELETE FROM `quest_poi_points` WHERE (`QuestId`=%0:s);'#13#10+ + 'DELETE FROM `quest_request_items` WHERE (`ID`=%0:s);'#13#10+ + 'DELETE FROM `quest_template_addon` WHERE (`ID`=%0:s);'#13#10+ + 'UPDATE `item_template` SET `StartQuest`=0 WHERE (`startquest`=%0:s);'#13#10 ,[lvQuest.Selected.Caption]); end;