diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-15 04:53:33 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-15 04:53:33 -0200 |
commit | 1fc15127923dd14005a2b7013555155dfcca90f6 (patch) | |
tree | b6c1069e447c8d7e59a5ce88eaec47119a69bd0c /npc/019-4-1/chief.txt | |
parent | 3d9e3555b5ea1348bbd49d6b530f44723fea1e9e (diff) | |
download | serverdata-1fc15127923dd14005a2b7013555155dfcca90f6.tar.gz serverdata-1fc15127923dd14005a2b7013555155dfcca90f6.tar.bz2 serverdata-1fc15127923dd14005a2b7013555155dfcca90f6.tar.xz serverdata-1fc15127923dd14005a2b7013555155dfcca90f6.zip |
Golbanez Christmas Quest is complete.
Diffstat (limited to 'npc/019-4-1/chief.txt')
-rw-r--r-- | npc/019-4-1/chief.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/npc/019-4-1/chief.txt b/npc/019-4-1/chief.txt index e826e4ebb..bc6dba434 100644 --- a/npc/019-4-1/chief.txt +++ b/npc/019-4-1/chief.txt @@ -10,10 +10,47 @@ // // Rewards: Santa Hat, Gnome Hat, Santa Bearded Hat, Ugly Christmas Sweater, // Turtle Neck Sweater, Santa Globe, Snowman Globe, Red Stocking. +// +// SQuest_Christmas +// Current Year +// Boxes Delivered +// Money Sponsored +// +// $XMAS_GIFTS +// World-wide collected gifts count. 019-4-1,56,33,0 script Christmas Chief NPC_GNOME_A,{ + // Last year + if (getq3(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); + // Main Loop + goto L_Main; + +L_OutOfSeason: + mesn; + mesq l("This workshop doesn't gets too many tasks from Santa outside the Christmas..."); + close; + +// TODO Reward +L_Reward: + mesn; + mesc l("Hey hey, how can you finish a quest which never started in first place?"), 1; + setq SQuest_Christmas, 0, 0, 0; + close; + +L_Main: + .@q=getq2(SQuest_Christmas); mesn; mesq l("The stolen empty boxes!! Christmas is RUINED!!!"); + next; + mesn; + mesq l("We only managed to recover @@ thus far...", $XMAS_GIFTS); close; OnInit: |