diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-12-03 10:27:12 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-12-03 10:27:12 -0300 |
commit | 3a4148ca90d9c236cec6081e10bdb22ce3968a30 (patch) | |
tree | 3af55d082774e219e1f109f79786385878c0afef /npc/functions/gmbot.txt | |
parent | d41597b05cd9c2a91272922043b8906257ad629c (diff) | |
download | serverdata-3a4148ca90d9c236cec6081e10bdb22ce3968a30.tar.gz serverdata-3a4148ca90d9c236cec6081e10bdb22ce3968a30.tar.bz2 serverdata-3a4148ca90d9c236cec6081e10bdb22ce3968a30.tar.xz serverdata-3a4148ca90d9c236cec6081e10bdb22ce3968a30.zip |
Some minor adjustments I've been meaning to do for weeks.
Diffstat (limited to 'npc/functions/gmbot.txt')
-rw-r--r-- | npc/functions/gmbot.txt | 8 |
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; } |