From ea4675dc1669621e31bb5a1e573315c2d344ab2d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 17 Apr 2020 06:25:16 -0300 Subject: Having a Candor Battle Score is enough. Fix bug where score was not saved. --- npc/006-0/core.txt | 2 +- npc/functions/hub.txt | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/npc/006-0/core.txt b/npc/006-0/core.txt index 166c393df..322023cb6 100644 --- a/npc/006-0/core.txt +++ b/npc/006-0/core.txt @@ -6,7 +6,7 @@ end; OnTouch: - if (is_staff()) goto L_Accept; // FIXME + if (CRAZYPOINTS) goto L_Accept; // FIXME // Reject specialeffect(5000, SELF, getcharid(3)); dispbottom l("The power which lies in Candor rejects your strength."); diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index e38a072e3..333ac14f4 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -75,6 +75,14 @@ function script HUB_Logout { deltimer(instance_npcname("Arnea#003-13")+"::OnVerify"); } } + // Died or logged out at Candor Battle + if (.@mapa$ == "006-1") { + if (@crazypoints > CRAZYPOINTS) { + CRAZYPOINTS=@crazypoints; + dispbottom l("Crazyfefe Cave: New Highscore: @@ points", CRAZYPOINTS); + @crazypoints=0; + } + } // Died or logged during Bandit Lord fight if (.@mapa$ == "015-2") { if (isin("015-2", 228, 227, 282, 280)) -- cgit v1.2.3-70-g09d2