summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/clientversion.txt7
-rw-r--r--npc/functions/mobpoint.txt5
-rw-r--r--npc/functions/scoreboards.txt5
-rw-r--r--npc/functions/util.txt6
4 files changed, 22 insertions, 1 deletions
diff --git a/npc/functions/clientversion.txt b/npc/functions/clientversion.txt
index 0a33f2a7b..0272aa752 100644
--- a/npc/functions/clientversion.txt
+++ b/npc/functions/clientversion.txt
@@ -825,6 +825,13 @@ function script clientupdater {
dispbottom l("Crafting rules changed! Your crafting skill was lowered to Level 5, talk to Craftmaster to recover it!");
}
+ // Rebirth Heroics
+ if (strcharinfo(0) == "Crazyfefe") {
+ getitem SupremeGift, 1;
+ channelmes("#world", $REBIRTH_WINNER$+" is the first player to REBIRTH!! They are so OP! %%N");
+ announce "All hail ##B"+$REBIRTH_WINNER$+"##b, first player to REBIRTH and become OP!", bc_all|bc_npc;
+ }
+
// Mass Provoke replacement
if (getskilllv(EVOL_AREA_PROVOKE)) {
getitembound ScholarshipBadge, getskilllv(EVOL_AREA_PROVOKE), 4;
diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt
index 7b29ca155..d0fe5c10b 100644
--- a/npc/functions/mobpoint.txt
+++ b/npc/functions/mobpoint.txt
@@ -54,7 +54,10 @@ OnNPCKillEvent:
$MONSTERS_KILLED+=1;
if (killedrid == MonsterKing) {
announce "An illusionary monster king was killed.", bc_all | bc_pc;
- getexp min(641500, BaseLevel**3), 0;
+ if ($REBIRTH_WINNER$ == "" && TOP3AVERAGELVL() < 100)
+ getexp min(641500, BaseLevel**3), 0;
+ else
+ Mobpt+=min(1000, BaseLevel*11);
}
// Remove undue Job exp
diff --git a/npc/functions/scoreboards.txt b/npc/functions/scoreboards.txt
index 462bfcfcf..fb5f76130 100644
--- a/npc/functions/scoreboards.txt
+++ b/npc/functions/scoreboards.txt
@@ -523,6 +523,11 @@ function script HallOf2020 {
mesc l("This schedule is subject to change without prior notice."), 1;
mesc l("Changes include but are not limited to festive events and dates."), 1;
next;
+ if ($REBIRTH_WINNER$ != "") {
+ mes l(".:: FIRST PLAYER TO REBIRTH ::.");
+ mes $REBIRTH_WINNER$;
+ mes "";
+ }
mes l(".:: TMW-2 Anniversary ::.");
//mesc l("Scheduled: January 13rd");
mes l("No victor appliable.");
diff --git a/npc/functions/util.txt b/npc/functions/util.txt
index 75f1faf64..45aa5fb7a 100644
--- a/npc/functions/util.txt
+++ b/npc/functions/util.txt
@@ -989,6 +989,12 @@ function script MapToLoc {
return .@locs$[.@lx];
}
+// Returns TOP 3 Average Level
+// TOP3AVERAGELVL( - )
+function script TOP3AVERAGELVL {
+ return ($@hoblvl_value[0]+$@hoblvl_value[1]+$@hoblvl_value[2])/3;
+}
+
// Grants newcomers exp boost. Returns bonus %
// NewcomerEXPDROPUP( - )
function script NewcomerEXPDROPUP {