summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-17 06:25:16 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-17 06:25:16 -0300
commitea4675dc1669621e31bb5a1e573315c2d344ab2d (patch)
treef8a9aeaf3bad13ed008e7a5b90c51a365a13eb74
parentbbbb4a68efcc73ddb6520186a65346ed59a4dab5 (diff)
downloadserverdata-r11.4_20200417.tar.gz
serverdata-r11.4_20200417.tar.bz2
serverdata-r11.4_20200417.tar.xz
serverdata-r11.4_20200417.zip
Having a Candor Battle Score is enough.r11.4_20200417
Fix bug where score was not saved.
-rw-r--r--npc/006-0/core.txt2
-rw-r--r--npc/functions/hub.txt8
2 files changed, 9 insertions, 1 deletions
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))