From c1ec608284c445d6e2aa9bac1c3df8fbe6f89695 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 24 Feb 2021 22:10:17 -0300 Subject: Possibility to obtain the Lightbringer - Permanently --- npc/functions/gmbot.txt | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) (limited to 'npc/functions/gmbot.txt') diff --git a/npc/functions/gmbot.txt b/npc/functions/gmbot.txt index 4f65857af..839584fdf 100644 --- a/npc/functions/gmbot.txt +++ b/npc/functions/gmbot.txt @@ -56,7 +56,8 @@ boss,45,42,0 script Lightbringer NPC_LIGHTBRINGER,{ if ($GAME_STORYLINE < 5) .@btime+=$MK_TEMPVAR; - // TODO: If (@lbscore > 100 && $GAME_STORYLINE > 3 && !holder) goto L_Perma; + if (@lbscore > 100 && $GAME_STORYLINE > 3 && $LIGHT_HOLDER$ == "" && strcharinfo(0) == $MOST_HEROIC$ && !islegendary()) + 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."); @@ -70,6 +71,38 @@ function notAvailable { return; } +L_Perma: + mesn l("Lightbringer"), 2; + mesc l("%s, you are pathetically weak.", strcharinfo(0)), 2; + next; + mesn l("Lightbringer"), 2; + mesc l("However, the fate of this world is at your hands. I shall not allow the Moubootaur to cause havoc."), 2; + next; + mesn l("Lightbringer"), 2; + mesc l("Therefore, just for a short while, I offer to be your blade."), 2; + next; + mesn l("Lightbringer"), 2; + mesc l("What do you say?"), 2; + select + l("It'll be my pleasure."), + l("I am a noob and don't need you."); + + mes ""; + if (islegendary()) close; + if ($LIGHT_HOLDER$ != "") close; + if (@menu != 1) close; + inventoryplace Lightbringer, 1; + mesn l("The Mana Source"), 2; + 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; + + // Destroy the previous Lightbringer + DelItemFromEveryPlayer(Lightbringer); + getitembound Lightbringer, 1, 1; // Account bound or char bound? (1 or 4) + dispbottom l("You received the @@ from @@.", getitemlink(Lightbringer), l("The Mana Source")); + $LIGHT_HOLDER$=strcharinfo(0); + close; + OnInit: .sex = G_OTHER; .distance = 2; -- cgit v1.2.3-60-g2f50