summaryrefslogtreecommitdiff
path: root/npc/functions/gmbot.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/gmbot.txt')
-rw-r--r--npc/functions/gmbot.txt8
1 files changed, 7 insertions, 1 deletions
diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt
index 5d11e5d1f..0c60fe847 100644
--- a/npc/functions/gmbot.txt
+++ b/npc/functions/gmbot.txt
@@ -60,6 +60,7 @@ boss,45,42,0 script Lightbringer NPC_LIGHTBRINGER,{
goto L_Perma;
rentitem Lightbringer, (.@btime*(@lbscore-60));
+ LB_WIELD += (.@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))+300;
@@ -96,6 +97,8 @@ L_Perma:
mesc l("%s, you did your best to protect this world inhabitants. It is my wish that you continue protecting this world. Therefore, I bestow upon you, the legendary %s. Please use its powers to protect your friend and the world peace!", strcharinfo(0), getitemlink(Lightbringer)), 2;
mesc l("WARNING: The %s is a %s. Besides being insanely powerful, no duplicate of them exist in the world. They can be tweaked freely and can hold multiple cards as well, and scale according to your level. Use its powers wisely. However, beware: This weapon cannot be traded except with \"@grantpower\" command, and if you abandon the world, the weapon will abandon you as well!", getitemlink(Lightbringer), b(l("legendary weapon"))), 1;
+ // Clean up global competition tracker
+ DelChrRegFromEveryPlayer("LB_WIELD");
// Destroy the previous Lightbringer
DelItemFromEveryPlayer(Lightbringer);
getitembound Lightbringer, 1, 1; // Account bound or char bound? (1 or 4)
@@ -260,7 +263,10 @@ function matrixlb {
if ($GAME_STORYLINE >=5)
.@pts+=1; // Should never, ever, happen
- // Max points: 101→104→114→117→124
+ // Interest (every 30 minutes rented is a point, up to 3 hours)
+ .@pts += limit(0, LB_WIELD / 1800, 6);
+
+ // Max points: 101→104→114→117→124→130
return .@pts;
}