diff options
author | +seeds <abby.hulka@gmail.com> | 2023-03-05 00:18:54 +0000 |
---|---|---|
committer | Jesusalva Jesusalva <jesusalva@themanaworld.org> | 2023-03-05 00:48:58 +0000 |
commit | ec95a5c75d0ce36ae0cfec18726d346018c04cbc (patch) | |
tree | 5f71528bfdb5a8859040f6dee43ee0466693acfb /npc/006-2-1/glim.txt | |
parent | f123b04e54885559000b799e73373e5b99affc71 (diff) | |
download | serverdata-ec95a5c75d0ce36ae0cfec18726d346018c04cbc.tar.gz serverdata-ec95a5c75d0ce36ae0cfec18726d346018c04cbc.tar.bz2 serverdata-ec95a5c75d0ce36ae0cfec18726d346018c04cbc.tar.xz serverdata-ec95a5c75d0ce36ae0cfec18726d346018c04cbc.zip |
Merge branch 'PiouIsles_quests' into 'master'cherry-pick-181de88c
Update db/constants.conf
See merge request ml/serverdata!94
(cherry picked from commit 181de88c329902299082dfb61f8a8e644b8e89bf)
88800735 Update db/constants.conf
c32b5649 Upload New File
a2f38cb8 Upload New File
2caf4ba1 Upload New File
f407a2a0 Upload New File
2081d905 Upload New File
21606ee2 Upload New File
7073e232 Upload New File
1522ab30 Replace quest_db.conf
b356ff2c Replace item_db.conf
Diffstat (limited to 'npc/006-2-1/glim.txt')
-rw-r--r-- | npc/006-2-1/glim.txt | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/npc/006-2-1/glim.txt b/npc/006-2-1/glim.txt new file mode 100644 index 000000000..07e644797 --- /dev/null +++ b/npc/006-2-1/glim.txt @@ -0,0 +1,69 @@ +// TMW2 scripts. +// Authors: +// Jesusalva +// +seeds +// Description: +// Daily quest to exchange Tolchi Arrow Boxes for a small amount of gp and exp +// Variables: +// $GLIM_ST +// How many Tolchi Arrow Boxes were given +// q1 +// Controls your own progress helping Glim - Items today +// q2 +// Controls your own progress helping Glim - Your timer + +006-2-1,82,28,0 script Glim NPC_PIOU_VIKING,{ + +L_Loop: + .@q1=getq(LilitQuest_Glim); + .@q2=getq2(LilitQuest_Glim); + mesn; + mesq l("Argh, I've run out o' arrows! Say, ye don't have any I could use, do ye?.", $GLIM_ST); + next; + if (.@q2 < $@GLIM_QTIMER) { + setq1 Lilitquest_Glim, 0; + setq2 Lilitquest_Glim, $@GLIM_QTIMER; + } + + // Daily limit reached + .@q1=getq1(Lilitquest_Glim); + if (.@q1 >= (BaseLevel-17)/3) goto L_Timer; + select + rif(countitem(TolchiAmmoBox) >= 1, l("Give Glim a @@"), getitemlink(TolchiAmmoBox)), + l("Maybe later."); + mes ""; + + switch (@menu) { + case 1: + delitem TolchiAmmoBox, 1; + getexp 64, 0; + Zeny=Zeny+50; + break; + case 2: + close; + break; + } + $GLIM_ST=$GLIM_ST+1; + setq1 Lilitquest_Glim, .@q1+1; + goto L_Loop; + +L_Timer: + if (BaseLevel < 10) + mesq l("Wait a minute! I ain't trustin' a weakling like ye fer good arrows!"); + mesn; + mesq l("Come back when ye've grown sum muscles."); + mesn; + mesq l("I'm all stocked up now, thanks to ye. Come back in @@ and ye might be able to help me again.", FuzzyTime($@GLIM_TIMER+(60*60*24),2,2)); + close; + +OnInit: + .sex=G_OTHER; + .distance=5; + // No end; on purpose + +OnHour00: + $@GLIM_QTIMER=gettimeparam(GETTIME_DAYOFMONTH); + $@GLIM_QTIMER=gettimetick(2); + end; + +} |