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/022-1 | |
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/022-1')
-rw-r--r-- | npc/022-1/_import.txt | 6 | ||||
-rw-r--r-- | npc/022-1/_mobs.txt | 9 | ||||
-rw-r--r-- | npc/022-1/_warps.txt | 9 | ||||
-rw-r--r-- | npc/022-1/gift_collector.txt | 92 | ||||
-rw-r--r-- | npc/022-1/sign.txt | 21 |
5 files changed, 137 insertions, 0 deletions
diff --git a/npc/022-1/_import.txt b/npc/022-1/_import.txt new file mode 100644 index 0000000..4f2aea2 --- /dev/null +++ b/npc/022-1/_import.txt @@ -0,0 +1,6 @@ +// Map 022-1: North Icelands +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/022-1/_mobs.txt", +"npc/022-1/_warps.txt", +"npc/022-1/gift_collector.txt", +"npc/022-1/sign.txt", diff --git a/npc/022-1/_mobs.txt b/npc/022-1/_mobs.txt new file mode 100644 index 0000000..1e92d29 --- /dev/null +++ b/npc/022-1/_mobs.txt @@ -0,0 +1,9 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 022-1: North Icelands mobs +022-1,30,73,10,34 monster Rudolph Slime 1086,8,0,0 +022-1,29,72,10,34 monster Noel Slime 1096,3,0,0 +022-1,92,58,9,6 monster Blue Slime 1087,8,0,0 +022-1,65,53,23,14 monster Noel Slime 1096,3,0,0 +022-1,69,75,13,6 monster Rudolph Slime 1086,8,0,0 +022-1,77,104,31,15 monster Rudolph Slime 1086,8,0,0 +022-1,78,105,31,15 monster Noel Slime 1096,3,0,0 diff --git a/npc/022-1/_warps.txt b/npc/022-1/_warps.txt new file mode 100644 index 0000000..fb1ac2e --- /dev/null +++ b/npc/022-1/_warps.txt @@ -0,0 +1,9 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 022-1: North Icelands warps +022-1,80,65,0 warp #022-1_80_65 0,0,023-1,57,42 +022-1,73,62,0 warp #022-1_73_62 0,0,023-1,47,58 +022-1,58,52,0 warp #022-1_58_52 0,0,023-1,37,27 +022-1,70,81,0 warp #022-1_70_81 0,0,023-1,52,61 +022-1,68,90,0 warp #022-1_68_90 0,0,023-1,45,69 +022-1,49,55,0 warp #022-1_49_55 0,0,023-1,26,35 +022-1,70,112,0 warp #022-1_70_112 1,0,021-1,136,30 diff --git a/npc/022-1/gift_collector.txt b/npc/022-1/gift_collector.txt new file mode 100644 index 0000000..a2fc28b --- /dev/null +++ b/npc/022-1/gift_collector.txt @@ -0,0 +1,92 @@ +// TMW2/LoF scripts. +// Authors: +// TMW-LoF Team +// Jesusalva +// Description: +// Part Of Christmas Events +// SQuest_XmasCollector +// Status, Delivered Gifts, Current Year +// Status: +// 0 - Quest is unknown +// 1 - Quest is known +// 2 - Rewards Collected + +022-1,65,53,0 script Gift Fanatic NPC_GNOME_C,{ + // Start Event for the first time + if (gettime(GETTIME_MONTH) != JANUARY && getq3(SQuest_XmasCollector) < gettime(GETTIME_YEAR)) { + setq SQuest_XmasCollector, 1, 0, gettime(GETTIME_YEAR); + } + if (gettime(GETTIME_MONTH) == JANUARY && getq3(SQuest_XmasCollector) != gettime(GETTIME_YEAR)-1) { + setq SQuest_XmasCollector, 1, 0, gettime(GETTIME_YEAR)-1; + } + // Main Loop + if ($EVENT$ == "Christmas") + goto L_Main; + + // Last year + if (getq3(SQuest_XmasCollector) == gettime(GETTIME_YEAR)-1) + goto L_Reward; + + // Not on season + goto L_OutOfSeason; + +L_OutOfSeason: + mesn; + mesq l("Hey, collect lots of @@ and give them to me on Christmas! Not now. On Christmas!", getitemlink(PresentBox)); + close; + +// The reward is actually just an extra bonus, there is nothing WOW to see here... +// Unless you reach the milestones: 200, 400, 800, 1600, 3200, 6400, 12800... gifts +// The maximum is 10 christmas boxes, or 102.400 gifts. +// There's a floor, though: Your Base Level. That determines the minimum amount +// before it starts counting. So in reality, you need 200~300 gifts to get prize. +L_Reward: + inventoryplace XmasGift, 10; + .@q=getq2(SQuest_XmasCollector); + .@q=max(1, .@q-BaseLevel); + .@gifts=min(10, log2(.@q/200))+1; + mesn; + mesq l("Hey, huge THANKS for the help! I love gifts! Here's your due reward!"); + mesc l("Got @@ EXP, @@ JExp and @@ GP for helping out.", .@q*7, .@q, .@q*5); + getexp .@q*7, .@q; + Zeny=Zeny+(.@q*5); + getitem XmasGift, .@gifts; + setq SQuest_XmasCollector, 2, 0, 0; + close; + +L_Main: + .@q=getq2(SQuest_XmasCollector); + mesn; + mesq l("I want @@! I want @@!!", getitemlink(PresentBox), getitemlink(PresentBox)); + next; + .@price=(getiteminfo(PresentBox, ITEMINFO_SELLPRICE)+2); + mesn; + mesq l("I am willing to pay @@ GP for each you bring me! Do you want to give me ALL your @@?!", .@price, getitemlink(PresentBox)); + next; + select + rif(countitem(PresentBox), l("Yes, of course!")), + l("Not now..."); + mes ""; + if (@menu == 1) { + .@qnt=countitem(PresentBox); + .@q+=.@qnt; + delitem PresentBox, .@qnt; + Zeny=Zeny+.@price*.@qnt; + getexp .@qnt*.@price, .@qnt; + setq2 SQuest_XmasCollector, .@q; + mesn; + mesc l("You just delivered %d %s to %s.", + .@qnt, getitemlink(PresentBox), .name$); + mesq l("Many, many thanks! Thus far, you delivered me @@ gift boxes!", .@q); + next; + } + mesn; + mesq l("Come back and give me more gifts!"); + close; + +OnInit: + .sex=G_OTHER; + .distance=5; + end; +} + diff --git a/npc/022-1/sign.txt b/npc/022-1/sign.txt new file mode 100644 index 0000000..ced2019 --- /dev/null +++ b/npc/022-1/sign.txt @@ -0,0 +1,21 @@ +// TMW2 Script. +// Author: +// Jesusalva +// Description: +// Important Sign + +022-1,38,44,0 script Sign#02213844 NPC_SWORDS_SIGN,{ + mesc b(l(".:: PVP King Imperial Arena ::.")); + mesc l("The Arena is currently closed for maintenance."); + mesc l("It's advised to collect PVP equipment."); + mesc l("If you think this should be a priority, please ask Jesusalva."), 1; + tutmes l("If you kill an opponent stronger than you, you will gain honor points. But if the oponent is 15 levels weaker than you, it will be NEGATIVE!"), l("About Scoreboards and Honor Points"); + tutmes l("You will also LOSE honor if the opponent is below level 30. If you are a bandit (negative honor), all fights versus you will be honorable."), l("About Scoreboards and Honor Points"); + tutmes l("If you kill the same person within 30 minutes, honor will not fluctuate. The whole honor system is very experimental."), l("About Scoreboards and Honor Points"); + close; + +OnInit: + .sex = G_OTHER; + .distance = 3; + end; +} |