From cf18ce071c79ae37e14ea38943e0b1d88da70a7b Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 9 Apr 2021 13:33:57 -0300 Subject: Override --- npc/004-5/_import.txt | 6 ++++++ npc/004-5/_mobs.txt | 14 ++++++++++++++ npc/004-5/_warps.txt | 3 +++ npc/004-5/chest.txt | 26 ++++++++++++++++++++++++++ npc/004-5/mapflags.txt | 1 + 5 files changed, 50 insertions(+) create mode 100644 npc/004-5/_import.txt create mode 100644 npc/004-5/_mobs.txt create mode 100644 npc/004-5/_warps.txt create mode 100755 npc/004-5/chest.txt create mode 100755 npc/004-5/mapflags.txt (limited to 'npc/004-5') diff --git a/npc/004-5/_import.txt b/npc/004-5/_import.txt new file mode 100644 index 00000000..1315b3de --- /dev/null +++ b/npc/004-5/_import.txt @@ -0,0 +1,6 @@ +// Map 004-5: Pirate Den +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/004-5/_mobs.txt", +"npc/004-5/_warps.txt", +"npc/004-5/chest.txt", +"npc/004-5/mapflags.txt", diff --git a/npc/004-5/_mobs.txt b/npc/004-5/_mobs.txt new file mode 100644 index 00000000..581d2eb9 --- /dev/null +++ b/npc/004-5/_mobs.txt @@ -0,0 +1,14 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 004-5: Pirate Den mobs +004-5,41,70,3,2 monster Golem 1121,1,100000,30000 +004-5,41,70,3,1 monster Tengu 1120,2,100000,30000 +004-5,40,70,4,1 monster Serqet 1119,2,100000,30000 +004-5,35,86,3,2 monster Golem 1121,1,100000,30000 +004-5,34,86,4,1 monster Serqet 1119,2,100000,30000 +004-5,35,86,3,1 monster Tengu 1120,2,100000,30000 +004-5,54,38,3,2 monster Golem 1121,1,100000,30000 +004-5,53,38,4,1 monster Serqet 1119,2,100000,30000 +004-5,54,38,3,1 monster Tengu 1120,2,100000,30000 +004-5,81,38,3,2 monster Golem 1121,1,100000,30000 +004-5,80,38,4,1 monster Serqet 1119,2,100000,30000 +004-5,81,38,3,1 monster Tengu 1120,2,100000,30000 diff --git a/npc/004-5/_warps.txt b/npc/004-5/_warps.txt new file mode 100644 index 00000000..9e67f1ee --- /dev/null +++ b/npc/004-5/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 004-5: Pirate Den warps +004-5,24,65,0 warp #004-5_24_65 0,0,004-4,24,62 diff --git a/npc/004-5/chest.txt b/npc/004-5/chest.txt new file mode 100755 index 00000000..0054571e --- /dev/null +++ b/npc/004-5/chest.txt @@ -0,0 +1,26 @@ +004-5,89,67,0 script Old Chest#crastur NPC111,{ + @npc_distance = 1; + callfunc "PCtoNPCRange"; + if(@npc_check) end; + @spants_state = ((QUEST_WG_state & NIBBLE_2_MASK) >> NIBBLE_2_SHIFT); + if(@spants_state > 5) goto L_Looted; + if(@spants_state != 5) goto L_Unknown; + @spants_state = 6; + getitem "Bandana", 1; + set Zeny, (Zeny + rand(8000,20000)); // give some random loot + mes "This must be the treasure that Crastur was talking about."; + mes "You see a pile of gold and a Bandana on top."; + QUEST_WG_state = (QUEST_WG_state & ~(NIBBLE_2_MASK) | (@spants_state << NIBBLE_2_SHIFT)); + goto L_close; + +L_Looted: + mes "You have already looted this chest."; + goto L_close; + +L_Unknown: + mes "You have no idea how to open this chest."; + goto L_close; + +L_close: + close; +} diff --git a/npc/004-5/mapflags.txt b/npc/004-5/mapflags.txt new file mode 100755 index 00000000..1c67e967 --- /dev/null +++ b/npc/004-5/mapflags.txt @@ -0,0 +1 @@ +//004-5 mapflag resave 001-1,60,105 -- cgit v1.2.3-70-g09d2