summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-12-15 20:51:52 -0300
committerJesusaves <cpntb1@ymail.com>2023-12-15 20:51:52 -0300
commit98a4197cf0311fe85b85b23c7734638abddcc88f (patch)
tree7ebc438ea1b58a04bc663b1fdc4639540b172315 /npc/functions
parent1d4ea8cb18f1f1b0f4371ddc47a8a08a00073ec0 (diff)
downloadserverdata-98a4197cf0311fe85b85b23c7734638abddcc88f.tar.gz
serverdata-98a4197cf0311fe85b85b23c7734638abddcc88f.tar.bz2
serverdata-98a4197cf0311fe85b85b23c7734638abddcc88f.tar.xz
serverdata-98a4197cf0311fe85b85b23c7734638abddcc88f.zip
Lightbringer Selection
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/clientversion.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 2e3ed0a4c..3058ce524 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -1140,6 +1140,27 @@ function script clientupdater {
getitem StrangeCoin, 250;
}
}
+ // Lightbringer Election Server Freeze
+ // sex 15 dez 2023 20:30:00 -03
+ if ($UPDATE < 1702683000) {
+ kick(getcharid(3), 6);
+ end;
+ }
+ if (UPDATE < 1702683000) {
+ UPDATE=1702683000;
+ if (strcharinfo(0) == $LIGHT_HOLDER$) {
+ .@dg=1;
+ showavatar NPC_LIGHTBRINGER;
+ 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 (ALWAYS)
+ 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"));
+ }
+ }
// :// End of Regular Update System
////////////////////////////////////