From d712c7845887df4801f55b24404698ae3f1b99c3 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 2 Dec 2008 08:09:54 +0000 Subject: Update 004-1 --- npc/004-1_Beach/_import.txt | 1 - npc/004-1_Beach/_mobs.txt | 28 ++++++++++++++++++++++++++++ npc/004-1_Beach/monsters.txt | 26 -------------------------- npc/021-1_Tulimshar/_import.txt | 2 +- npc/021-1_Tulimshar/_warps.txt | 3 +++ npc/022-1_Beach_Cliffs/_import.txt | 3 +++ npc/022-1_Beach_Cliffs/_mobs.txt | 7 +++++++ npc/022-1_Beach_Cliffs/_warps.txt | 4 ++++ npc/_import.txt | 2 ++ 9 files changed, 48 insertions(+), 28 deletions(-) delete mode 100644 npc/004-1_Beach/monsters.txt create mode 100644 npc/022-1_Beach_Cliffs/_import.txt create mode 100644 npc/022-1_Beach_Cliffs/_mobs.txt create mode 100644 npc/022-1_Beach_Cliffs/_warps.txt (limited to 'npc') diff --git a/npc/004-1_Beach/_import.txt b/npc/004-1_Beach/_import.txt index 0b1dba07..7bd39a8b 100644 --- a/npc/004-1_Beach/_import.txt +++ b/npc/004-1_Beach/_import.txt @@ -1,4 +1,3 @@ map: 004-1.gat npc: npc/004-1_Beach/_mobs.txt npc: npc/004-1_Beach/_warps.txt -npc: npc/004-1_Beach/monsters.txt diff --git a/npc/004-1_Beach/_mobs.txt b/npc/004-1_Beach/_mobs.txt index bc8e68a9..ba1436e1 100644 --- a/npc/004-1_Beach/_mobs.txt +++ b/npc/004-1_Beach/_mobs.txt @@ -1,7 +1,35 @@ // 004-1 Beach mobs +004-1.gat,39,52,5,19 monster Sea slime 1033,5,0,0,Mob004-1::On1033 +004-1.gat,33,88,5,14 monster Sea Slime 1033,5,0,0,Mob004-1::On1033 +004-1.gat,27,107,8,6 monster Sea slime 1033,4,0,0,Mob004-1::On1033 +004-1.gat,31,99,5,7 monster Sea slime 1033,3,0,0,Mob004-1::On1033 +004-1.gat,71,103,27,19 monster Giant maggot 1006,5,0,0,Mob004-1::On1006 +004-1.gat,76,68,21,49 monster Red scorpion 1004,13,0,0,Mob004-1::On1004 +004-1.gat,69,23,10,6 monster Giant maggot 1006,2,0,0,Mob004-1::On1006 +004-1.gat,93,27,1,1 monster Black scorpion 1009,1,120000,60000,Mob004-1::On1009 004-1.gat,0,0,0 script Mob004-1 -1,{ +On1004: + set @mobID, 1004; + callfunc "MobPoints"; + break; + +On1006: + set @mobID, 1006; + callfunc "MobPoints"; + break; + +On1009: + set @mobID, 1009; + callfunc "MobPoints"; + break; + +On1033: + set @mobID, 1033; + callfunc "MobPoints"; + break; + end; } diff --git a/npc/004-1_Beach/monsters.txt b/npc/004-1_Beach/monsters.txt deleted file mode 100644 index 8056eead..00000000 --- a/npc/004-1_Beach/monsters.txt +++ /dev/null @@ -1,26 +0,0 @@ -// Map: 004-1 -// This is the Beach west of Tulimshar. -// - -004-1.gat,0,0,0,0 monster SeaSlime 1033,30,0,0,Mob34::OnSeaSlime -004-1.gat,0,0,0,0 monster GiantMaggot 1006,10,0,0,Mob34::OnGiantMaggot -004-1.gat,0,0,0,0 monster RedScorpion 1004,12,0,0,Mob34::OnRedScorpion - -004-1.gat,0,0,0 script Mob34 -1,{ -OnSeaSlime: - set @mobID, 1033; - callfunc "MobPoints"; - break; - -OnGiantMaggot: - set @mobID, 1006; - callfunc "MobPoints"; - break; - -OnRedScorpion: - set @mobID, 1004; - callfunc "MobPoints"; - break; - - end; -} diff --git a/npc/021-1_Tulimshar/_import.txt b/npc/021-1_Tulimshar/_import.txt index 27ebcad7..81e7f2df 100644 --- a/npc/021-1_Tulimshar/_import.txt +++ b/npc/021-1_Tulimshar/_import.txt @@ -1,3 +1,3 @@ map: 021-1.gat -npc: npc/021-1_Tulimshar/_warps.txt npc: npc/021-1_Tulimshar/_mobs.txt +npc: npc/021-1_Tulimshar/_warps.txt diff --git a/npc/021-1_Tulimshar/_warps.txt b/npc/021-1_Tulimshar/_warps.txt index 7e907749..3c771539 100644 --- a/npc/021-1_Tulimshar/_warps.txt +++ b/npc/021-1_Tulimshar/_warps.txt @@ -1,2 +1,5 @@ // 021-1 Tulimshar warps +021-1.gat,44,88 warp ToSandstorm 3,-1,002-1.gat,58,17 +021-1.gat,32,71 warp ToInn -1,-1,001-2.gat,25,34 +021-1.gat,75,41 warp ToHouse -1,-1,001-2.gat,71,72 diff --git a/npc/022-1_Beach_Cliffs/_import.txt b/npc/022-1_Beach_Cliffs/_import.txt new file mode 100644 index 00000000..6dab9d52 --- /dev/null +++ b/npc/022-1_Beach_Cliffs/_import.txt @@ -0,0 +1,3 @@ +map: 022-1.gat +npc: npc/022-1_Beach_Cliffs/_mobs.txt +npc: npc/022-1_Beach_Cliffs/_warps.txt diff --git a/npc/022-1_Beach_Cliffs/_mobs.txt b/npc/022-1_Beach_Cliffs/_mobs.txt new file mode 100644 index 00000000..7dfedcec --- /dev/null +++ b/npc/022-1_Beach_Cliffs/_mobs.txt @@ -0,0 +1,7 @@ +// 022-1 Beach Cliffs mobs + + + +022-1.gat,0,0,0 script Mob022-1 -1,{ + end; +} diff --git a/npc/022-1_Beach_Cliffs/_warps.txt b/npc/022-1_Beach_Cliffs/_warps.txt new file mode 100644 index 00000000..c856a583 --- /dev/null +++ b/npc/022-1_Beach_Cliffs/_warps.txt @@ -0,0 +1,4 @@ +// 022-1 Beach Cliffs warps + +022-1.gat,84,113 warp ToSandstorm 1,-1,002-1.gat,29,15 +022-1.gat,37,111 warp ToBeach 1,-1,003-1.gat,141,21 diff --git a/npc/_import.txt b/npc/_import.txt index df218035..77e9a46b 100644 --- a/npc/_import.txt +++ b/npc/_import.txt @@ -38,3 +38,5 @@ import: npc/020-1/_import.txt import: npc/020-2/_import.txt import: npc/020-3_Ice_cave/_import.txt import: npc/020-4_Ice_cave/_import.txt +import: npc/021-1_Tulimshar/_import.txt +import: npc/022-1_Beach_Cliffs/_import.txt -- cgit v1.2.3-70-g09d2 From b7811901513c0648e91c697c2e8045ce397dd183 Mon Sep 17 00:00:00 2001 From: Fate Date: Thu, 4 Dec 2008 23:43:05 -0700 Subject: Replace grass snakes near demon mines entrance by bats --- npc/018-1_Woodland_mining_camp/_mobs.txt | 2 +- npc/_import.txt | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'npc') diff --git a/npc/018-1_Woodland_mining_camp/_mobs.txt b/npc/018-1_Woodland_mining_camp/_mobs.txt index 7e06eed1..0a7c1c47 100644 --- a/npc/018-1_Woodland_mining_camp/_mobs.txt +++ b/npc/018-1_Woodland_mining_camp/_mobs.txt @@ -22,7 +22,7 @@ 018-1.gat,106,52,15,6 monster Cobalt Plant 1030,1,240000,120000,Mob018-1::On1030 018-1.gat,78,55,37,6 monster Red Slime 1008,7,100000,50000,Mob018-1::On1008 018-1.gat,145,24,10,9 monster Red Slime 1008,3,100000,50000,Mob018-1::On1008 -018-1.gat,68,89,14,17 monster Grass Snake 1034,3,100000,50000,Mob018-1::On1034 +018-1.gat,68,89,14,17 monster Bat 1017,3,100000,50000,Mob018-1::On1017 018-1.gat,160,31,11,18 monster Red Slime 1008,5,100000,50000,Mob018-1::On1008 diff --git a/npc/_import.txt b/npc/_import.txt index 77e9a46b..df218035 100644 --- a/npc/_import.txt +++ b/npc/_import.txt @@ -38,5 +38,3 @@ import: npc/020-1/_import.txt import: npc/020-2/_import.txt import: npc/020-3_Ice_cave/_import.txt import: npc/020-4_Ice_cave/_import.txt -import: npc/021-1_Tulimshar/_import.txt -import: npc/022-1_Beach_Cliffs/_import.txt -- cgit v1.2.3-70-g09d2 From 18e221a38d598450e53a6b1bc311643c6643ef7a Mon Sep 17 00:00:00 2001 From: Fate Date: Thu, 4 Dec 2008 23:51:29 -0700 Subject: Black scorpions near Demon Mines bookshelf respawn more frequently --- npc/013-3_Cave/_mobs.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/013-3_Cave/_mobs.txt b/npc/013-3_Cave/_mobs.txt index c0de99b6..c8ca6c38 100644 --- a/npc/013-3_Cave/_mobs.txt +++ b/npc/013-3_Cave/_mobs.txt @@ -3,7 +3,7 @@ 013-3.gat,28,89,16,52 monster Cave Snake 1021,10,120000,60000,Mob013-3::On1021 013-3.gat,61,22,2,2 monster Fire Skull 1023,3,120000,60000,Mob013-3::On1023 013-3.gat,81,22,2,2 monster Poison Skull 1024,3,120000,60000,Mob013-3::On1024 -013-3.gat,109,31,6,22 monster Black Scorpion 1009,20,80000,40000,Mob013-3::On1009 +013-3.gat,109,31,6,22 monster Black Scorpion 1009,20,50000,25000,Mob013-3::On1009 013-3.gat,119,84,27,38 monster Spider 1012,20,120000,40000,Mob013-3::On1012 013-3.gat,176,23,5,6 monster Spider 1012,10,100000,40000,Mob013-3::On1012 013-3.gat,82,75,2,2 monster Fire skull 1023,1,180000,60000,Mob013-3::On1023 -- cgit v1.2.3-70-g09d2 From c94b0ba8224669ccce43dd76ee80a389c00f3848 Mon Sep 17 00:00:00 2001 From: Fate Date: Fri, 5 Dec 2008 21:45:48 -0700 Subject: Fixed typo in bookcase --- npc/018-3_Cave/bookcase.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/018-3_Cave/bookcase.txt b/npc/018-3_Cave/bookcase.txt index b2e14e41..d56b3fca 100644 --- a/npc/018-3_Cave/bookcase.txt +++ b/npc/018-3_Cave/bookcase.txt @@ -12,7 +12,7 @@ close; L_Search: - mes "After searching the bookcase, you were able to find a few pasages that you can read."; + mes "After searching the bookcase, you were able to find a few passages that you can read."; next; mes "One of the describes an ancient barrier that guards a great treasure."; -- cgit v1.2.3-70-g09d2 From a9df17da76b5ec5dbd923142c4a801b61636c257 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sat, 6 Dec 2008 12:33:48 +0000 Subject: Fix Jack's script some more --- npc/009-1_Hurnscald/jack.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc') diff --git a/npc/009-1_Hurnscald/jack.txt b/npc/009-1_Hurnscald/jack.txt index ed90135a..b61dca2f 100644 --- a/npc/009-1_Hurnscald/jack.txt +++ b/npc/009-1_Hurnscald/jack.txt @@ -226,6 +226,8 @@ L_Not_enough_money: L_Shield_state_3: mes "[Jack Lumber]"; mes "\"I hope that my shield will serve you well!\""; + next; + if (Inspector == 1) menu "Me too.", -, @@ -233,6 +235,7 @@ L_Shield_state_3: close; L_NohMask_Ask: + next; menu "I'll keep that in mind.", -, "Have you seen anything that might be connected to the recent robberies in town?", L_NohMask_Answer; -- cgit v1.2.3-70-g09d2 From b99d39653e3035cb1645c2ac1db571801622468c Mon Sep 17 00:00:00 2001 From: Piotr Rak Date: Sun, 7 Dec 2008 16:21:40 +0100 Subject: Fix typo --- npc/009-1_Hurnscald/old_woman.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/009-1_Hurnscald/old_woman.txt b/npc/009-1_Hurnscald/old_woman.txt index 5198f8ab..9f3d26ec 100644 --- a/npc/009-1_Hurnscald/old_woman.txt +++ b/npc/009-1_Hurnscald/old_woman.txt @@ -36,7 +36,7 @@ L_NohMask_Alibi: L_NohMask_Fake: if (Inspector == 9) goto L_NohMask_Fake_Satchel; - if (Inspector >= 3 && Inspector <= 6) got L_NohMask_Filler; + if (Inspector >= 3 && Inspector <= 6) goto L_NohMask_Filler; mes "[Old Woman]"; mes "\"I saw someone sneaking around town wearing a theater mask. It looked like one of the masks used by the troupe that was in town recently.\""; -- cgit v1.2.3-70-g09d2 From 90aa792ad22d26791320e083ef7ca99f942262e9 Mon Sep 17 00:00:00 2001 From: Fate Date: Tue, 9 Dec 2008 08:03:34 -0700 Subject: Fixed typo pointed out by ikufoo --- npc/018-3_Cave/bookcase.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/018-3_Cave/bookcase.txt b/npc/018-3_Cave/bookcase.txt index d56b3fca..d176caa3 100644 --- a/npc/018-3_Cave/bookcase.txt +++ b/npc/018-3_Cave/bookcase.txt @@ -17,7 +17,7 @@ L_Search: mes "One of the describes an ancient barrier that guards a great treasure."; mes ""; - mes "To get trough it, you need to consume the soul of a great pumpkin ghost."; + mes "To get through it, you need to consume the soul of a great pumpkin ghost."; next; mes "Another passage describes a ritual needed to open a certain cursed chest."; -- cgit v1.2.3-70-g09d2 From e7555990a4d5811bfc0d05dcca4bbc0bda2289bd Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 11 Dec 2008 18:16:56 +0000 Subject: Alter rules function to return read status --- npc/functions/game_rules.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'npc') diff --git a/npc/functions/game_rules.txt b/npc/functions/game_rules.txt index 83e69d73..d486e6f9 100644 --- a/npc/functions/game_rules.txt +++ b/npc/functions/game_rules.txt @@ -1,6 +1,8 @@ // function script GameRules { + set @read, 0; + menu "English", L_English, "Deutsch (German)", L_German, @@ -132,6 +134,7 @@ L_Polish: goto L_End; L_End: + set @read, 1; set TUT_var, TUT_var | 1; return; } -- cgit v1.2.3-70-g09d2 From 382d64ed75d5a0ade306f47fe539b962e76c9470 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 12 Dec 2008 04:35:16 +0000 Subject: Add 004-2 and name the snown town Nivalis --- data/004-2.wlk | Bin 0 -> 8530 bytes data/009-1.wlk | Bin 8779 -> 8779 bytes data/010-2.wlk | Bin 11774 -> 11774 bytes data/018-3.wlk | Bin 40004 -> 40004 bytes data/021-1.wlk | Bin 19042 -> 35604 bytes data/022-1.wlk | Bin 30004 -> 30004 bytes data/resnametable.txt | 4 + db/item_db.txt | 2 +- npc/004-1_Beach/_warps.txt | 2 + npc/004-2_Beach_House/_import.txt | 3 + npc/004-2_Beach_House/_mobs.txt | 7 + npc/004-2_Beach_House/_warps.txt | 10 ++ npc/020-1/_import.txt | 8 - npc/020-1/_mobs.txt | 7 - npc/020-1/_warps.txt | 9 -- npc/020-1/amrak.txt | 17 -- npc/020-1/monsters.txt | 14 -- npc/020-1/sexchanger.txt | 29 ---- npc/020-1/soul-menhir.txt | 8 - npc/020-1/startrek.txt | 20 --- npc/020-1_Nivalis/_import.txt | 8 + npc/020-1_Nivalis/_mobs.txt | 7 + npc/020-1_Nivalis/_warps.txt | 9 ++ npc/020-1_Nivalis/amrak.txt | 17 ++ npc/020-1_Nivalis/monsters.txt | 14 ++ npc/020-1_Nivalis/sexchanger.txt | 29 ++++ npc/020-1_Nivalis/soul-menhir.txt | 8 + npc/020-1_Nivalis/startrek.txt | 20 +++ npc/020-2/_import.txt | 5 - npc/020-2/_mobs.txt | 7 - npc/020-2/_warps.txt | 7 - npc/020-2/furquest.txt | 329 -------------------------------------- npc/020-2/shops.txt | 21 --- npc/020-2_Nivalis/_import.txt | 5 + npc/020-2_Nivalis/_mobs.txt | 7 + npc/020-2_Nivalis/_warps.txt | 7 + npc/020-2_Nivalis/furquest.txt | 329 ++++++++++++++++++++++++++++++++++++++ npc/020-2_Nivalis/shops.txt | 21 +++ npc/021-1_Tulimshar/_warps.txt | 3 - npc/_import.txt | 8 +- 40 files changed, 514 insertions(+), 487 deletions(-) create mode 100644 data/004-2.wlk create mode 100644 npc/004-2_Beach_House/_import.txt create mode 100644 npc/004-2_Beach_House/_mobs.txt create mode 100644 npc/004-2_Beach_House/_warps.txt delete mode 100644 npc/020-1/_import.txt delete mode 100644 npc/020-1/_mobs.txt delete mode 100644 npc/020-1/_warps.txt delete mode 100644 npc/020-1/amrak.txt delete mode 100644 npc/020-1/monsters.txt delete mode 100644 npc/020-1/sexchanger.txt delete mode 100644 npc/020-1/soul-menhir.txt delete mode 100644 npc/020-1/startrek.txt create mode 100644 npc/020-1_Nivalis/_import.txt create mode 100644 npc/020-1_Nivalis/_mobs.txt create mode 100644 npc/020-1_Nivalis/_warps.txt create mode 100644 npc/020-1_Nivalis/amrak.txt create mode 100644 npc/020-1_Nivalis/monsters.txt create mode 100644 npc/020-1_Nivalis/sexchanger.txt create mode 100644 npc/020-1_Nivalis/soul-menhir.txt create mode 100644 npc/020-1_Nivalis/startrek.txt delete mode 100644 npc/020-2/_import.txt delete mode 100644 npc/020-2/_mobs.txt delete mode 100644 npc/020-2/_warps.txt delete mode 100644 npc/020-2/furquest.txt delete mode 100644 npc/020-2/shops.txt create mode 100644 npc/020-2_Nivalis/_import.txt create mode 100644 npc/020-2_Nivalis/_mobs.txt create mode 100644 npc/020-2_Nivalis/_warps.txt create mode 100644 npc/020-2_Nivalis/furquest.txt create mode 100644 npc/020-2_Nivalis/shops.txt (limited to 'npc') diff --git a/data/004-2.wlk b/data/004-2.wlk new file mode 100644 index 00000000..6248acc5 Binary files /dev/null and b/data/004-2.wlk differ diff --git a/data/009-1.wlk b/data/009-1.wlk index 32a3777c..87fa7a02 100644 Binary files a/data/009-1.wlk and b/data/009-1.wlk differ diff --git a/data/010-2.wlk b/data/010-2.wlk index 94fb92cd..880a6dfb 100644 Binary files a/data/010-2.wlk and b/data/010-2.wlk differ diff --git a/data/018-3.wlk b/data/018-3.wlk index ca2476bd..654c6bbc 100644 Binary files a/data/018-3.wlk and b/data/018-3.wlk differ diff --git a/data/021-1.wlk b/data/021-1.wlk index 5c21ddd0..0a56c731 100644 Binary files a/data/021-1.wlk and b/data/021-1.wlk differ diff --git a/data/022-1.wlk b/data/022-1.wlk index fa71f6cc..1e728154 100644 Binary files a/data/022-1.wlk and b/data/022-1.wlk differ diff --git a/data/resnametable.txt b/data/resnametable.txt index 9a330350..c7c65430 100644 --- a/data/resnametable.txt +++ b/data/resnametable.txt @@ -7,6 +7,7 @@ 002-4.gat#002-4.wlk# 003-1.gat#003-1.wlk# 004-1.gat#004-1.wlk# +004-2.gat#004-2.wlk# 005-1.gat#005-1.wlk# 005-3.gat#005-3.wlk# 006-1.gat#006-1.wlk# @@ -39,3 +40,6 @@ 020-2.gat#020-2.wlk# 020-3.gat#020-3.wlk# 020-4.gat#020-4.wlk# +021-1.gat#021-1.wlk# +021-2.gat#021-2.wlk# +022-1.gat#022-1.wlk# diff --git a/db/item_db.txt b/db/item_db.txt index 97bd6046..49d6f77e 100644 --- a/db/item_db.txt +++ b/db/item_db.txt @@ -350,7 +350,7 @@ 2138, PurpleDesertHat, Purple Desert Hat, 5, 5000, 1000, 10, , 3, , -1, 0, 10477567, 2, 256, , 0, 0, {}, {} 2139, DarkGreenDesertHat, Dark Green Desert Hat, 5, 5000, 1000, 10, , 3, , -1, 0, 10477567, 2, 256, , 0, 0, {}, {} -#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Job, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} +#ID, Name, Label, Type, Price, Sell, Weight, ATK, DEF, Range, Mbonus, Slot, Job, Gender, Loc, wLV, eLV, View, {UseScript}, {EquipScript} 2140, RedCottonHeadBand, Red Cotton Head Band, 5, 3000, 500, 5, , 2, , 0, 0, 10477567, 2, 256, , 0, 0, {}, {} 2141, GreenCottonHeadBand, Green Cotton Head Band, 5, 3000, 500, 5, , 2, , 0, 0, 10477567, 2, 256, , 0, 0, {}, {} 2142, DarkBlueCottonHeadBand, Dark Blue Cotton Head Band, 5, 3000, 500, 5, , 2, , 0, 0, 10477567, 2, 256, , 0, 0, {}, {} diff --git a/npc/004-1_Beach/_warps.txt b/npc/004-1_Beach/_warps.txt index b6ccc7d0..97af769d 100644 --- a/npc/004-1_Beach/_warps.txt +++ b/npc/004-1_Beach/_warps.txt @@ -2,3 +2,5 @@ 004-1.gat,84,113 warp ToSandstorm 1,-1,002-1.gat,29,15 004-1.gat,37,111 warp ToBeach 1,-1,003-1.gat,141,21 +004-1.gat,80,31 warp ToHouse -1,-1,004-2.gat,21,28 +004-1.gat,86,27 warp To2ndFloor -1,-1,004-2.gat,57,65 diff --git a/npc/004-2_Beach_House/_import.txt b/npc/004-2_Beach_House/_import.txt new file mode 100644 index 00000000..32725dc8 --- /dev/null +++ b/npc/004-2_Beach_House/_import.txt @@ -0,0 +1,3 @@ +map: 004-2.gat +npc: npc/004-2_Beach_House/_mobs.txt +npc: npc/004-2_Beach_House/_warps.txt diff --git a/npc/004-2_Beach_House/_mobs.txt b/npc/004-2_Beach_House/_mobs.txt new file mode 100644 index 00000000..fada1e0d --- /dev/null +++ b/npc/004-2_Beach_House/_mobs.txt @@ -0,0 +1,7 @@ +// 004-2 Beach House mobs + + + +004-2.gat,0,0,0 script Mob004-2 -1,{ + end; +} diff --git a/npc/004-2_Beach_House/_warps.txt b/npc/004-2_Beach_House/_warps.txt new file mode 100644 index 00000000..8a1e4047 --- /dev/null +++ b/npc/004-2_Beach_House/_warps.txt @@ -0,0 +1,10 @@ +// 004-2 Beach House warps + +004-2.gat,39,20 warp ToRoom 0,-1,004-2.gat,75,29 +004-2.gat,75,30 warp ToRoom 0,-1,004-2.gat,38,21 +004-2.gat,21,29 warp ToOutside -1,-1,004-1.gat,80,32 +004-2.gat,62,28 warp ToBasement -1,-1,004-2.gat,21,62 +004-2.gat,20,62 warp To1stFloor -1,-1,004-2.gat,63,28 +004-2.gat,68,66 warp To1stFloor 0,-1,004-2.gat,35,21 +004-2.gat,36,20 warp To2ndFloor 0,-1,004-2.gat,68,65 +004-2.gat,57,66 warp ToOutside -1,-1,004-1.gat,86,28 diff --git a/npc/020-1/_import.txt b/npc/020-1/_import.txt deleted file mode 100644 index 2565ac9d..00000000 --- a/npc/020-1/_import.txt +++ /dev/null @@ -1,8 +0,0 @@ -map: 020-1.gat -npc: npc/020-1/_mobs.txt -npc: npc/020-1/_warps.txt -npc: npc/020-1/amrak.txt -npc: npc/020-1/monsters.txt -npc: npc/020-1/sexchanger.txt -npc: npc/020-1/soul-menhir.txt -npc: npc/020-1/startrek.txt diff --git a/npc/020-1/_mobs.txt b/npc/020-1/_mobs.txt deleted file mode 100644 index fa94c232..00000000 --- a/npc/020-1/_mobs.txt +++ /dev/null @@ -1,7 +0,0 @@ -// 020-1 mobs - - - -020-1.gat,0,0,0 script Mob020-1 -1,{ - end; -} diff --git a/npc/020-1/_warps.txt b/npc/020-1/_warps.txt deleted file mode 100644 index 36e0449a..00000000 --- a/npc/020-1/_warps.txt +++ /dev/null @@ -1,9 +0,0 @@ -// 020-1 warps - -020-1.gat,76,38 warp ToIceCave 1,-1,020-3.gat,31,28 -020-1.gat,47,48 warp ToClothesShop -1,-1,020-2.gat,25,33 -020-1.gat,66,52 warp ToHouse -1,-1,020-2.gat,72,68 -020-1.gat,70,127 warp toSnowField 2,-1,019-1.gat,70,22 -020-1.gat,64,82 warp toInn -1,-1,020-2.gat,111,31 -020-1.gat,86,46 warp toWeaponShop -1,-1,020-2.gat,32,72 -020-1.gat,56,90 warp ToPotionsShop -1,-1,020-2.gat,66,25 diff --git a/npc/020-1/amrak.txt b/npc/020-1/amrak.txt deleted file mode 100644 index 19979ca0..00000000 --- a/npc/020-1/amrak.txt +++ /dev/null @@ -1,17 +0,0 @@ -// - -020-1.gat,66,90,0 script Amrak 103, { - mes "[Amrak]"; - mes "\"This... stone..."; - mes "I have never seen a mineral like this"; - mes "before."; - mes "And some strange... aura... seems to"; - mes "emit from it.\""; - next; - mes "[Amrak]"; - mes "\"Where did it come from?"; - mes "How did it got here?"; - mes "What's its purpose?"; - mes "I will solve its riddle for sure.\""; - close; -} diff --git a/npc/020-1/monsters.txt b/npc/020-1/monsters.txt deleted file mode 100644 index fc33da8c..00000000 --- a/npc/020-1/monsters.txt +++ /dev/null @@ -1,14 +0,0 @@ -// Map: 020-1 -// This is Snow Town. -// - -020-1.gat,56,63,1,1 monster Maggot 1002,2,0,0,Mob11::OnMaggot - -020-1.gat,0,0,0 script Mob11 -1,{ -OnMaggot: - set @mobID, 1002; - callfunc "MobPoints"; - break; - - end; -} diff --git a/npc/020-1/sexchanger.txt b/npc/020-1/sexchanger.txt deleted file mode 100644 index 168f47a3..00000000 --- a/npc/020-1/sexchanger.txt +++ /dev/null @@ -1,29 +0,0 @@ -// - -020-1.gat,50,49,0 script Xanith 136,{ - mes "[Xanith the Surgeon]"; - mes "\"No sex changes right now, sorry.\""; - close; - - mes "[Xanith the Surgeon]"; - mes "\"Are you tired of being what you are?\""; - next; - - mes "[Xanith the Surgeon]"; - mes "\"Would you maybe be interested in a sex change?\""; - next; - - mes "[Server]"; - mes "\"Warning: All the character in your account will get the sex changed.\""; - mes "\"Also you probably will require to restart the client to notice a change.\""; - next; - - menu - "Please do, my dear...", L_Change, - "Leave alone my family treasure!", -; - close; - -L_Change: -// changesex; - close; -} diff --git a/npc/020-1/soul-menhir.txt b/npc/020-1/soul-menhir.txt deleted file mode 100644 index 3d0bc82a..00000000 --- a/npc/020-1/soul-menhir.txt +++ /dev/null @@ -1,8 +0,0 @@ -// - -020-1.gat,64,89,0 script Soul Menhir 144, { - set @map$, "020-1.gat"; - set @x, 64; - set @y, 90; - callfunc "SoulMenhir"; -} diff --git a/npc/020-1/startrek.txt b/npc/020-1/startrek.txt deleted file mode 100644 index 5c8847ad..00000000 --- a/npc/020-1/startrek.txt +++ /dev/null @@ -1,20 +0,0 @@ -// - -020-1.gat,79,77,0 script Kirk 133,{ - mes "[Capt. Kirk]"; - mes "\"Spock: We're breaking the prime directive."; - mes "This is not the right way to have the first contact.\""; - close; -} - -020-1.gat,81,77,0 script Spock 134,{ - mes "[Spock]"; - mes "\"Live long and prosper captain.\""; - next; - - mes "[Spock]"; - mes "\"trr...Spock to Scotty..."; - mes "Beam me to the elves village..."; - mes "I will hide there.\""; - close; -} diff --git a/npc/020-1_Nivalis/_import.txt b/npc/020-1_Nivalis/_import.txt new file mode 100644 index 00000000..440060d8 --- /dev/null +++ b/npc/020-1_Nivalis/_import.txt @@ -0,0 +1,8 @@ +map: 020-1.gat +npc: npc/020-1_Nivalis/_mobs.txt +npc: npc/020-1_Nivalis/_warps.txt +npc: npc/020-1_Nivalis/amrak.txt +npc: npc/020-1_Nivalis/monsters.txt +npc: npc/020-1_Nivalis/sexchanger.txt +npc: npc/020-1_Nivalis/soul-menhir.txt +npc: npc/020-1_Nivalis/startrek.txt diff --git a/npc/020-1_Nivalis/_mobs.txt b/npc/020-1_Nivalis/_mobs.txt new file mode 100644 index 00000000..64a7e46c --- /dev/null +++ b/npc/020-1_Nivalis/_mobs.txt @@ -0,0 +1,7 @@ +// 020-1 Nivalis mobs + + + +020-1.gat,0,0,0 script Mob020-1 -1,{ + end; +} diff --git a/npc/020-1_Nivalis/_warps.txt b/npc/020-1_Nivalis/_warps.txt new file mode 100644 index 00000000..c9578dfc --- /dev/null +++ b/npc/020-1_Nivalis/_warps.txt @@ -0,0 +1,9 @@ +// 020-1 Nivalis warps + +020-1.gat,76,38 warp ToIceCave 1,-1,020-3.gat,31,28 +020-1.gat,47,48 warp ToClothesShop -1,-1,020-2.gat,25,33 +020-1.gat,66,52 warp ToHouse -1,-1,020-2.gat,72,68 +020-1.gat,70,127 warp toSnowField 2,-1,019-1.gat,70,22 +020-1.gat,64,82 warp toInn -1,-1,020-2.gat,111,31 +020-1.gat,86,46 warp toWeaponShop -1,-1,020-2.gat,32,72 +020-1.gat,56,90 warp ToPotionsShop -1,-1,020-2.gat,66,25 diff --git a/npc/020-1_Nivalis/amrak.txt b/npc/020-1_Nivalis/amrak.txt new file mode 100644 index 00000000..19979ca0 --- /dev/null +++ b/npc/020-1_Nivalis/amrak.txt @@ -0,0 +1,17 @@ +// + +020-1.gat,66,90,0 script Amrak 103, { + mes "[Amrak]"; + mes "\"This... stone..."; + mes "I have never seen a mineral like this"; + mes "before."; + mes "And some strange... aura... seems to"; + mes "emit from it.\""; + next; + mes "[Amrak]"; + mes "\"Where did it come from?"; + mes "How did it got here?"; + mes "What's its purpose?"; + mes "I will solve its riddle for sure.\""; + close; +} diff --git a/npc/020-1_Nivalis/monsters.txt b/npc/020-1_Nivalis/monsters.txt new file mode 100644 index 00000000..fc33da8c --- /dev/null +++ b/npc/020-1_Nivalis/monsters.txt @@ -0,0 +1,14 @@ +// Map: 020-1 +// This is Snow Town. +// + +020-1.gat,56,63,1,1 monster Maggot 1002,2,0,0,Mob11::OnMaggot + +020-1.gat,0,0,0 script Mob11 -1,{ +OnMaggot: + set @mobID, 1002; + callfunc "MobPoints"; + break; + + end; +} diff --git a/npc/020-1_Nivalis/sexchanger.txt b/npc/020-1_Nivalis/sexchanger.txt new file mode 100644 index 00000000..168f47a3 --- /dev/null +++ b/npc/020-1_Nivalis/sexchanger.txt @@ -0,0 +1,29 @@ +// + +020-1.gat,50,49,0 script Xanith 136,{ + mes "[Xanith the Surgeon]"; + mes "\"No sex changes right now, sorry.\""; + close; + + mes "[Xanith the Surgeon]"; + mes "\"Are you tired of being what you are?\""; + next; + + mes "[Xanith the Surgeon]"; + mes "\"Would you maybe be interested in a sex change?\""; + next; + + mes "[Server]"; + mes "\"Warning: All the character in your account will get the sex changed.\""; + mes "\"Also you probably will require to restart the client to notice a change.\""; + next; + + menu + "Please do, my dear...", L_Change, + "Leave alone my family treasure!", -; + close; + +L_Change: +// changesex; + close; +} diff --git a/npc/020-1_Nivalis/soul-menhir.txt b/npc/020-1_Nivalis/soul-menhir.txt new file mode 100644 index 00000000..3d0bc82a --- /dev/null +++ b/npc/020-1_Nivalis/soul-menhir.txt @@ -0,0 +1,8 @@ +// + +020-1.gat,64,89,0 script Soul Menhir 144, { + set @map$, "020-1.gat"; + set @x, 64; + set @y, 90; + callfunc "SoulMenhir"; +} diff --git a/npc/020-1_Nivalis/startrek.txt b/npc/020-1_Nivalis/startrek.txt new file mode 100644 index 00000000..5c8847ad --- /dev/null +++ b/npc/020-1_Nivalis/startrek.txt @@ -0,0 +1,20 @@ +// + +020-1.gat,79,77,0 script Kirk 133,{ + mes "[Capt. Kirk]"; + mes "\"Spock: We're breaking the prime directive."; + mes "This is not the right way to have the first contact.\""; + close; +} + +020-1.gat,81,77,0 script Spock 134,{ + mes "[Spock]"; + mes "\"Live long and prosper captain.\""; + next; + + mes "[Spock]"; + mes "\"trr...Spock to Scotty..."; + mes "Beam me to the elves village..."; + mes "I will hide there.\""; + close; +} diff --git a/npc/020-2/_import.txt b/npc/020-2/_import.txt deleted file mode 100644 index f71241f7..00000000 --- a/npc/020-2/_import.txt +++ /dev/null @@ -1,5 +0,0 @@ -map: 020-2.gat -npc: npc/020-2/_mobs.txt -npc: npc/020-2/_warps.txt -npc: npc/020-2/furquest.txt -npc: npc/020-2/shops.txt diff --git a/npc/020-2/_mobs.txt b/npc/020-2/_mobs.txt deleted file mode 100644 index 4289bb7e..00000000 --- a/npc/020-2/_mobs.txt +++ /dev/null @@ -1,7 +0,0 @@ -// 020-2 mobs - - - -020-2.gat,0,0,0 script Mob020-2 -1,{ - end; -} diff --git a/npc/020-2/_warps.txt b/npc/020-2/_warps.txt deleted file mode 100644 index 2306316d..00000000 --- a/npc/020-2/_warps.txt +++ /dev/null @@ -1,7 +0,0 @@ -// 020-2 warps - -020-2.gat,25,35 warp ToOutside -1,-1,020-1.gat,47,50 -020-2.gat,64,25 warp ToOutside -1,-1,020-1.gat,55,90 -020-2.gat,111,32 warp ToOutside -1,-1,020-1.gat,64,83 -020-2.gat,32,73 warp ToOutside -1,-1,020-1.gat,84,48 -020-2.gat,72,70 warp ToOutside -1,-1,020-1.gat,66,54 diff --git a/npc/020-2/furquest.txt b/npc/020-2/furquest.txt deleted file mode 100644 index 4d67f8c4..00000000 --- a/npc/020-2/furquest.txt +++ /dev/null @@ -1,329 +0,0 @@ -//################################################################################# -// Script by Shaili and QOAL -//################################################################################# - -// Santa's Inn - Agostine, The Legendary Tailor -020-2.gat,102,28,0 script Agostine 137, { - if (QUEST_WG_state == 1) goto L_State_0_3; - if (QUEST_WG_state == 2) goto L_State_1; - if (QUEST_WG_state == 3) goto L_State_2; - if (QUEST_WG_state == 4) goto L_State_4; - if (QUEST_WG_state == 5) goto L_State_4_success; - if (QUEST_WG_state == 6) goto L_State_6; - if (QUEST_WG_state == 7) goto L_State_11; - if (QUEST_WG_state == 8) goto L_State_12; - if (QUEST_WG_state >= 9) goto L_State_13; - - mes "\"This goes up, this goes left...\""; - next; - mes "\"Mmmm...?\""; - next; - mes "[Agostine, The Legendary Tailor]"; - mes "\"Oh, a customer! Let me introduce myself! My name is Agostine!"; - mes "Some people say that I am the best tailor in the world,"; - mes "but I think I am the best one in the universe!"; - mes "So, What can I do for you, my friend?\""; - next; - menu - "I want something new for my wardrobe!", L_State_0_1, - "Oh, nothing, thanks!", -; - close; - -// Quest #0 - Beginning - Needed: Iron Potion - -L_State_0_1: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Well.. you know... working so hard makes me so tired!"; - mes "Can you bring me something tasty to drink, my friend?\""; - next; - menu - "Sure, what kind of drink you like?", L_State_0_2, - "I'm not your waiter!", -; - close; - -L_State_0_2: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Here we do not have a bar. Let me taste different beverages."; - mes "I want something new to drink.\""; - next; - menu - "I'll bring you different drinks to try!", L_State_Accept, - "Maybe a bar will open soon, wait for it.", -; - close; - -L_State_Accept: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Thanks so much.\""; - set QUEST_WG_state, 1; - close; - -L_State_0_3: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Well, what have you brought me?\""; - next; - menu - "A Cactus Drink.", L_State_0_4, - "A Cactus Potion.", L_State_0_5, - "Some milk.", L_State_0_6, - "A pint of beer.", L_State_0_7, - "A Iron potion.", L_State_0_9, - "A Concentration Potion.", L_State_0_8, - "Nothing, at the moment.", -; - close; - -L_State_0_4: - mes "[Agostine, The Legendary Tailor]"; - mes "\"So, a Cactus Drink?\""; - if (countitem(501) < 1) goto L_State_neg; - next; - delitem 501, 1; - goto L_State_bad; - close; - -L_State_0_5: - mes "[Agostine, The Legendary Tailor]"; - mes "\"So, a Cactus Potion?\""; - if (countitem(502) < 1) goto L_State_neg; - next; - delitem 502, 1; - goto L_State_bad; - close; - -L_State_0_6: - mes "[Agostine, The Legendary Tailor]"; - mes "\"So, some milk for me?\""; - if (countitem(527) < 1) goto L_State_neg; - delitem 527, 1; - goto L_State_bad; - close; - -L_State_0_7: - mes "[Agostine, The Legendary Tailor]"; - mes "\"So, a beer?\""; - if (countitem(539) < 1) goto L_State_neg; - next; - delitem 539, 1; - goto L_State_bad; - close; - -L_State_0_8: - mes "[Agostine, The Legendary Tailor]"; - mes "\"So, a Concentration Potion?\""; - if (countitem(568) < 1) goto L_State_neg; - next; - delitem 568, 1; - goto L_State_bad; - close; - -L_State_0_9: - mes "[Agostine, The Legendary Tailor]"; - mes "\"So, an Iron Potion?\""; - if (countitem(567) < 1) goto L_State_neg; - next; - delitem 567, 1; - mes "Agostine looks pleased as he drinks the potion."; - next; - mes "[Agostine, The Legendary Tailor]"; - mes "\"Oh! This is damn good! I feel a new man, my friend!\""; - next; - set zeny, zeny+500; - mes "[Agostine, The Legendary Tailor]"; - mes "\"This is a little reward for your help. Take 500 GP, my friend!\""; - set QUEST_WG_state, 2; - close; - -L_State_neg: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Seems that you lied. You don't have the drink you told me.\""; - close; - -L_State_bad: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Well, I don't like it so much. Bring me something else.\""; - close; - -// First Quest: edited version of Forest Bow Quest - Needed: about 30 White Furs and 15.000 GP - -L_State_1: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Mmmm... Let me see... This year light colours are fashionable!"; - mes "Would you like a pair of snow-white Winter Gloves?\""; - next; - menu - "No, thanks. I love dark clothes...", -, - "You really can do this for me?", L_State_2; - close; - -L_State_2: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Well, Winter Gloves are so fashionable for their lovable fur!"; - mes "Only the best furs can be saw for these gloves!"; - mes "But, as you see, I am a tailor, not a hunter! So, why don't you bring me the best fluffy's fur you can see?\""; - set QUEST_WG_state, 3; - next; - menu - "You are crazy! I won't kill any animal for this!", -, - "Sure, I will be back soon!", L_State_3; - close; - -L_State_3: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Remember, I want the best of fur!\""; - set QUEST_WG_state, 4; - next; - close; - -L_State_4: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Oh, my friend! Have you brought me some good furs?\""; - if (countitem(611) < 1) close; - next; - menu - "Here, take a look!", L_State_4_try, - "Yes, but I need it for something else.", -; - close; - -L_State_4_try: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Let me see, my friend! It needs to be perfect for my gloves!\""; - mes "Agostine examines the patch of fur."; - next; - delitem 611, 1; - set @Temp1,rand(30); - if (@Temp1 == 0) goto L_State_4_success; - mes "Agostine throws away the white fur."; - next; - mes "[Agostine, The Legendary Tailor]"; - mes "\"It was awfully cut! You should pay more attention when you kill fluffies!\""; - if (countitem(611) < 1) close; - next; - menu - "Here I have another one!", L_State_4_try, - "Sorry, I will be careful...", -; - close; - -L_State_4_success: - mes "Agostine turns into a smile"; - next; - mes "[Agostine, The Legendary Tailor]"; - mes "\"It's perfect! Perfect! Good job, my friend! I will prepare your gloves right now!\""; - next; - set QUEST_WG_state, 5; - goto L_State_5; - -L_State_5: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Ehm, my friend, my work is not free. I need 15,000 GP for the work.\""; - next; - menu - "You are not a tailor, you are a thief!!", -, - "I think it's a reasonable price...", L_State_5_pay; - close; - -L_State_5_pay: - if (zeny < 15000) goto L_State_5_nocash; - set zeny, zeny-15000; - getitem 563, 1; - set QUEST_WG_state, 6; - mes "[Agostine, The Legendary Tailor]"; - mes "\"Here they are. You will have the more fashionable hands in the world!\""; - close; - -L_State_5_nocash: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Seems like you are out of cash. Come back when you have the money.\""; - close; - -L_State_6: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Oh, I remember you! Your gloves are sooo fashionable, my friend!"; - mes "Well, I have a good news for you. In this issue of 'TMW Fashion'"; - mes "I saw a pretty accessory, a pair of Furry Boots, my friend."; - mes "I can make your own pair, if you want!\""; - next; - menu - "It's a great idea!", L_State_10, - "I'm glamourous enough, thanks", -; - close; - -// Start of Second Quest: Furry Boots - Needed: About 30 White Furs, 1 pair of Boots and 15.000 GP -L_State_10: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Perfect! For satisfying your request I need another perfect White Fur"; - mes "and a pair of Boots, like those you can find in the mines."; - mes "They will make you lovely, my friend!\""; - set QUEST_WG_state, 7; - close; - -L_State_11: - mes "[Agostine, The Legendary Tailor]"; - mes "\"So, my friend, have you brought me the right Fur?\""; - if (countitem(611) < 1) close; - next; - menu - "Sure, I'm a fluffy hunter!", L_State_11_try, - "Not yet, sorry.", -; - close; - -L_State_11_try: - mes "[Agostine, The Legendary Tailor]"; - mes "\"I'd rather see the patch of fur, first.\""; - next; - mes "Agostine examines the patch of fur."; - next; - delitem 611, 1; - set @Temp2,rand(30); - if (@Temp2 == 0) goto L_State_11_success; - mes "Agostine rips the white fur."; - next; - mes "[Agostine, The Legendary Tailor]"; - mes "\"That fur was terrible. I won't work with it!\""; - if (countitem(611) < 1) close; - next; - menu - "Well, maybe this is better!", L_State_11_try, - "I will hunt other fluffies...", -; - close; - -L_State_11_success: - mes "Agostine turns into a smile"; - next; - mes "[Agostine, The Legendary Tailor]"; - mes "\"This one is good enough, my friend. Good job.\""; - delitem 611, 1; - set QUEST_WG_state, 8; - goto L_State_12; - -L_State_12: - mes "[Agostine, The Legendary Tailor]"; - mes "\"I need also a pair of Boots for the work."; - mes "And my payment, obviously. 15,000 GP is right.\""; - next; - menu - "Sure, here it is all.", L_State_12_pay, - "I missed something, I will be back soon!", -; - close; - -L_State_12_pay: - if (zeny < 15000) goto L_State_12_missing; - if (countitem(528) < 1) goto L_State_12_missing; - set zeny, zeny-15000; - delitem 528, 1; - getitem 655, 1; - set QUEST_WG_state, 9; - mes "[Agostine, The Legendary Tailor]"; - mes "\"Enjoy your new boots, my friend!\""; - close; - -L_State_12_missing: - mes "[Agostine, The Legendary Tailor]"; - mes "\"Seems you have forgotten something. Check your inventory"; - mes "and your pockets!\""; - close; - -L_State_13: - mes "[Agostine, The Legendary Tailor]"; - mes "\"You are so glamourous, my dear friend!"; - mes "I have done a very good job on your clothes!\""; - close; -} diff --git a/npc/020-2/shops.txt b/npc/020-2/shops.txt deleted file mode 100644 index f3d9dedc..00000000 --- a/npc/020-2/shops.txt +++ /dev/null @@ -1,21 +0,0 @@ -// Snow town shops - -// Clothes shop -020-2.gat,27,26,0 shop Taylor 137,523:2000,524:1600,543:800,544:5000,546:10000,586:1000,610,2000 -// Weapons shop -020-2.gat,25,65,0 shop Bracco 135,1201:50,521:1000,522:100,545:20000,529:5 -// Potions shop -020-2.gat,75,26,0 shop Mede 103,501:50,502:70,567:500,568:500 - -// INN -020-2.gat,111,23,0 script Kane 120,{ - set @npcName$, "Kane the Inn Keeper"; - set @cost, 100; - - mes "[" + @npcName$ + "]"; - mes "\"Welcome strangers."; - mes "What? You've already seen an INN like mine?"; - mes "That's impossible!\""; - next; - callfunc "Inn"; -} diff --git a/npc/020-2_Nivalis/_import.txt b/npc/020-2_Nivalis/_import.txt new file mode 100644 index 00000000..159d1e61 --- /dev/null +++ b/npc/020-2_Nivalis/_import.txt @@ -0,0 +1,5 @@ +map: 020-2.gat +npc: npc/020-2_Nivalis/_mobs.txt +npc: npc/020-2_Nivalis/_warps.txt +npc: npc/020-2_Nivalis/furquest.txt +npc: npc/020-2_Nivalis/shops.txt diff --git a/npc/020-2_Nivalis/_mobs.txt b/npc/020-2_Nivalis/_mobs.txt new file mode 100644 index 00000000..1b1c6e2b --- /dev/null +++ b/npc/020-2_Nivalis/_mobs.txt @@ -0,0 +1,7 @@ +// 020-2 Nivalis mobs + + + +020-2.gat,0,0,0 script Mob020-2 -1,{ + end; +} diff --git a/npc/020-2_Nivalis/_warps.txt b/npc/020-2_Nivalis/_warps.txt new file mode 100644 index 00000000..47f71d27 --- /dev/null +++ b/npc/020-2_Nivalis/_warps.txt @@ -0,0 +1,7 @@ +// 020-2 Nivalis warps + +020-2.gat,25,35 warp ToOutside -1,-1,020-1.gat,47,50 +020-2.gat,64,25 warp ToOutside -1,-1,020-1.gat,55,90 +020-2.gat,111,32 warp ToOutside -1,-1,020-1.gat,64,83 +020-2.gat,32,73 warp ToOutside -1,-1,020-1.gat,84,48 +020-2.gat,72,70 warp ToOutside -1,-1,020-1.gat,66,54 diff --git a/npc/020-2_Nivalis/furquest.txt b/npc/020-2_Nivalis/furquest.txt new file mode 100644 index 00000000..4d67f8c4 --- /dev/null +++ b/npc/020-2_Nivalis/furquest.txt @@ -0,0 +1,329 @@ +//################################################################################# +// Script by Shaili and QOAL +//################################################################################# + +// Santa's Inn - Agostine, The Legendary Tailor +020-2.gat,102,28,0 script Agostine 137, { + if (QUEST_WG_state == 1) goto L_State_0_3; + if (QUEST_WG_state == 2) goto L_State_1; + if (QUEST_WG_state == 3) goto L_State_2; + if (QUEST_WG_state == 4) goto L_State_4; + if (QUEST_WG_state == 5) goto L_State_4_success; + if (QUEST_WG_state == 6) goto L_State_6; + if (QUEST_WG_state == 7) goto L_State_11; + if (QUEST_WG_state == 8) goto L_State_12; + if (QUEST_WG_state >= 9) goto L_State_13; + + mes "\"This goes up, this goes left...\""; + next; + mes "\"Mmmm...?\""; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"Oh, a customer! Let me introduce myself! My name is Agostine!"; + mes "Some people say that I am the best tailor in the world,"; + mes "but I think I am the best one in the universe!"; + mes "So, What can I do for you, my friend?\""; + next; + menu + "I want something new for my wardrobe!", L_State_0_1, + "Oh, nothing, thanks!", -; + close; + +// Quest #0 - Beginning - Needed: Iron Potion + +L_State_0_1: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Well.. you know... working so hard makes me so tired!"; + mes "Can you bring me something tasty to drink, my friend?\""; + next; + menu + "Sure, what kind of drink you like?", L_State_0_2, + "I'm not your waiter!", -; + close; + +L_State_0_2: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Here we do not have a bar. Let me taste different beverages."; + mes "I want something new to drink.\""; + next; + menu + "I'll bring you different drinks to try!", L_State_Accept, + "Maybe a bar will open soon, wait for it.", -; + close; + +L_State_Accept: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Thanks so much.\""; + set QUEST_WG_state, 1; + close; + +L_State_0_3: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Well, what have you brought me?\""; + next; + menu + "A Cactus Drink.", L_State_0_4, + "A Cactus Potion.", L_State_0_5, + "Some milk.", L_State_0_6, + "A pint of beer.", L_State_0_7, + "A Iron potion.", L_State_0_9, + "A Concentration Potion.", L_State_0_8, + "Nothing, at the moment.", -; + close; + +L_State_0_4: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, a Cactus Drink?\""; + if (countitem(501) < 1) goto L_State_neg; + next; + delitem 501, 1; + goto L_State_bad; + close; + +L_State_0_5: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, a Cactus Potion?\""; + if (countitem(502) < 1) goto L_State_neg; + next; + delitem 502, 1; + goto L_State_bad; + close; + +L_State_0_6: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, some milk for me?\""; + if (countitem(527) < 1) goto L_State_neg; + delitem 527, 1; + goto L_State_bad; + close; + +L_State_0_7: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, a beer?\""; + if (countitem(539) < 1) goto L_State_neg; + next; + delitem 539, 1; + goto L_State_bad; + close; + +L_State_0_8: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, a Concentration Potion?\""; + if (countitem(568) < 1) goto L_State_neg; + next; + delitem 568, 1; + goto L_State_bad; + close; + +L_State_0_9: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, an Iron Potion?\""; + if (countitem(567) < 1) goto L_State_neg; + next; + delitem 567, 1; + mes "Agostine looks pleased as he drinks the potion."; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"Oh! This is damn good! I feel a new man, my friend!\""; + next; + set zeny, zeny+500; + mes "[Agostine, The Legendary Tailor]"; + mes "\"This is a little reward for your help. Take 500 GP, my friend!\""; + set QUEST_WG_state, 2; + close; + +L_State_neg: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Seems that you lied. You don't have the drink you told me.\""; + close; + +L_State_bad: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Well, I don't like it so much. Bring me something else.\""; + close; + +// First Quest: edited version of Forest Bow Quest - Needed: about 30 White Furs and 15.000 GP + +L_State_1: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Mmmm... Let me see... This year light colours are fashionable!"; + mes "Would you like a pair of snow-white Winter Gloves?\""; + next; + menu + "No, thanks. I love dark clothes...", -, + "You really can do this for me?", L_State_2; + close; + +L_State_2: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Well, Winter Gloves are so fashionable for their lovable fur!"; + mes "Only the best furs can be saw for these gloves!"; + mes "But, as you see, I am a tailor, not a hunter! So, why don't you bring me the best fluffy's fur you can see?\""; + set QUEST_WG_state, 3; + next; + menu + "You are crazy! I won't kill any animal for this!", -, + "Sure, I will be back soon!", L_State_3; + close; + +L_State_3: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Remember, I want the best of fur!\""; + set QUEST_WG_state, 4; + next; + close; + +L_State_4: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Oh, my friend! Have you brought me some good furs?\""; + if (countitem(611) < 1) close; + next; + menu + "Here, take a look!", L_State_4_try, + "Yes, but I need it for something else.", -; + close; + +L_State_4_try: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Let me see, my friend! It needs to be perfect for my gloves!\""; + mes "Agostine examines the patch of fur."; + next; + delitem 611, 1; + set @Temp1,rand(30); + if (@Temp1 == 0) goto L_State_4_success; + mes "Agostine throws away the white fur."; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"It was awfully cut! You should pay more attention when you kill fluffies!\""; + if (countitem(611) < 1) close; + next; + menu + "Here I have another one!", L_State_4_try, + "Sorry, I will be careful...", -; + close; + +L_State_4_success: + mes "Agostine turns into a smile"; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"It's perfect! Perfect! Good job, my friend! I will prepare your gloves right now!\""; + next; + set QUEST_WG_state, 5; + goto L_State_5; + +L_State_5: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Ehm, my friend, my work is not free. I need 15,000 GP for the work.\""; + next; + menu + "You are not a tailor, you are a thief!!", -, + "I think it's a reasonable price...", L_State_5_pay; + close; + +L_State_5_pay: + if (zeny < 15000) goto L_State_5_nocash; + set zeny, zeny-15000; + getitem 563, 1; + set QUEST_WG_state, 6; + mes "[Agostine, The Legendary Tailor]"; + mes "\"Here they are. You will have the more fashionable hands in the world!\""; + close; + +L_State_5_nocash: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Seems like you are out of cash. Come back when you have the money.\""; + close; + +L_State_6: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Oh, I remember you! Your gloves are sooo fashionable, my friend!"; + mes "Well, I have a good news for you. In this issue of 'TMW Fashion'"; + mes "I saw a pretty accessory, a pair of Furry Boots, my friend."; + mes "I can make your own pair, if you want!\""; + next; + menu + "It's a great idea!", L_State_10, + "I'm glamourous enough, thanks", -; + close; + +// Start of Second Quest: Furry Boots - Needed: About 30 White Furs, 1 pair of Boots and 15.000 GP +L_State_10: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Perfect! For satisfying your request I need another perfect White Fur"; + mes "and a pair of Boots, like those you can find in the mines."; + mes "They will make you lovely, my friend!\""; + set QUEST_WG_state, 7; + close; + +L_State_11: + mes "[Agostine, The Legendary Tailor]"; + mes "\"So, my friend, have you brought me the right Fur?\""; + if (countitem(611) < 1) close; + next; + menu + "Sure, I'm a fluffy hunter!", L_State_11_try, + "Not yet, sorry.", -; + close; + +L_State_11_try: + mes "[Agostine, The Legendary Tailor]"; + mes "\"I'd rather see the patch of fur, first.\""; + next; + mes "Agostine examines the patch of fur."; + next; + delitem 611, 1; + set @Temp2,rand(30); + if (@Temp2 == 0) goto L_State_11_success; + mes "Agostine rips the white fur."; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"That fur was terrible. I won't work with it!\""; + if (countitem(611) < 1) close; + next; + menu + "Well, maybe this is better!", L_State_11_try, + "I will hunt other fluffies...", -; + close; + +L_State_11_success: + mes "Agostine turns into a smile"; + next; + mes "[Agostine, The Legendary Tailor]"; + mes "\"This one is good enough, my friend. Good job.\""; + delitem 611, 1; + set QUEST_WG_state, 8; + goto L_State_12; + +L_State_12: + mes "[Agostine, The Legendary Tailor]"; + mes "\"I need also a pair of Boots for the work."; + mes "And my payment, obviously. 15,000 GP is right.\""; + next; + menu + "Sure, here it is all.", L_State_12_pay, + "I missed something, I will be back soon!", -; + close; + +L_State_12_pay: + if (zeny < 15000) goto L_State_12_missing; + if (countitem(528) < 1) goto L_State_12_missing; + set zeny, zeny-15000; + delitem 528, 1; + getitem 655, 1; + set QUEST_WG_state, 9; + mes "[Agostine, The Legendary Tailor]"; + mes "\"Enjoy your new boots, my friend!\""; + close; + +L_State_12_missing: + mes "[Agostine, The Legendary Tailor]"; + mes "\"Seems you have forgotten something. Check your inventory"; + mes "and your pockets!\""; + close; + +L_State_13: + mes "[Agostine, The Legendary Tailor]"; + mes "\"You are so glamourous, my dear friend!"; + mes "I have done a very good job on your clothes!\""; + close; +} diff --git a/npc/020-2_Nivalis/shops.txt b/npc/020-2_Nivalis/shops.txt new file mode 100644 index 00000000..f3d9dedc --- /dev/null +++ b/npc/020-2_Nivalis/shops.txt @@ -0,0 +1,21 @@ +// Snow town shops + +// Clothes shop +020-2.gat,27,26,0 shop Taylor 137,523:2000,524:1600,543:800,544:5000,546:10000,586:1000,610,2000 +// Weapons shop +020-2.gat,25,65,0 shop Bracco 135,1201:50,521:1000,522:100,545:20000,529:5 +// Potions shop +020-2.gat,75,26,0 shop Mede 103,501:50,502:70,567:500,568:500 + +// INN +020-2.gat,111,23,0 script Kane 120,{ + set @npcName$, "Kane the Inn Keeper"; + set @cost, 100; + + mes "[" + @npcName$ + "]"; + mes "\"Welcome strangers."; + mes "What? You've already seen an INN like mine?"; + mes "That's impossible!\""; + next; + callfunc "Inn"; +} diff --git a/npc/021-1_Tulimshar/_warps.txt b/npc/021-1_Tulimshar/_warps.txt index 3c771539..7e907749 100644 --- a/npc/021-1_Tulimshar/_warps.txt +++ b/npc/021-1_Tulimshar/_warps.txt @@ -1,5 +1,2 @@ // 021-1 Tulimshar warps -021-1.gat,44,88 warp ToSandstorm 3,-1,002-1.gat,58,17 -021-1.gat,32,71 warp ToInn -1,-1,001-2.gat,25,34 -021-1.gat,75,41 warp ToHouse -1,-1,001-2.gat,71,72 diff --git a/npc/_import.txt b/npc/_import.txt index df218035..74464305 100644 --- a/npc/_import.txt +++ b/npc/_import.txt @@ -6,6 +6,7 @@ import: npc/002-3_Desert_mines/_import.txt import: npc/002-4_Desert_mines/_import.txt import: npc/003-1_Beach/_import.txt import: npc/004-1_Beach/_import.txt +import: npc/004-2_Beach_House/_import.txt import: npc/005-1_Snake_desert/_import.txt import: npc/005-3_Snake_pit/_import.txt import: npc/006-1_Desert_mountains/_import.txt @@ -34,7 +35,10 @@ import: npc/018-1_Woodland_mining_camp/_import.txt import: npc/018-2_Woodland_minning_camp/_import.txt import: npc/018-3_Cave/_import.txt import: npc/019-1_Snow_field/_import.txt -import: npc/020-1/_import.txt -import: npc/020-2/_import.txt +import: npc/020-1_Nivalis/_import.txt +import: npc/020-2_Nivalis/_import.txt import: npc/020-3_Ice_cave/_import.txt import: npc/020-4_Ice_cave/_import.txt +import: npc/021-1_Tulimshar/_import.txt +import: npc/021-2_Tulimshar/_import.txt +import: npc/022-1_Beach_Cliffs/_import.txt -- cgit v1.2.3-70-g09d2 From dc8d65c41c45d8c12f42bd29352da6dcd9947891 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 12 Dec 2008 13:40:47 +0000 Subject: Add folder for 021-2 --- npc/021-2_Tulimshar/_import.txt | 3 +++ npc/021-2_Tulimshar/_mobs.txt | 7 +++++++ npc/021-2_Tulimshar/_warps.txt | 2 ++ 3 files changed, 12 insertions(+) create mode 100644 npc/021-2_Tulimshar/_import.txt create mode 100644 npc/021-2_Tulimshar/_mobs.txt create mode 100644 npc/021-2_Tulimshar/_warps.txt (limited to 'npc') diff --git a/npc/021-2_Tulimshar/_import.txt b/npc/021-2_Tulimshar/_import.txt new file mode 100644 index 00000000..b098b11d --- /dev/null +++ b/npc/021-2_Tulimshar/_import.txt @@ -0,0 +1,3 @@ +map: 021-2.gat +npc: npc/021-2_Tulimshar/_mobs.txt +npc: npc/021-2_Tulimshar/_warps.txt diff --git a/npc/021-2_Tulimshar/_mobs.txt b/npc/021-2_Tulimshar/_mobs.txt new file mode 100644 index 00000000..140d3395 --- /dev/null +++ b/npc/021-2_Tulimshar/_mobs.txt @@ -0,0 +1,7 @@ +// 021-2 Tulimshar mobs + + + +021-2.gat,0,0,0 script Mob021-2 -1,{ + end; +} diff --git a/npc/021-2_Tulimshar/_warps.txt b/npc/021-2_Tulimshar/_warps.txt new file mode 100644 index 00000000..982c026b --- /dev/null +++ b/npc/021-2_Tulimshar/_warps.txt @@ -0,0 +1,2 @@ +// 021-2 Tulimshar warps + -- cgit v1.2.3-70-g09d2 From 3e3a4287e3d61541de447b7f316ee1cab0c0cc93 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 14 Dec 2008 15:56:48 +0000 Subject: Rename Santa to Santa's Helper --- npc/019-1_Snow_field/santa.txt | 50 ------------------------------ npc/019-1_Snow_field/santa_helper.txt | 57 +++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 50 deletions(-) delete mode 100644 npc/019-1_Snow_field/santa.txt create mode 100644 npc/019-1_Snow_field/santa_helper.txt (limited to 'npc') diff --git a/npc/019-1_Snow_field/santa.txt b/npc/019-1_Snow_field/santa.txt deleted file mode 100644 index 01481d67..00000000 --- a/npc/019-1_Snow_field/santa.txt +++ /dev/null @@ -1,50 +0,0 @@ -019-1.gat,74,75,0 script Santa 105,{ -if (ChristmasQuest2 == 1) goto done; -mes "[Santa]"; -mes "Ho ho ho."; -mes "Hello my young friend."; -mes "Would you like to help me?"; -next; -mes "Those monsters stolen my presents."; -mes "If you help me, I'll give you something very nice"; -next; -L_M: -menu "I have some present boxes",L_Y,"Hmm, see you later",L_N,"What you need exactly?",L_R; - L_Y: - mes "[Santa]"; - mes "Hmm, let me check what you have."; - next; - if(countitem(515)<25) goto NoItem; - if(countitem(516)<20) goto NoItem; - if(countitem(538)<5) goto NoItem; - mes "Great! Here is something for you"; - delitem 515,25; - delitem 516,20; - delitem 538,5; - getitem 563+rand(2),1; - set ChristmasQuest2,1; - close; - L_R: - mes "[Santa]"; - mes "I need:"; - mes "25 purple present boxes"; - mes "20 blue present boxes"; - mes "5 green present boxes"; - next; - goto L_M; - L_N: - mes "[Santa]"; - mes "Enjoy your holidays and I wish you an happy Christmas!"; - close; - NoItem: - mes "[Santa]"; - mes "You dont seem to have enough presents."; - close; - done: - mes "[Santa]"; - mes "All the children got their Christmas presents."; - mes "Thank you for your help."; - close; - -} - diff --git a/npc/019-1_Snow_field/santa_helper.txt b/npc/019-1_Snow_field/santa_helper.txt new file mode 100644 index 00000000..72b00acf --- /dev/null +++ b/npc/019-1_Snow_field/santa_helper.txt @@ -0,0 +1,57 @@ +019-1.gat,74,75,0 script Santa's Helper 105,{ + if (ChristmasQuest2 == 1) goto L_Done; + mes "[Santa's Helper]"; + mes "Hello my young friend."; + mes "Would you like to help me?"; + next; + mes "Those monsters stole Santa's presents."; + mes "If you help me, I'll give you something very nice"; + next; + +L_M: + menu + "I have some present boxes", L_Y, + "Hmm, see you later", L_N, + "What you need exactly?", L_R; + +L_Y: + mes "[Santa's Helper]"; + mes "Hmm, let me check what you have."; + next; + if(countitem(515)<25) goto L_NoItem; + if(countitem(516)<20) goto L_NoItem; + if(countitem(538)<5) goto L_NoItem; + mes "Great! Here is something for you"; + delitem 515, 25; + delitem 516, 20; + delitem 538, 5; + getitem 564, 1; + set ChristmasQuest2,1; + close; + +L_R: + mes "[Santa's Helper]"; + mes "I need:"; + mes "25 purple present boxes"; + mes "20 blue present boxes"; + mes "5 green present boxes"; + next; + goto L_M; + +L_N: + mes "[Santa's Helper]"; + mes "Enjoy your holidays and I wish you an happy Christmas!"; + close; + +L_NoItem: + mes "[Santa's Helper]"; + mes "You dont seem to have enough presents."; + close; + +L_Done: + mes "[Santa's Helper]"; + mes "All the children got their Christmas presents."; + mes "Thank you for your help."; + close; +} + -- cgit v1.2.3-70-g09d2 From 4a61fa6c8ffc5a0c40300e9c3fd64ec374b51207 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 14 Dec 2008 23:53:11 +0000 Subject: Fix import file for map 019-1 --- npc/019-1_Snow_field/_import.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'npc') diff --git a/npc/019-1_Snow_field/_import.txt b/npc/019-1_Snow_field/_import.txt index 855671ad..e389a836 100644 --- a/npc/019-1_Snow_field/_import.txt +++ b/npc/019-1_Snow_field/_import.txt @@ -2,6 +2,6 @@ map: 019-1.gat npc: npc/019-1_Snow_field/_mobs.txt npc: npc/019-1_Snow_field/_warps.txt npc: npc/019-1_Snow_field/monsters.txt -npc: npc/019-1_Snow_field/santa.txt +npc: npc/019-1_Snow_field/santa_helper.txt npc: npc/019-1_Snow_field/snowman.txt npc: npc/019-1_Snow_field/taro.txt -- cgit v1.2.3-70-g09d2 From b1ced66321ffed02cde1a9ccd39fa2c9ba004125 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 23 Dec 2008 17:16:49 +0000 Subject: Fixeds to check for invy room before giving items --- npc/001-1_Tulimshar/guide.txt | 17 ++-- npc/001-1_Tulimshar/sandra.txt | 107 +++++++++++++--------- npc/001-1_Tulimshar/vincent.txt | 37 ++++---- npc/001-2_Tulimshar/troupe_leader.txt | 9 +- npc/002-4_Desert_mines/chest.txt | 12 ++- npc/006-1_Desert_mountains/pachua.txt | 10 +- npc/008-1_Hurnscald_outskirts/hinnak.txt | 18 +++- npc/009-1_Hurnscald/jack.txt | 11 ++- npc/009-2_Hurnscald/alan.txt | 7 ++ npc/009-2_Hurnscald/kfahr.txt | 40 +++++++- npc/009-2_Hurnscald/nicholas.txt | 16 +++- npc/009-2_Hurnscald/waitress.txt | 10 ++ npc/010-2_Dimonds_Cove/loratay.txt | 13 ++- npc/011-1_Woodland/alchemist.txt | 28 ++++++ npc/013-2_Magic_house/apprentice.txt | 146 ++++++++++++++++++------------ npc/013-3_Cave/mask_chest.txt | 24 +++++ npc/013-3_Cave/sword_chest.txt | 7 ++ npc/014-1_Woodland/wedding-officiator.txt | 6 ++ npc/019-1_Snow_field/santa_helper.txt | 40 ++++---- npc/019-1_Snow_field/snowman.txt | 7 ++ npc/020-1_Nivalis/monsters.txt | 14 --- npc/020-2_Nivalis/furquest.txt | 6 ++ 22 files changed, 413 insertions(+), 172 deletions(-) delete mode 100644 npc/020-1_Nivalis/monsters.txt (limited to 'npc') diff --git a/npc/001-1_Tulimshar/guide.txt b/npc/001-1_Tulimshar/guide.txt index 1efc79fe..d4367616 100644 --- a/npc/001-1_Tulimshar/guide.txt +++ b/npc/001-1_Tulimshar/guide.txt @@ -140,12 +140,7 @@ L_Key: L_Laws: mes "[Ian the Guide]"; - mes "\"Lady Platyna, the Overseer, has decreed the following rules:"; - mes "1. Do not abuse others (insult, swear etc.)"; - mes "2. No bots."; - mes "3. No spamming/flooding."; - mes "4. No begging."; - mes "5. Speak English."; + mes "\"The constable can help you with them.\""; next; goto L_Menu_A; @@ -153,12 +148,20 @@ L_Know: close; S_Grad: + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; mes "[Ian the Guide]"; mes "\"Hey, you've been doing good, let me give you this.\""; - next; getitem 675, 1; set TUT_var, TUT_var | 2; + next; + + return; +L_TooMany: + mes "[Ian the Guide]"; + mes "\"I wanted to give you something, but you don't have room for it.\""; + next; return; } diff --git a/npc/001-1_Tulimshar/sandra.txt b/npc/001-1_Tulimshar/sandra.txt index eb1ebdf0..048bfa19 100644 --- a/npc/001-1_Tulimshar/sandra.txt +++ b/npc/001-1_Tulimshar/sandra.txt @@ -1,83 +1,102 @@ // 001-1.gat,110,71,0 script Sandra 114,{ - if(Scorp == 2) goto done; - if(Scorp == 1) goto reas; + if(Scorp == 2) goto L_Done; + if(Scorp == 1) goto L_Progress; + set @TEMP,rand(3); - if(@TEMP == 1) goto L_1; - if(@TEMP == 2) goto L_2; - if(@TEMP == 3) goto L_3; - if(@TEMP == 0) goto L_4; -L_1: + if(@TEMP == 1) goto L_Opening1; + if(@TEMP == 2) goto L_Opening2; + if(@TEMP == 3) goto L_Opening3; + if(@TEMP == 0) goto L_Opening4; + +L_Opening1: mes "[Sandra]"; - mes "\"In the outskirts of Tulimshar, there wanders a red scorpion. I need a favor, please help me.\""; + mes "\"In the outskirts of Tulimshar, there wanders a red scorpion. I need a favor, please help me. Will you?\""; next; - goto red; -L_2: + goto L_Ask; + +L_Opening2: mes "[Sandra]"; mes "\"When you venture in the outskirts of Tulimshar, you can spot a red scorpion. Will you help me kill one?\""; next; - goto red; -L_3: + goto L_Ask; + +L_Opening3: mes "[Sandra]"; - mes "\"The red scorpion stinger carries many properties used in potions.\""; + mes "\"The red scorpion stinger carries many properties used in potions. Will you get some for me?\""; next; - goto red; -L_4: + goto L_Ask; + +L_Opening4: mes "[Sandra]"; mes "\"You look sturdy enough, will you help me get something?\""; next; - goto red; -red: - menu "Yes",L_kl,"No",L_N; -L_kl: - if(@TEMP == 1) goto K_1; - if(@TEMP == 2) goto K_2; - if(@TEMP == 3) goto K_3; - if(@TEMP == 0) goto K_1; -K_1: + goto L_Ask; + +L_Ask: + menu + "Yes", L_Yes, + "No", L_No; + +L_Yes: + if(@TEMP == 1) goto L_Req1; + if(@TEMP == 2) goto L_Req2; + if(@TEMP == 3) goto L_Req3; + if(@TEMP == 0) goto L_Req1; + +L_Req1: mes "[Sandra]"; mes "\"I need you to slaughter the red scorpion found outside of Tulimshar and bring me 5 [Red Stingers].\""; next; - goto set1; -K_2: + goto L_Set; + +L_Req2: mes "[Sandra]"; mes "\"I heard a while ago that the stinger of a red scorpion can be used for medical purposes. I need you to help me get 5 [Red Stingers].\""; next; - goto set1; -K_3: + goto L_Set; + +L_Req3: mes "[Sandra]"; mes "\"Bring me 5 [Red Stingers] and i will reward you greatly.\""; next; - goto set1; -set1: + goto L_Set; + +L_Set: set Scorp,1; mes "[Sandra]"; mes "\"Please bring me them!\""; close; -reas: - if(countitem(517) >= 5) goto have; + +L_Progress: + if (countitem(517) >= 5) goto L_Have; mes "[Sandra]"; mes "\"Please hurry and bring me 5 [Red Stingers].\""; close; -have: + +L_Have: mes "[Sandra]"; mes "\"Excellent!"; mes "You brought me 5 [Red Stingers]!\""; - delitem 517,5; - next; - mes "[Sandra]"; - mes "\"Here you go, your reward!\""; - mes "+Got Bow"; - mes "+Got Arrows 100"; - getitem 1200,1; - getitem 1199,100; - set Scorp,2; + getinventorylist; + if (@inventorylist_count == 100 && countitem(517) > 5) goto L_TooMany; + delitem 517, 5; + getitem 1200, 1; + getitem 1199, 100; + set Scorp, 2; close; -done: + +L_Done: mes "[Sandra]"; mes "\"Thank you for all your help!\""; close; -L_N: + +L_No: close; + +L_TooMany: + next; + mes "[Sandra]"; + mes "\"You don't have room for my reward. I'll wait until you do.\""; } diff --git a/npc/001-1_Tulimshar/vincent.txt b/npc/001-1_Tulimshar/vincent.txt index ef17ba18..b0412517 100644 --- a/npc/001-1_Tulimshar/vincent.txt +++ b/npc/001-1_Tulimshar/vincent.txt @@ -1,32 +1,33 @@ // 001-1.gat,135,42,0 script Vincent 113,{ - if(Bugleg == 1) goto L_Reas; if(Bugleg == 2) goto L_Done; + if(Bugleg == 1) goto L_Progress; + set @TEMP, rand(4); - if(@TEMP == 0) goto L_1; - if(@TEMP == 1) goto L_2; - if(@TEMP == 2) goto L_3; - if(@TEMP == 3) goto L_4; + if(@TEMP == 0) goto L_Opening1; + if(@TEMP == 1) goto L_Opening2; + if(@TEMP == 2) goto L_Opening3; + if(@TEMP == 3) goto L_Opening4; -L_1: +L_Opening1: mes "[Vincent]"; mes "\"I just need 30 more [Bug Legs] to finish my action figure!\""; next; goto L_Ask; -L_2: +L_Opening2: mes "[Vincent]"; mes "\"This maggot action figure is awesome! I just need to attach [30 Part A{Bug Leg}]\""; next; goto L_Ask; -L_3: +L_Opening3: mes "[Vincent]"; mes "\"This is a great action figure! A must have! All I need is a few parts...\""; goto L_Ask; -L_4: +L_Opening4: mes "[Vincent]"; mes "\"Can you get me 30 [Bug Legs]? I need them to replace the action figure parts.\""; next; @@ -44,30 +45,30 @@ L_Ask: L_Sure: set Bugleg, 1; set @TEMP,rand(4); - if(@TEMP == 0) goto J_1; - if(@TEMP == 1) goto J_2; - if(@TEMP == 2) goto J_3; - if(@TEMP == 3) goto J_4; + if(@TEMP == 0) goto L_Req1; + if(@TEMP == 1) goto L_Req2; + if(@TEMP == 2) goto L_Req3; + if(@TEMP == 3) goto L_Req4; -J_1: +L_Req1: mes "[Vincent]"; mes "\"Thank you!\""; next; goto L_Wait; -J_2: +L_Req2: mes "[Vincent]"; mes "\"I don't know how to thank you enough!\""; next; goto L_Wait; -J_3: +L_Req3: mes "[Vincent]"; mes "\"I will thank you when I get them!\""; next; goto L_Wait; -J_4: +L_Req4: mes "[Vincent]"; mes "\"I'm sure I will give a small reward. :D\""; next; @@ -78,7 +79,7 @@ L_Wait: mes "\"Now please go get me 30 [Bug Legs]\""; close; -L_Reas: +L_Progress: if(countitem(518) >= 30) goto L_Have; mes "[Vincent]"; mes "\"Please help me collect 30 [Bug Legs]!\""; diff --git a/npc/001-2_Tulimshar/troupe_leader.txt b/npc/001-2_Tulimshar/troupe_leader.txt index 1114de56..d5c8bbfd 100644 --- a/npc/001-2_Tulimshar/troupe_leader.txt +++ b/npc/001-2_Tulimshar/troupe_leader.txt @@ -32,12 +32,19 @@ L_NohMask_Accuse: L_NohMask_Found: mes "[Troupe Leader]"; mes "\"Thank you for finding the mask. You did such a good job, you should keep it.\""; + getinventorylist; + if (@inventorylist_count == 100) goto L_NohMask_TooMany; mes "[1500 experience points]"; getexp 1500, 0; - next; set Inspector, 14; getitem 678, 1; + next; mes "[Troupe Leader]"; mes "\"We don't need it anymore. We're doing different shows here.\""; close; + +L_NohMask_TooMany: + next; + mes "[Troupe Leader]"; + mes "\"Except, you don't seem to have any room for it. I'll hold onto it for you until you do have room.\""; } diff --git a/npc/002-4_Desert_mines/chest.txt b/npc/002-4_Desert_mines/chest.txt index c3e2c188..e76332fd 100644 --- a/npc/002-4_Desert_mines/chest.txt +++ b/npc/002-4_Desert_mines/chest.txt @@ -13,14 +13,17 @@ L_Yes: if(countitem(537) < 3) goto L_Not_Enough; - delitem 537, 3; - getitem 536, 1; + getinventorylist; + if (@inventorylist_count == 100 && countitem(537) > 3) goto L_TooMany; mes "[Chest]"; mes "You opened it and found a short sword!"; + delitem 537, 3; + getitem 536, 1; set ChestQuest, ChestQuest | 1; close; L_Not_Enough: + mes "[Chest]"; mes "It seems that this is not the right key..."; close; @@ -28,4 +31,9 @@ L_Finished: mes "[Chest]"; mes "You already opened this chest."; close; + +L_TooMany: + mes "[Chest]"; + mes "You don't have room for what ever is inside. Maybe you should try again later."; + close; } diff --git a/npc/006-1_Desert_mountains/pachua.txt b/npc/006-1_Desert_mountains/pachua.txt index 15d1610c..af293ff6 100644 --- a/npc/006-1_Desert_mountains/pachua.txt +++ b/npc/006-1_Desert_mountains/pachua.txt @@ -134,11 +134,13 @@ L_leather_patch: next; menu "Here you are.", -, - "OK, I'll be back later.", L_end, + "OK, I'll be back later.", L_End, "That's too expensive!.", L_NoDeal; if (countitem(@SNAKE_SKIN) < 1) goto L_NoSkins; if (zeny < @LEATHER_PATCH_PRICE) goto L_NoMoney; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; set zeny, zeny - @LEATHER_PATCH_PRICE; delitem @SNAKE_SKIN, 1; @@ -189,6 +191,10 @@ L_WearingChaps: next; goto L_Check_Shops; -L_end: +L_End: close; + +L_TooMany: + mes "[Chief Pachua]"; + mes "\"You don't have room for a leather patch. Come back later.\""; } diff --git a/npc/008-1_Hurnscald_outskirts/hinnak.txt b/npc/008-1_Hurnscald_outskirts/hinnak.txt index 27dcd677..ce0af655 100644 --- a/npc/008-1_Hurnscald_outskirts/hinnak.txt +++ b/npc/008-1_Hurnscald_outskirts/hinnak.txt @@ -53,7 +53,7 @@ L_Reward: L_Exchange: mes "[Farmer Hinnak]"; - mes "Have you got the 10 antennae?"; + mes "\"Have you got the 10 antennae?\""; next; if (countitem(614) < 10) goto L_Exchange_Notenough; @@ -64,6 +64,9 @@ L_Exchange: close; L_Exchange_Exchange: + if (countitem(614) < 10) goto L_Exchange_Notenough; + getinventorylist; + if (@inventorylist_count == 100) goto L_Exchange_TooMany; delitem 614, 10; getitem 623, 1; set QUEST_Scythe_state, 2; @@ -72,13 +75,18 @@ L_Exchange_Exchange: close; L_Exchange_Notenough: - menu - "Not yet, but I am working on it.", -; + mes "[Farmer Hinnak]"; + mes "\"It doesn't look like you do.\""; + close; + +L_Exchange_TooMany: + mes "[Farmer Hinnak]"; + mes "\"Looks like you don't have room for this. Come back later to receive your reward. Hold on to the antennea until then.\""; close; L_ThanksAgain: mes "[Farmer Hinnak]"; - mes "Thanks again for helping me with the pinkies."; + mes "\"Thanks again for helping me with the pinkies.\""; close; L_NohMask: @@ -97,4 +105,4 @@ L_NohMask_Satchel: mes "[Farmer Hinnak]"; mes "\"Yes, I saw someone with a large sack on their back go to the minning camp.\""; close; -} \ No newline at end of file +} diff --git a/npc/009-1_Hurnscald/jack.txt b/npc/009-1_Hurnscald/jack.txt index b61dca2f..84dc15d9 100644 --- a/npc/009-1_Hurnscald/jack.txt +++ b/npc/009-1_Hurnscald/jack.txt @@ -110,7 +110,7 @@ L_Bow_state_2: if (@Q_Forestbow > 3) goto L_Bow_state_4; mes "\"Good luck hunting those tree monsters - you will need it.\""; - if (Inspector == 1) goto L_NohMask_Ask; + if (Inspector == 1) callsub S_NohMask_Ask; close; L_Bow_state_4: @@ -183,6 +183,8 @@ L_Shield_state_2: if (countitem(@RAWLOG) < @RAWLOGS_AMOUNT) goto L_Not_enough_logs; if (zeny < @SHIELD_COST) goto L_Not_enough_money; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; delitem @RAWLOG, @RAWLOGS_AMOUNT; set zeny, zeny - @SHIELD_COST; @@ -223,6 +225,11 @@ L_Not_enough_money: mes "\"You don't have enough gold, I'm afraid. I need " + @SHIELD_COST + " GP to finish your shield.\""; close; +L_TooMany: + mes "[Jack Lumber]"; + mes "\"You don't have enough room for the shield. Come back when you do.\""; + close; + L_Shield_state_3: mes "[Jack Lumber]"; mes "\"I hope that my shield will serve you well!\""; @@ -234,7 +241,7 @@ L_Shield_state_3: "Have you seen anything that might be connected to the recent robberies in town?", L_NohMask_Answer; close; -L_NohMask_Ask: +S_NohMask_Ask: next; menu "I'll keep that in mind.", -, diff --git a/npc/009-2_Hurnscald/alan.txt b/npc/009-2_Hurnscald/alan.txt index 0235ad33..6d8a1770 100644 --- a/npc/009-2_Hurnscald/alan.txt +++ b/npc/009-2_Hurnscald/alan.txt @@ -174,6 +174,8 @@ L_State_4: L_State_4_pay: if (zeny < 10000) goto L_State_4_nocash; + getinventorylist; + if (@inventorylist_count == 100) goto L_State_4_TooMany; set zeny, zeny - 10000; getitem 545, 1; set @Q_status, 5; @@ -187,6 +189,11 @@ L_State_4_nocash: mes "\"Seems like you are out of cash.\""; close; +L_State_4_TooMany: + mes "[Alan]"; + mes "\"Seems like you don't have room for this bow. Come back later.\""; + close; + L_State_5: mes "[Alan]"; mes "\"I hope you are statisfied with your forest bow. It is one of my best works.\""; diff --git a/npc/009-2_Hurnscald/kfahr.txt b/npc/009-2_Hurnscald/kfahr.txt index cd5bc3b7..5d847ea0 100644 --- a/npc/009-2_Hurnscald/kfahr.txt +++ b/npc/009-2_Hurnscald/kfahr.txt @@ -810,12 +810,19 @@ L_knife_quest_completecheck: mes "I had the nomads make me a few of them, and I hardly use them nowadays, so I think I can part with this one."; next; + if (countitem(@BLACK_STINGER) < @BLACK_STINGERS_NR) + goto L_knife_quest_missing_stingers_2; + + if (countitem(@MUSHROOM) < @MUSHROOMS_NR) + goto L_knife_quest_missing_mushrooms_2; + getinventorylist; + if (@inventorylist_count == 100) goto L_Knife_TooMany; + mes "[Kfahr the Warrior]"; mes "He hands you the knife."; mes "\"Oh, and I think I'll keep those in return; I know someone who will trade them for antidote potions.\""; mes "He pockets the stingers and mushrooms."; mes "[" + @KNIFE_QUEST_XP + " experience points]"; - next; set @Q_status, @QS_KNIFE_QUEST_DONE; callsub L_Update_Var; @@ -828,6 +835,11 @@ L_knife_quest_completecheck: goto L_main_menu; +L_Knife_TooMany: + mes "[Kfahr the Warrior]"; + mes "\"You don't have room for this. Come back when you do.\""; + close; + L_knife_quest_missing_stingers: mes "[Kfahr the Warrior]"; mes "\"No, no... I said " + @BLACK_STINGERS_NR + " black scorpion stingers."; @@ -838,6 +850,16 @@ L_knife_quest_missing_stingers: next; close; +L_knife_quest_missing_stingers_2: + mes "[Kfahr the Warrior]"; + mes "\"You just had " + @BLACK_STINGERS_NR + " black scorpion stingers. What happened to them?"; + if (countitem(@BLACK_STINGER)) + mes "You will need " + (@BLACK_STINGERS_NR - (countitem (@BLACK_STINGER))) + " more of those.\""; + if (countitem(@BLACK_STINGER) == 0) + mes "You didn't bring even a single one!\""; + next; + close; + L_knife_quest_missing_mushrooms: mes "[Kfahr the Warrior]"; mes "\"No, no... I said " + @MUSHROOMS_NR + " small mushrooms."; @@ -848,6 +870,16 @@ L_knife_quest_missing_mushrooms: next; close; +L_knife_quest_missing_mushrooms_2: + mes "[Kfahr the Warrior]"; + mes "\"You just had " + @MUSHROOMS_NR + " small mushrooms. What happened to them?"; + if (countitem(@MUSHROOM)) + mes "You will need " + (@MUSHROOMS_NR - (countitem (@MUSHROOM))) + " more of those.\""; + if (countitem(@MUSHROOM) == 0) + mes "You didn't bring me even a single little mushroom!\""; + next; + close; + L_stinger_quest_check: mes "[Kfahr the Warrior]"; mes "Kfahr grins at you."; @@ -863,6 +895,8 @@ L_stinger_quest_check: L_snakeskins_completecheck: if (countitem(@SNAKE_SKIN) < @SNAKE_SKINS_NR) goto L_snakeskins_missing; + getinventorylist; + if (@inventorylist_count == 100) goto L_SnakeSkins_TooMany; delitem @SNAKE_SKIN, @SNAKE_SKINS_NR; getitem @GOLDEN_STINGER, 1; @@ -890,6 +924,10 @@ L_snakeskins_missing: next; close; +L_SnakeSkins_TooMany: + mes "[Kfahr the Warrior]"; + mes "\"YOu don't have room for this. Come back when you do.\""; + close; L_give_beer: if (countitem(@BEER) < 1) diff --git a/npc/009-2_Hurnscald/nicholas.txt b/npc/009-2_Hurnscald/nicholas.txt index 30d48594..3962bee0 100644 --- a/npc/009-2_Hurnscald/nicholas.txt +++ b/npc/009-2_Hurnscald/nicholas.txt @@ -189,13 +189,17 @@ L_NoMoney: L_YesKnight: if (zeny < 10000) goto L_NoMoney; - set zeny, zeny-10000; - delitem @IRON_ORE,5; - getitem 637,1; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; + set zeny, zeny - 10000; + delitem @IRON_ORE, 5; + getitem 637, 1; goto L_Done; L_YesCrusade: if (zeny < 10000) goto L_NoMoney; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; set zeny, zeny-10000; delitem @IRON_ORE,10; getitem 639,1; @@ -203,6 +207,8 @@ L_YesCrusade: L_YesWarlord: if (zeny < 10000) goto L_NoMoney; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; set zeny, zeny-10000; delitem @IRON_ORE,15; getitem 636,1; @@ -401,4 +407,8 @@ L_Update_Var: | (@Q_SHIELD_status << @Q_SHIELD_SHIFT) | (@Q_SETZER_status << @Q_SETZER_SHIFT)); return; + +L_TooMany: + mes "[Nicholas]"; + mes "\"You don't have room for it. Come back later when you do.\""; } diff --git a/npc/009-2_Hurnscald/waitress.txt b/npc/009-2_Hurnscald/waitress.txt index cf2778fd..bcf2f434 100644 --- a/npc/009-2_Hurnscald/waitress.txt +++ b/npc/009-2_Hurnscald/waitress.txt @@ -2,6 +2,10 @@ 009-2.gat,60,52,0 script Melinda 140,{ if (zeny < 180) goto L_NoMoney; + getinventorylist; + set @beerCount, countitem(539); + if (@inventorylist_count == 100 && beerCount < 0) goto L_TooMany; + mes "[Melinda]"; mes "\"Hi sweety! Want a fresh beer for 170gp?\""; next; @@ -46,6 +50,12 @@ L_No: close; L_NoMoney: + mes "[Melinda]"; mes "\"You look broke. Don't think that you can dine and dash here!\""; close; + +L_TooMany: + mes "[Melinda]"; + mes "\"You don't have room for a beer!\""; + close; } diff --git a/npc/010-2_Dimonds_Cove/loratay.txt b/npc/010-2_Dimonds_Cove/loratay.txt index 559ba578..77336fb6 100644 --- a/npc/010-2_Dimonds_Cove/loratay.txt +++ b/npc/010-2_Dimonds_Cove/loratay.txt @@ -429,6 +429,8 @@ L_tanktop_menu: L_tanktop_short: if (countitem (@COTTON) < 5) goto L_tanktop_insufficient_cloth; if (zeny < 1000) goto L_tanktop_insufficient_zeny; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@COTTON) > 5) goto L_TooMany; set zeny, zeny - 1000; delitem @COTTON, 5; getitem 689, 1; @@ -443,6 +445,8 @@ L_tanktop_short: L_tanktop_long: if (countitem (@COTTON) < 6) goto L_tanktop_insufficient_cloth; if (zeny < 1000) goto L_tanktop_insufficient_zeny; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@COTTON) > 6) goto L_TooMany; set zeny, zeny - 1000; delitem @COTTON, 6; getitem 688, 1; @@ -519,6 +523,9 @@ L_robe_menu: if (zeny < @ROBE_ZENY) goto L_robe_missing_zeny; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@SILK_COCOON) > @ROBE_COCOONS_NR) goto L_TooMany; + set zeny, zeny - @ROBE_ZENY; delitem @SILK_COCOON, @ROBE_COCOONS_NR; getitem @SILK_ROBE, 1; @@ -688,5 +695,9 @@ L_SUB_choice_join: if (@menu >= @c) set @item, 0; return; -} +L_TooMany: + mes "[Lora Tay the Seamstress]"; + mes "\"You don't have anywhere to put this. Come back when you have more room.\""; + close; +} diff --git a/npc/011-1_Woodland/alchemist.txt b/npc/011-1_Woodland/alchemist.txt index 08ba6e41..fa088345 100644 --- a/npc/011-1_Woodland/alchemist.txt +++ b/npc/011-1_Woodland/alchemist.txt @@ -107,6 +107,8 @@ L_main_menu: L_iron: if(countitem(566) < 20) goto L_no_iron; + getinventorylist; + if (@inventorylist_count == 100 && countitem(566) > 20) goto L_TooMany; mes "[Rauk the Alchemist]"; mes "\"Great! You brought me exactly what I need!"; mes "Here is your Iron potion.\""; @@ -116,6 +118,8 @@ L_iron: L_concentration: if(countitem(565) < 20) goto L_no_concentration; + getinventorylist; + if (@inventorylist_count == 100 && countitem(565) > 20) goto L_TooMany; mes "[Rauk the Alchemist]"; mes "\"Great! You brought me exactly what I need!"; mes "Here is your Concentration potion.\""; @@ -259,6 +263,8 @@ L_ok: L_red: if (countitem(@RED) < 10) goto L_red_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@RED) > 10) goto L_TooMany; delitem @RED, 10; getitem 690, 1; goto L_ok; @@ -277,6 +283,8 @@ L_d_red: L_yellow: if (countitem(@YELLOW) < 10) goto L_yellow_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@YELLOW) > 10) goto L_TooMany; delitem @YELLOW, 10; getitem 693, 1; goto L_ok; @@ -295,6 +303,8 @@ L_d_yellow: L_light_blue: if (countitem(@BLUE) < 10) goto L_light_blue_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@BLUE) > 10) goto L_TooMany; delitem @BLUE, 10; getitem 694, 1; goto L_ok; @@ -314,6 +324,8 @@ L_d_light_blue: L_green: if (countitem(@BLUE) < 20) goto L_green_fail; if (countitem(@YELLOW) < 20) goto L_green_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@BLUE) > 20 && countitem(@YELLOW) > 20) goto L_TooMany; if (zeny < 1000) goto L_green_fail; delitem @BLUE, 20; delitem @YELLOW, 20; @@ -342,6 +354,8 @@ L_orange: if (countitem(@RED) < 10) goto L_orange_fail; if (countitem(@YELLOW) < 10) goto L_orange_fail; if (countitem(@ORE) < 2) goto L_orange_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@RED) > 10 && countitem(@YELLOW) > 10 && countitem(@ORE) > 2) goto L_TooMany; if (zeny < 1000) goto L_orange_fail; delitem @RED, 10; delitem @YELLOW, 10; @@ -367,6 +381,8 @@ L_pink: if (countitem(@RED) < 10) goto L_pink_fail; if (countitem(@PETAL) < 6) goto L_pink_fail; if (zeny < 1000) goto L_pink_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@RED) > 10 && countitem(@PETAL) > 6) goto L_TooMany; delitem @RED, 10; delitem @PETAL, 6; set zeny, zeny - 1000; @@ -391,6 +407,8 @@ L_dark_blue: if (countitem(@MAUVE) < 50) goto L_dark_blue_fail; if (countitem(@PEARL) < 1) goto L_dark_blue_fail; if (zeny < 10000) goto L_dark_blue_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@BLUE) > 100 && countitem(@MAUVE) > 20 && countitem(@PEARL) > 2) goto L_TooMany; delitem @BLUE, 100; delitem @MAUVE, 50; delitem @PEARL, 1; @@ -417,6 +435,8 @@ L_purple: if (countitem(@RED) < 100) goto L_purple_fail; if (countitem(@MAUVE) < 20) goto L_purple_fail; if (countitem(@PEARL) < 1) goto L_purple_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@BLUE) > 100 && countitem(@RED) > 100 && countitem(@MAUVE) > 20 && countitem(@PEARL) > 2) goto L_TooMany; if (zeny < 40000) goto L_purple_fail; delitem @BLUE, 100; delitem @RED, 100; @@ -448,6 +468,8 @@ L_black: if (countitem(@RED) < 40) goto L_black_fail; if (countitem(@YELLOW) < 40) goto L_black_fail; if (countitem(@MAUVE) < 40) goto L_black_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@BLUE) > 40 && countitem(@RED) > 40 && countitem(@YELLOW) > 40 && countitem(@MAUVE) > 40) goto L_TooMany; if (zeny < 20000) goto L_black_fail; delitem @BLUE, 40; delitem @RED, 40; @@ -481,6 +503,8 @@ L_dark_green: if (countitem(@MAUVE) < 10) goto L_dark_green_fail; if (countitem(@MAGGOTSLIME) < 1) goto L_dark_green_fail; if (zeny < 1000) goto L_dark_green_fail; + getinventorylist; + if (@inventorylist_count == 100 && countitem(@BLUE) > 10 && countitem(@YELLOW) > 10 && countitem(@MAUVE) > 10 && countitem(@MAGGOTSLIME) > 1) goto L_TooMany; delitem @BLUE, 10; delitem @MAUVE, 10; delitem @YELLOW, 10; @@ -714,4 +738,8 @@ L_Update_Var: (QUEST_Forestbow_state & ~(@Q_MASK) | (@Q_status << @Q_SHIFT)); return; + +L_TooMany: + mes "[Rauk the Alchemist]"; + mes "You don't have room for this."; } diff --git a/npc/013-2_Magic_house/apprentice.txt b/npc/013-2_Magic_house/apprentice.txt index ce3db4ad..abb96e6b 100644 --- a/npc/013-2_Magic_house/apprentice.txt +++ b/npc/013-2_Magic_house/apprentice.txt @@ -1,58 +1,92 @@ 013-2.gat,25,37,0 script Fabius 115,{ - mes "\"Hey! Wanna have a drink or something? High quality, low cost. A poor fella like me needs a bit of extra cash, ye know.\""; - next; - menu - "Yes please!",yes, - "No thanks.",no, - "No way, I thought it was for free!",not_free; -yes: - mes "\"So what would ya like, then?\""; - next; - menu - "A beer",beer, - "A milk",milk; -no: - mes "\"Suit yourself.\""; - next; - goto at_end; -not_free: - mes "\"Oh, you stupid git! ... But hey, let me tell ya something...\""; - next; - mes "\"There's notes flying around in the room up there. Did ya try reading some?\""; - close; -beer: - mes "\"That'll be 175 GP.\""; - next; - menu "Here you are",beer_yes, - "No thanks",beer_no; -milk: - mes "\"That'll be 300 GP.\""; - next; - menu "Here you are",milk_yes, - "No thanks",milk_no; -beer_yes: - if (zeny < 175) goto low_money; - getitem 539, 1; - set zeny, zeny - 175; - goto at_end; -beer_no: - mes "\"No beer, no civilization!\""; - next; - goto at_end; -milk_yes: - if (zeny < 300) goto low_money; - getitem 527, 1; - set zeny, zeny - 300; - goto at_end; -milk_no: - mes "\"Oh alright. Milk is a deadly poison anyway...\""; - next; - goto at_end; -low_money: - mes "\"Aw, you don't have enough gold on you!\""; - next; -at_end: - mes "\"By the way, have you seen those flying notes and the mirror in the room next door? They're WAY COOL! Try reading some of the notes!\""; - close; -} + mes "[Fabius]"; + mes "\"Hey! Wanna have a drink or something? High quality, low cost. A poor fella like me needs a bit of extra cash, ye know.\""; + next; + menu + "Yes please!", L_Yes, + "No thanks.", L_No, + "No way, I thought it was for free!", L_Not_Free; + +L_Yes: + mes "[Fabius]"; + mes "\"So what would ya like, then?\""; + next; + menu + "A beer", L_Beer, + "A milk", L_Milk, + "Nevermind", -; + +L_No: + mes "[Fabius]"; + mes "\"Suit yourself.\""; + next; + goto L_Finish; + +L_Not_Free: + mes "[Fabius]"; + mes "\"Oh, you stupid git! ... But hey, let me tell ya something...\""; + next; + mes "[Fabius]"; + mes "\"There's notes flying around in the room up there. Did ya try reading some?\""; + close; + +L_Beer: + mes "[Fabius]"; + mes "\"That'll be 175 GP.\""; + next; + menu + "Here you are", L_Beer_yes, + "No thanks", L_Beer_no; + +L_Beer_yes: + if (zeny < 175) goto L_Low_money; + getinventorylist; + if (@inventorylist_count == 100 && countitem(539) == 0) goto L_TooMany; + + getitem 539, 1; + set zeny, zeny - 175; + goto L_Finish; +L_Beer_no: + mes "[Fabius]"; + mes "\"No beer, no civilization!\""; + next; + goto L_Finish; + +L_Milk: + mes "[Fabius]"; + mes "\"That'll be 300 GP.\""; + next; + menu + "Here you are", L_Milk_yes, + "No thanks", L_Milk_no; + +L_Milk_yes: + if (zeny < 300) goto L_Low_money; + getinventorylist; + if (@inventorylist_count == 100 && countitem(527) == 0) goto L_TooMany; + getitem 527, 1; + set zeny, zeny - 300; + goto L_Finish; + +L_Milk_no: + mes "[Fabius]"; + mes "\"Oh alright. Milk is a deadly poison anyway...\""; + next; + goto L_Finish; + +L_Low_money: + mes "[Fabius]"; + mes "\"Aw, you don't have enough gold on you!\""; + next; + goto L_Finish; + +L_Finish: + mes "[Fabius]"; + mes "\"By the way, have you seen those flying notes and the mirror in the room next door? They're WAY COOL! Try reading some of the notes!\""; + close; + +L_TooMany: + mes "[Fabius]"; + mes "\"You don't have room for it.\""; +} diff --git a/npc/013-3_Cave/mask_chest.txt b/npc/013-3_Cave/mask_chest.txt index dd0bc949..0da8bab9 100644 --- a/npc/013-3_Cave/mask_chest.txt +++ b/npc/013-3_Cave/mask_chest.txt @@ -30,30 +30,49 @@ if (countitem(541) == 0) goto L_No_water; + getinventorylist; + if (@inventorylist_count == 100 && countitem(505) > 1 && countitem(518) > 1 && countitem(718) > 1 + && countitem(566) > 1 && countitem(565) > 1 && countitem(700) > 1 + && countitem(613) > 1 && countitem(569) > 1 && countitem(614) > 1 + && countitem(631) > 1 && countitem(640) > 1 && countitem(507) > 1 + && countitem(517) > 1 && countitem(709) > 1 && countitem(710) > 1 + && countitem(711) > 1 && countitem(712) > 1 && countitem(713) > 1 + && countitem(680) > 1 && countitem(681) > 1 && countitem(682) > 1 + && countitem(683) > 1 && countitem(537) > 1 && countitem(612) > 1 + && countitem(701) > 1 && countitem(541) > 1) goto L_TooMany; + delitem 505, 1; delitem 518, 1; delitem 718, 1; + delitem 566, 1; delitem 565, 1; delitem 700, 1; + delitem 613, 1; delitem 569, 1; delitem 614, 1; + delitem 631, 1; delitem 640, 1; delitem 507, 1; + delitem 517, 1; delitem 709, 1; delitem 710, 1; + delitem 711, 1; delitem 712, 1; delitem 713, 1; + delitem 680, 1; delitem 681, 1; delitem 682, 1; + delitem 683, 1; delitem 537, 1; delitem 612, 1; + delitem 701, 1; delitem 541, 1; @@ -148,4 +167,9 @@ L_Finished: mes "[Chest]"; mes "You already opened this chest."; close; + +L_TooMany: + mes "[Chest]"; + mes "You don't have room for what ever is inside. Maybe you should try again later."; + close; } diff --git a/npc/013-3_Cave/sword_chest.txt b/npc/013-3_Cave/sword_chest.txt index 1cac4879..c570bfcd 100644 --- a/npc/013-3_Cave/sword_chest.txt +++ b/npc/013-3_Cave/sword_chest.txt @@ -13,6 +13,8 @@ L_Yes: if(countitem(537) < 10) goto L_Not_Enough; + getinventorylist; + if (@inventorylist_count == 100 && countitem(537) > 10) goto L_TooMany; delitem 537, 10; getitem 536, 1; mes "[Chest]"; @@ -28,4 +30,9 @@ L_Finished: mes "[Chest]"; mes "You already opened this chest."; close; + +L_TooMany: + mes "[Chest]"; + mes "You don't have room for what ever is inside. Maybe you should try again later."; + close; } diff --git a/npc/014-1_Woodland/wedding-officiator.txt b/npc/014-1_Woodland/wedding-officiator.txt index 7a6e606b..26f2fc56 100644 --- a/npc/014-1_Woodland/wedding-officiator.txt +++ b/npc/014-1_Woodland/wedding-officiator.txt @@ -95,6 +95,8 @@ L_get_married: goto L_too_poor; if (BaseLevel < @WEDDING_MIN_LEVEL) goto L_too_young; + getinventorylist; + if (@inventorylist_count > 98) goto L_No_Room_For_Rings; set zeny, zeny - @WEDDING_FEE; getitem 702, 1; @@ -243,4 +245,8 @@ L_do_divorce: mes "\"You are divorced now. Thank you for your business.\""; next; close; + +L_No_Room_For_Rings: + mes "[Wedding Officiator]"; + mes "\"You don't have room to carry the rings.\""; } diff --git a/npc/019-1_Snow_field/santa_helper.txt b/npc/019-1_Snow_field/santa_helper.txt index 72b00acf..a8a86af6 100644 --- a/npc/019-1_Snow_field/santa_helper.txt +++ b/npc/019-1_Snow_field/santa_helper.txt @@ -1,11 +1,12 @@ 019-1.gat,74,75,0 script Santa's Helper 105,{ if (ChristmasQuest2 == 1) goto L_Done; mes "[Santa's Helper]"; - mes "Hello my young friend."; - mes "Would you like to help me?"; + mes "\"Hello my young friend."; + mes "Would you like to help me?\""; next; - mes "Those monsters stole Santa's presents."; - mes "If you help me, I'll give you something very nice"; + mes "[Santa's Helper]"; + mes "\"Those monsters stole Santa's presents."; + mes "If you help me, I'll give you something very nice\""; next; L_M: @@ -16,12 +17,15 @@ L_M: L_Y: mes "[Santa's Helper]"; - mes "Hmm, let me check what you have."; + mes "\"Hmm, let me check what you have.\""; next; - if(countitem(515)<25) goto L_NoItem; - if(countitem(516)<20) goto L_NoItem; - if(countitem(538)<5) goto L_NoItem; - mes "Great! Here is something for you"; + if (countitem(515) < 25) goto L_NoItem; + if (countitem(516) < 20) goto L_NoItem; + if (countitem(538) < 5) goto L_NoItem; + getinventorylist; + if (@inventorylist_count > 99) goto L_TooMany; + mes "[Santa's Helper]"; + mes "\"Great! Here is something for you\""; delitem 515, 25; delitem 516, 20; delitem 538, 5; @@ -31,27 +35,31 @@ L_Y: L_R: mes "[Santa's Helper]"; - mes "I need:"; + mes "\"I need:"; mes "25 purple present boxes"; mes "20 blue present boxes"; - mes "5 green present boxes"; + mes "5 green present boxes\""; next; goto L_M; L_N: mes "[Santa's Helper]"; - mes "Enjoy your holidays and I wish you an happy Christmas!"; + mes "\"Enjoy your holidays and I wish you an happy Christmas!\""; close; L_NoItem: mes "[Santa's Helper]"; - mes "You dont seem to have enough presents."; + mes "\"You dont seem to have enough presents.\""; close; L_Done: mes "[Santa's Helper]"; - mes "All the children got their Christmas presents."; - mes "Thank you for your help."; + mes "\"All the children got their Christmas presents."; + mes "Thank you for your help.\""; close; -} +L_TooMany: + mes "[Santa's Helper]"; + mes "\"It doesn't look like you have room for this. Come back later.\""; + close; +} diff --git a/npc/019-1_Snow_field/snowman.txt b/npc/019-1_Snow_field/snowman.txt index 1f56e4f2..ca8c1f09 100644 --- a/npc/019-1_Snow_field/snowman.txt +++ b/npc/019-1_Snow_field/snowman.txt @@ -24,6 +24,8 @@ L_Sure: if(countitem(510) < 15) goto L_NoItem; if(countitem(509) < 10) goto L_NoItem; if(countitem(502) < 5) goto L_NoItem; + getinventorylist; + if (@inventorylist_count > 99) goto L_TooMany; delitem 510, 15; delitem 509, 10; delitem 502, 5; @@ -51,4 +53,9 @@ L_Done: mes "[Snowman]"; mes "\"Thank you for help!\""; close; + +L_TooMany: + mes "[Snowman]"; + mes "\"It doesn't look like you have room for this. Come back later.\""; + close; } diff --git a/npc/020-1_Nivalis/monsters.txt b/npc/020-1_Nivalis/monsters.txt deleted file mode 100644 index fc33da8c..00000000 --- a/npc/020-1_Nivalis/monsters.txt +++ /dev/null @@ -1,14 +0,0 @@ -// Map: 020-1 -// This is Snow Town. -// - -020-1.gat,56,63,1,1 monster Maggot 1002,2,0,0,Mob11::OnMaggot - -020-1.gat,0,0,0 script Mob11 -1,{ -OnMaggot: - set @mobID, 1002; - callfunc "MobPoints"; - break; - - end; -} diff --git a/npc/020-2_Nivalis/furquest.txt b/npc/020-2_Nivalis/furquest.txt index 4d67f8c4..5c2c00df 100644 --- a/npc/020-2_Nivalis/furquest.txt +++ b/npc/020-2_Nivalis/furquest.txt @@ -222,6 +222,8 @@ L_State_5: L_State_5_pay: if (zeny < 15000) goto L_State_5_nocash; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; set zeny, zeny-15000; getitem 563, 1; set QUEST_WG_state, 6; @@ -326,4 +328,8 @@ L_State_13: mes "\"You are so glamourous, my dear friend!"; mes "I have done a very good job on your clothes!\""; close; + +L_TooMany: + mes "[Agostine, The Legendary Tailor]"; + mes "\"You don't have anywhere to put them. Come back when you do."; } -- cgit v1.2.3-70-g09d2 From 44feb664401d24a0cd4cfb380d22d5ee6c512fd2 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Tue, 23 Dec 2008 18:47:31 +0000 Subject: Fix to previous. --- npc/019-1_Snow_field/_import.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'npc') diff --git a/npc/019-1_Snow_field/_import.txt b/npc/019-1_Snow_field/_import.txt index e389a836..548454f4 100644 --- a/npc/019-1_Snow_field/_import.txt +++ b/npc/019-1_Snow_field/_import.txt @@ -5,3 +5,4 @@ npc: npc/019-1_Snow_field/monsters.txt npc: npc/019-1_Snow_field/santa_helper.txt npc: npc/019-1_Snow_field/snowman.txt npc: npc/019-1_Snow_field/taro.txt +npc: npc/019-1_Snow_field/temp -- cgit v1.2.3-70-g09d2 From b9b23fe20e0563523e83a224d1e68886512bb783 Mon Sep 17 00:00:00 2001 From: Fate Date: Wed, 24 Dec 2008 10:01:01 -0700 Subject: Minor fixes and extensions to inventory limit checks --- npc/009-2_Hurnscald/kfahr.txt | 2 +- npc/009-2_Hurnscald/nicholas.txt | 4 ++++ npc/011-1_Woodland/alchemist.txt | 4 ++-- npc/019-1_Snow_field/_import.txt | 1 - npc/020-1_Nivalis/_import.txt | 1 - npc/020-2_Nivalis/furquest.txt | 2 ++ 6 files changed, 9 insertions(+), 5 deletions(-) (limited to 'npc') diff --git a/npc/009-2_Hurnscald/kfahr.txt b/npc/009-2_Hurnscald/kfahr.txt index 5d847ea0..f24d2071 100644 --- a/npc/009-2_Hurnscald/kfahr.txt +++ b/npc/009-2_Hurnscald/kfahr.txt @@ -831,7 +831,7 @@ L_knife_quest_completecheck: delitem @MUSHROOM, @MUSHROOMS_NR; getexp @KNIFE_QUEST_XP, 0; getitem @BONE_KNIFE, 1; - + next; goto L_main_menu; diff --git a/npc/009-2_Hurnscald/nicholas.txt b/npc/009-2_Hurnscald/nicholas.txt index 3962bee0..c7e1728c 100644 --- a/npc/009-2_Hurnscald/nicholas.txt +++ b/npc/009-2_Hurnscald/nicholas.txt @@ -244,6 +244,8 @@ L_YesShield: if (countitem(@INFANTRY) < 2) goto L_ShieldNoInfantry; if (countitem(@IRON_ORE) < 10) goto L_ShieldNoOre; if (countitem(@LEATHER_PATCH) < 1) goto L_ShieldNoLeatherPatch; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; mes "[Nicholas]"; mes "\"Yes, it looks as if you have all that is needed!\""; @@ -332,6 +334,8 @@ L_SetzerQuest: if (countitem(@IRON_ORE) < 5) goto L_SetzerNoOre; if (countitem(@MONSTER_OIL) < 1) goto L_SetzerNoMonsterOil; if (countitem(@SHORT_SWORD) < 1) goto L_SetzerNoSword; + getinventorylist; + if ((@inventorylist_count == 100) && (countitem(@MONSTER_OIL) > 1)) goto L_TooMany; mes "[Nicholas]"; mes "Nicholas takes the items, heats up your sword and pounds it with a heavy hammer. Before your eyes it turns thinner and flatter. Finally he pours the monster oil over it, heats it up again and douses it in water."; diff --git a/npc/011-1_Woodland/alchemist.txt b/npc/011-1_Woodland/alchemist.txt index fa088345..6329a5d6 100644 --- a/npc/011-1_Woodland/alchemist.txt +++ b/npc/011-1_Woodland/alchemist.txt @@ -408,7 +408,7 @@ L_dark_blue: if (countitem(@PEARL) < 1) goto L_dark_blue_fail; if (zeny < 10000) goto L_dark_blue_fail; getinventorylist; - if (@inventorylist_count == 100 && countitem(@BLUE) > 100 && countitem(@MAUVE) > 20 && countitem(@PEARL) > 2) goto L_TooMany; + if (@inventorylist_count == 100 && countitem(@BLUE) > 100 && countitem(@MAUVE) > 50 && countitem(@PEARL) > 1) goto L_TooMany; delitem @BLUE, 100; delitem @MAUVE, 50; delitem @PEARL, 1; @@ -436,7 +436,7 @@ L_purple: if (countitem(@MAUVE) < 20) goto L_purple_fail; if (countitem(@PEARL) < 1) goto L_purple_fail; getinventorylist; - if (@inventorylist_count == 100 && countitem(@BLUE) > 100 && countitem(@RED) > 100 && countitem(@MAUVE) > 20 && countitem(@PEARL) > 2) goto L_TooMany; + if (@inventorylist_count == 100 && countitem(@BLUE) > 100 && countitem(@RED) > 100 && countitem(@MAUVE) > 20 && countitem(@PEARL) > 1) goto L_TooMany; if (zeny < 40000) goto L_purple_fail; delitem @BLUE, 100; delitem @RED, 100; diff --git a/npc/019-1_Snow_field/_import.txt b/npc/019-1_Snow_field/_import.txt index 548454f4..e389a836 100644 --- a/npc/019-1_Snow_field/_import.txt +++ b/npc/019-1_Snow_field/_import.txt @@ -5,4 +5,3 @@ npc: npc/019-1_Snow_field/monsters.txt npc: npc/019-1_Snow_field/santa_helper.txt npc: npc/019-1_Snow_field/snowman.txt npc: npc/019-1_Snow_field/taro.txt -npc: npc/019-1_Snow_field/temp diff --git a/npc/020-1_Nivalis/_import.txt b/npc/020-1_Nivalis/_import.txt index 440060d8..0e18f3ac 100644 --- a/npc/020-1_Nivalis/_import.txt +++ b/npc/020-1_Nivalis/_import.txt @@ -2,7 +2,6 @@ map: 020-1.gat npc: npc/020-1_Nivalis/_mobs.txt npc: npc/020-1_Nivalis/_warps.txt npc: npc/020-1_Nivalis/amrak.txt -npc: npc/020-1_Nivalis/monsters.txt npc: npc/020-1_Nivalis/sexchanger.txt npc: npc/020-1_Nivalis/soul-menhir.txt npc: npc/020-1_Nivalis/startrek.txt diff --git a/npc/020-2_Nivalis/furquest.txt b/npc/020-2_Nivalis/furquest.txt index 5c2c00df..31538371 100644 --- a/npc/020-2_Nivalis/furquest.txt +++ b/npc/020-2_Nivalis/furquest.txt @@ -309,6 +309,8 @@ L_State_12: L_State_12_pay: if (zeny < 15000) goto L_State_12_missing; if (countitem(528) < 1) goto L_State_12_missing; + getinventorylist; + if (@inventorylist_count == 100) goto L_TooMany; set zeny, zeny-15000; delitem 528, 1; getitem 655, 1; -- cgit v1.2.3-70-g09d2 From e896b785935c661319ade424f473f4442e1878eb Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Wed, 24 Dec 2008 10:15:56 +0000 Subject: Remove unneeded inventory checks and add fix one --- npc/006-1_Desert_mountains/pachua.txt | 2 +- npc/009-2_Hurnscald/nicholas.txt | 6 ++---- npc/020-2_Nivalis/furquest.txt | 3 +-- 3 files changed, 4 insertions(+), 7 deletions(-) (limited to 'npc') diff --git a/npc/006-1_Desert_mountains/pachua.txt b/npc/006-1_Desert_mountains/pachua.txt index af293ff6..51c2d3b2 100644 --- a/npc/006-1_Desert_mountains/pachua.txt +++ b/npc/006-1_Desert_mountains/pachua.txt @@ -140,7 +140,7 @@ L_leather_patch: if (countitem(@SNAKE_SKIN) < 1) goto L_NoSkins; if (zeny < @LEATHER_PATCH_PRICE) goto L_NoMoney; getinventorylist; - if (@inventorylist_count == 100) goto L_TooMany; + if (@inventorylist_count == 100 && countitem(@SNAKE_SKIN) > 1) goto L_TooMany; set zeny, zeny - @LEATHER_PATCH_PRICE; delitem @SNAKE_SKIN, 1; diff --git a/npc/009-2_Hurnscald/nicholas.txt b/npc/009-2_Hurnscald/nicholas.txt index c7e1728c..349593db 100644 --- a/npc/009-2_Hurnscald/nicholas.txt +++ b/npc/009-2_Hurnscald/nicholas.txt @@ -244,8 +244,7 @@ L_YesShield: if (countitem(@INFANTRY) < 2) goto L_ShieldNoInfantry; if (countitem(@IRON_ORE) < 10) goto L_ShieldNoOre; if (countitem(@LEATHER_PATCH) < 1) goto L_ShieldNoLeatherPatch; - getinventorylist; - if (@inventorylist_count == 100) goto L_TooMany; + // No inventory check needed, as infantry helms are removed, opening two slots mes "[Nicholas]"; mes "\"Yes, it looks as if you have all that is needed!\""; @@ -334,8 +333,7 @@ L_SetzerQuest: if (countitem(@IRON_ORE) < 5) goto L_SetzerNoOre; if (countitem(@MONSTER_OIL) < 1) goto L_SetzerNoMonsterOil; if (countitem(@SHORT_SWORD) < 1) goto L_SetzerNoSword; - getinventorylist; - if ((@inventorylist_count == 100) && (countitem(@MONSTER_OIL) > 1)) goto L_TooMany; + // No inventory check needed, as the short sword is removed, opening a slot mes "[Nicholas]"; mes "Nicholas takes the items, heats up your sword and pounds it with a heavy hammer. Before your eyes it turns thinner and flatter. Finally he pours the monster oil over it, heats it up again and douses it in water."; diff --git a/npc/020-2_Nivalis/furquest.txt b/npc/020-2_Nivalis/furquest.txt index 31538371..67a6eb10 100644 --- a/npc/020-2_Nivalis/furquest.txt +++ b/npc/020-2_Nivalis/furquest.txt @@ -309,8 +309,7 @@ L_State_12: L_State_12_pay: if (zeny < 15000) goto L_State_12_missing; if (countitem(528) < 1) goto L_State_12_missing; - getinventorylist; - if (@inventorylist_count == 100) goto L_TooMany; + // No inventory check needed, as boots are removed, opening a slot set zeny, zeny-15000; delitem 528, 1; getitem 655, 1; -- cgit v1.2.3-70-g09d2