Skip to content

Commit

Permalink
quest delete button: added more data to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
chaosua committed Oct 6, 2024
1 parent 6f497d9 commit 9d4a8d8
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions MainUnit.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9d4a8d8

Please sign in to comment.