diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-11-04 20:57:32 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-11-04 20:57:32 -0300 |
commit | 1e3f71f272aaf512c1435e6a551220eca932f822 (patch) | |
tree | d2abf9ae57fc79b1a176a0c1b6279895d1bf9c82 /npc | |
parent | 64ff7d857bbcff84a6d755478b4c8b6d63790541 (diff) | |
download | serverdata-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')
-rw-r--r-- | npc/001-1/eventmaster.txt | 1 | ||||
-rw-r--r-- | npc/functions/event.txt | 11 |
2 files changed, 7 insertions, 5 deletions
diff --git a/npc/001-1/eventmaster.txt b/npc/001-1/eventmaster.txt index dfa17978c..92719d77f 100644 --- a/npc/001-1/eventmaster.txt +++ b/npc/001-1/eventmaster.txt @@ -726,6 +726,7 @@ OnAutoSched: freeloop(true); for (.@i = 0; .@i < ($@AEROS_AUTOSPAWN * 5); .@i++) { .@r=rand2(5, 12); + // FIXME: Use TOP3AVERAGELVL() instead of a full list .@m=any(Piou, Piousse, Ratto, LittleBlub, Croc, PlushroomField, Tipiu, CaveMaggot, Bat, Scorpion, Duck, Maggot, RedScorpion, ManaBug, ManaGhost, HouseMaggot, RedSlime, WhiteSlime, 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); |