From c447528402f903a5ca3e8eec0ad36b52815b992c Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 15 Dec 2018 18:00:20 -0200 Subject: log2 function, golbarez rewards, main quest restriction, gift count --- npc/019-4-1/chief.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'npc/019-4-1/chief.txt') diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt index 059d67461..43fc53fbe 100644 --- a/npc/019-4-1/chief.txt +++ b/npc/019-4-1/chief.txt @@ -48,6 +48,8 @@ L_Reward: // TODO /* Handle Golbarez Quest Rewards */ + /* Mostly Coins, some Merc Boxes, EXP/JExp */ + /* Gift the best people at this quest, too */ getexp .@q3/4, .@q3/1000; .@coins=.@q3/10000; if (.@coins) @@ -97,9 +99,15 @@ L_Main: .@q=getq2(SQuest_Christmas); mesn; mesq l("The stolen empty boxes!! Christmas is RUINED!!!"); + // How did you even reach here in first place? + if (BaseLevel < 20) { + close; + } next; mesn; mesq l("We only managed to recover @@ thus far...", $XMAS_GIFTS); + // Same formula from 2007 event + .@gifts=max(15, log2(gifts/100)); close; OnInit: -- cgit v1.2.3-60-g2f50