summaryrefslogtreecommitdiff
path: root/npc/functions/gmbot.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-02-23 22:39:38 -0300
committerJesusaves <cpntb1@ymail.com>2021-02-23 22:39:38 -0300
commit0daf11a75304af002e99d645b5519a54b72ceb7e (patch)
treecceb0253549cec22eb4f97e8e20c9f92fb4674ce /npc/functions/gmbot.txt
parent049803b414873029ffc2593ad2d22c064d6ab309 (diff)
downloadserverdata-0daf11a75304af002e99d645b5519a54b72ceb7e.tar.gz
serverdata-0daf11a75304af002e99d645b5519a54b72ceb7e.tar.bz2
serverdata-0daf11a75304af002e99d645b5519a54b72ceb7e.tar.xz
serverdata-0daf11a75304af002e99d645b5519a54b72ceb7e.zip
Fix typos on Lightbringer NPC
Diffstat (limited to 'npc/functions/gmbot.txt')
-rw-r--r--npc/functions/gmbot.txt20
1 files changed, 14 insertions, 6 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt
index 898f636b8..4f65857af 100644
--- a/npc/functions/gmbot.txt
+++ b/npc/functions/gmbot.txt
@@ -7,12 +7,12 @@
boss,45,42,0 script Lightbringer NPC_LIGHTBRINGER,{
function movelb;
function matrixlb;
+ function notAvailable;
- if ($GAME_STORYLINE >= 3) goto L_Today;
- npctalkonce l("It still isn't time to awake the King Of Holy Swords, Light Bringer.");
- end;
+ if ($GAME_STORYLINE < 3) notAvailable();
+ if (islegendary()) notAvailable();
+ if ($LIGHT_HOLDER$ != "") notAvailable();
-L_Today:
.@q=getq(General_Narrator);
// Prologue missed - straight refusal
if (.@q < 19) {
@@ -56,12 +56,20 @@ L_Today:
if ($GAME_STORYLINE < 5)
.@btime+=$MK_TEMPVAR;
+ // TODO: If (@lbscore > 100 && $GAME_STORYLINE > 3 && !holder) goto L_Perma;
+
rentitem Lightbringer, (.@btime*(@lbscore-60));
dispbottom l("This live sword drafts itself to your hand. You can wield it for a while.");
disablenpc .name$;
.busy=gettimetick(2)+(.@btime*(@lbscore-60))*3/2;
end;
+function notAvailable {
+ npctalkonce l("It still isn't time to awake the King Of Holy Swords, Light Bringer.");
+ end;
+ return;
+}
+
OnInit:
.sex = G_OTHER;
.distance = 2;
@@ -77,8 +85,8 @@ OnInit:
// We should jump straight to loop (it runs every 5 minutes)
OnTimer300000:
.users=getusers(1);
- // If $LIGHTBRINGER_OWNER$ is set, we die here
- if ($LIGHTBRINGER_OWNER$ != "")
+ // If $LIGHT_HOLDER$ is set, we die here
+ if ($LIGHT_HOLDER$ != "")
end;
// Proccess busy time