summaryrefslogtreecommitdiff
path: root/npc/functions/event.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-11-04 20:57:32 -0300
committerJesusaves <cpntb1@ymail.com>2021-11-04 20:57:32 -0300
commit1e3f71f272aaf512c1435e6a551220eca932f822 (patch)
treed2abf9ae57fc79b1a176a0c1b6279895d1bf9c82 /npc/functions/event.txt
parent64ff7d857bbcff84a6d755478b4c8b6d63790541 (diff)
downloadserverdata-1e3f71f272aaf512c1435e6a551220eca932f822.tar.gz
serverdata-1e3f71f272aaf512c1435e6a551220eca932f822.tar.bz2
serverdata-1e3f71f272aaf512c1435e6a551220eca932f822.tar.xz
serverdata-1e3f71f272aaf512c1435e6a551220eca932f822.zip
Thanksgiving now uses the average between your level and top 3 levels.
If you are a top 3, you'll get less EXP/JEXP/GP/MP/RES from Thanksgiving. Otherwise, you'll get more. This also allows better global scaling.
Diffstat (limited to 'npc/functions/event.txt')
-rw-r--r--npc/functions/event.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/npc/functions/event.txt b/npc/functions/event.txt
index 6d73389d4..33bc9cc61 100644
--- a/npc/functions/event.txt
+++ b/npc/functions/event.txt
@@ -474,31 +474,32 @@ function script sThanksgiving {
}
// Switch the reward
+ .@blv = BaseLevel + TOP3AVERAGELVL() / 2;
switch (.@luck) {
case 0: // EXP
- .@p=BaseLevel*#THANKS_STREAK;
+ .@p=.@blv*#THANKS_STREAK;
.@p*=3;
getexp .@p, 0;
mes l("You got %d EXP!", .@p);
break;
case 1: // JEXP
- .@p=BaseLevel*#THANKS_STREAK;
+ .@p=.@blv*#THANKS_STREAK;
.@p=.@p*15/10;
getexp 0, .@p;
mes l("You got %d JEXP!", .@p);
break;
case 2: // GP
- .@p=BaseLevel*#THANKS_STREAK;
+ .@p=.@blv*#THANKS_STREAK;
Zeny+=.@p;
mes l("You got %d GP!", .@p);
break;
case 3: // MOBPT
- .@p=BaseLevel*#THANKS_STREAK;
+ .@p=.@blv*#THANKS_STREAK;
Mobpt+=.@p;
mes l("You got %d Monster Points!", .@p);
break;
case 4: // RES
- .@p=BaseLevel*#THANKS_STREAK;
+ .@p=.@blv*#THANKS_STREAK;
.@p*=3;
REAL_ESTATE_CREDITS+=.@p;
mes l("You got %d Real Estate Credits!", .@p);