diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-15 22:09:02 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-15 22:09:02 -0200 |
commit | a37171a9f46a5417f06d47e98acebde0d504d4e2 (patch) | |
tree | eaf5dd4d0aed7be0349e0f92db8d5c65d2aa971f /npc/019-4-1 | |
parent | fdc734cc108cfe2612026ca9a284421a4183a274 (diff) | |
download | serverdata-a37171a9f46a5417f06d47e98acebde0d504d4e2.tar.gz serverdata-a37171a9f46a5417f06d47e98acebde0d504d4e2.tar.bz2 serverdata-a37171a9f46a5417f06d47e98acebde0d504d4e2.tar.xz serverdata-a37171a9f46a5417f06d47e98acebde0d504d4e2.zip |
Slay bugs
Diffstat (limited to 'npc/019-4-1')
-rw-r--r-- | npc/019-4-1/chief.txt | 12 | ||||
-rw-r--r-- | npc/019-4-1/golbarez.txt | 1 |
2 files changed, 7 insertions, 6 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt index 2e435260f..3b6125d89 100644 --- a/npc/019-4-1/chief.txt +++ b/npc/019-4-1/chief.txt @@ -43,14 +43,14 @@ } // Last year - if (getq3(SQuest_Christmas) == gettime(GETTIME_YEAR)-1) + if (getq(SQuest_Christmas) == gettime(GETTIME_YEAR)-1) goto L_Reward; // Not on season if ($EVENT$ != "Christmas") goto L_OutOfSeason; // Start Event for the first time - if (getq3(SQuest_Christmas) < gettime(GETTIME_YEAR)) - setq SQuest_Christmas, 1, 0, gettime(GETTIME_YEAR); + if (getq(SQuest_Christmas) < gettime(GETTIME_YEAR)) + setq SQuest_Christmas, gettime(GETTIME_YEAR), 0, 0; // Main Loop goto L_Main; @@ -72,7 +72,7 @@ L_Reward: // #4 - #5: Extra xmas gift /* You get Christmas Gift Box, which contain rares */ - .@gifts=min(15, log2(gifts/100)); + .@gifts=min(15, log2($XMAS_GIFTS/100)); if (.@q1 > .@gifts) getitem XmasGift, .@gifts; .@nb = query_sql("SELECT c.name FROM `quest` AS i, `char` AS c WHERE i.quest_id="+SQuest_Christmas+" AND i.char_id=c.char_id ORDER BY i.count2 DESC LIMIT 5", .@name$); @@ -152,10 +152,10 @@ L_Main: mesq l("We only managed to recover @@ stolen @@ thus far...", $XMAS_GIFTS, getitemlink(ClosedChristmasBox)); // Same formula from 2007 event. (max: 3.276.800 boxes delivered, an ABSURD amount) // You need to give at least this many boxes yourself to be eligible for rewards, though. - .@gifts=max(15, log2(gifts/100)); + .@gifts=min(15, log2($XMAS_GIFTS/100)); mesq l("If things keep like this, we will only manage to give @@ gifts to every player...", .@gifts); if (.@q < .@gifts) - mesc l("WARNING: You must give at least @@ boxes more before event ends to be eligible for a reward!", .@q-.@gifts), 1; + mesc l("WARNING: You must give at least @@ boxes more before event ends to be eligible for a reward!", .@gifts-.@q), 1; next; if (.@q) { mesn; diff --git a/npc/019-4-1/golbarez.txt b/npc/019-4-1/golbarez.txt index 91265be06..c64079503 100644 --- a/npc/019-4-1/golbarez.txt +++ b/npc/019-4-1/golbarez.txt @@ -5,6 +5,7 @@ // Description: // Christmas quest. ported from 2010 and adapted for TMW2:ML. // Original Name: Golbenez +// Year, Gifts, GP 019-4-1,30,45,0 script Golbarez NPC_LOF_RICH,{ if ($EVENT$ != "Christmas") |