From be45c124915ca1f4de50b70572d8f28a0c8998b0 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 24 Sep 2021 20:28:59 -0300 Subject: Fix the most annoying bug ever. Instance 0 is reserved anyways. --- npc/002-1/peter.txt | 8 ++++---- npc/commands/debug-quest.txt | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/npc/002-1/peter.txt b/npc/002-1/peter.txt index bff153067..0d8ff3bba 100644 --- a/npc/002-1/peter.txt +++ b/npc/002-1/peter.txt @@ -53,7 +53,7 @@ L_Main: OnGiveTask: L_Task: if (!.@q) - setq ShipQuests_Peter, 1, 0, -1; + setq ShipQuests_Peter, 1, 0, 0; mesn; mesq lg("Hey, girl!", "Hey, man!"); next; @@ -93,7 +93,7 @@ L_ReturnFail: .@q3 = getq3(ShipQuests_Peter); //instance_destroy(.@q3); setq2 ShipQuests_Peter, 0; - setq3 ShipQuests_Peter, -1; + setq3 ShipQuests_Peter, 0; deltimer("RattosControl::OnRatto1Respawn"); deltimer("RattosControl::OnRatto2Respawn"); deltimer("RattosControl::OnRatto3Respawn"); @@ -238,7 +238,7 @@ OnTimeout: .@q3 = getq3(ShipQuests_Peter); //instance_destroy(.@q3); setq2 ShipQuests_Peter, 0; - setq3 ShipQuests_Peter, -1; + setq3 ShipQuests_Peter, 0; deltimer("RattosControl::OnRatto1Respawn"); deltimer("RattosControl::OnRatto2Respawn"); deltimer("RattosControl::OnRatto3Respawn"); @@ -250,7 +250,7 @@ OnTimeout: OnDone: .@q3 = getq3(ShipQuests_Peter); //instance_destroy(.@q3); - setq ShipQuests_Peter, getq(ShipQuests_Peter)|@peter, 0, -1; + setq ShipQuests_Peter, getq(ShipQuests_Peter)|@peter, 0, 0; .@q = getq(ShipQuests_Peter); if (@peter) { diff --git a/npc/commands/debug-quest.txt b/npc/commands/debug-quest.txt index fc6484f18..a92a9d084 100644 --- a/npc/commands/debug-quest.txt +++ b/npc/commands/debug-quest.txt @@ -102,5 +102,5 @@ OnGetq: OnInit: bindatcmd "qdebug", "@qdebug::OnCall", 99, 99, 1; bindatcmd "setq", "@qdebug::OnSetq", 99, 99, 1; - bindatcmd "getq", "@qdebug::OnGetq", 99, 99, 1; + bindatcmd "getq", "@qdebug::OnGetq", 99, 99, 0; } -- cgit v1.2.3-60-g2f50