diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-10-23 21:44:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-10-23 21:44:22 -0300 |
commit | a7c45a192268da2601cef47a4cdba987ae2327ca (patch) | |
tree | c5fb5b97db109fe7106496dd96498c475881046b /npc/001-5 | |
download | serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.gz serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.bz2 serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.tar.xz serverdata-a7c45a192268da2601cef47a4cdba987ae2327ca.zip |
Initial commit (Moubootaur Legends fork)
Diffstat (limited to 'npc/001-5')
-rw-r--r-- | npc/001-5/_import.txt | 5 | ||||
-rw-r--r-- | npc/001-5/_mobs.txt | 8 | ||||
-rw-r--r-- | npc/001-5/_warps.txt | 5 | ||||
-rw-r--r-- | npc/001-5/worker.txt | 88 |
4 files changed, 106 insertions, 0 deletions
diff --git a/npc/001-5/_import.txt b/npc/001-5/_import.txt new file mode 100644 index 0000000..5c94ec5 --- /dev/null +++ b/npc/001-5/_import.txt @@ -0,0 +1,5 @@ +// Map 001-5: Contributor's Cave +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/001-5/_mobs.txt", +"npc/001-5/_warps.txt", +"npc/001-5/worker.txt", diff --git a/npc/001-5/_mobs.txt b/npc/001-5/_mobs.txt new file mode 100644 index 0000000..6a6fd7f --- /dev/null +++ b/npc/001-5/_mobs.txt @@ -0,0 +1,8 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 001-5: Contributor's Cave mobs +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 001-5: Contributor's Cave mobs +001-5,49,49,29,29 monster Blub 1008,2,35000,60000 +001-5,53,50,25,29 monster Snake 1122,1,35000,120000 +001-5,54,51,25,29 monster Night Scorpion 1077,1,35000,150000 +001-5,51,49,29,29 monster Stray Little Blub 1007,3,35000,180000 diff --git a/npc/001-5/_warps.txt b/npc/001-5/_warps.txt new file mode 100644 index 0000000..5d41810 --- /dev/null +++ b/npc/001-5/_warps.txt @@ -0,0 +1,5 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 001-5: Contributor's Cave warps +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 001-5: Contributor's Cave warps +001-5,22,80,0 warp #001-5_22_80 0,0,000-1,22,22 diff --git a/npc/001-5/worker.txt b/npc/001-5/worker.txt new file mode 100644 index 0000000..8d21b08 --- /dev/null +++ b/npc/001-5/worker.txt @@ -0,0 +1,88 @@ +// TMW2 Script +// Author: Jesusalva +// Workers from Worker Day. + +001-5,23,73,0 script Soren NPC_CONSTR_WORKER,{ + mesn; + mesq l("You can get @@ anywhere, although here is a little easier to get.", getitemlink(Pearl)); + next; + mesn; + mesq l("You can trade them for quite nice items with my friend over there."); + close; +} + +001-5,75,69,0 script Simon NPC_CONSTR_WORKER,{ + function alreadyFinished; + .@year=getq(SQuest_WorkerDay); + .@day=getq3(SQuest_WorkerDay); + if (.@year != gettime(GETTIME_YEAR)-2000 || + .@day != gettime(GETTIME_DAYOFMONTH)) + setq SQuest_WorkerDay, + gettime(GETTIME_YEAR)-2000, 0, gettime(GETTIME_DAYOFMONTH); + + // Main Loop + do + { + .@attempts=getq2(SQuest_WorkerDay); + if (.@attempts > BaseLevel/10) + alreadyFinished(); + + mesn; + mesq l("Hey dude. During this event you can trade one @@ for more... useful items.", getitemlink(.Item)); + mesc l("Attempts for today: %d/%d", .@attempts, BaseLevel/10); + if (countitem(.Item) == 0) + close; + next; + select( + l("12x Strange Coins"), + l("2x Snake Egg"), + l("2x Bronze Gift"), + l("1600 GP"), + rif(countitem(.Item) >= 2, l("Trade 2 %s for a Silver Gift + a Bronze Gift", getitemname(.Item))), + l("Nothing right now.") + ); + switch (@menu) { + case 1: + delitem .Item, 1; + getitem StrangeCoin, 12; + setq2 SQuest_WorkerDay, .@attempts+1; + break; + case 2: + delitem .Item, 1; + getitem SnakeEgg, 2; + setq2 SQuest_WorkerDay, .@attempts+1; + break; + case 3: + delitem .Item, 1; + getitem BronzeGift, 2; + setq2 SQuest_WorkerDay, .@attempts+1; + break; + case 4: + delitem .Item, 1; + Zeny=Zeny+1600; + setq2 SQuest_WorkerDay, .@attempts+1; + break; + case 5: + delitem .Item, 2; + getitem SilverGift, 1; + getitem BronzeGift, 1; + setq2 SQuest_WorkerDay, .@attempts+1; + break; + + } + + } while (@menu < 6); + close; + +function alreadyFinished { + mesc l("I already got enough %s, thank you.", getitemlink(.Item)), 1; + close; +} + +OnInit: + .Item=Pearl; + .distance=4; + end; +} + + |