diff options
author | Saulc <lucashelaine14@gmail.com> | 2018-01-24 18:25:42 +0100 |
---|---|---|
committer | Saulc <lucashelaine14@gmail.com> | 2018-01-24 18:25:42 +0100 |
commit | eeebc8f8181c8d79a2bb2e45d5341ec72ccf5540 (patch) | |
tree | dacfe82a4aa85db9edca3ae38c424b9aeeeb926f /npc/005-2 | |
parent | 0cc37af255e4e222622ce524c6eccfc032811f49 (diff) | |
download | serverdata-eeebc8f8181c8d79a2bb2e45d5341ec72ccf5540.tar.gz serverdata-eeebc8f8181c8d79a2bb2e45d5341ec72ccf5540.tar.bz2 serverdata-eeebc8f8181c8d79a2bb2e45d5341ec72ccf5540.tar.xz serverdata-eeebc8f8181c8d79a2bb2e45d5341ec72ccf5540.zip |
add map items adn npcs focus on candor
Diffstat (limited to 'npc/005-2')
-rw-r--r-- | npc/005-2/_import.txt | 5 | ||||
-rw-r--r-- | npc/005-2/_mobs.txt | 3 | ||||
-rw-r--r-- | npc/005-2/_warps.txt | 3 | ||||
-rw-r--r-- | npc/005-2/saxsochest.txt | 80 |
4 files changed, 91 insertions, 0 deletions
diff --git a/npc/005-2/_import.txt b/npc/005-2/_import.txt new file mode 100644 index 000000000..2ec41cb54 --- /dev/null +++ b/npc/005-2/_import.txt @@ -0,0 +1,5 @@ +// Map 005-2: Merchant Guild +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/005-2/_mobs.txt", +"npc/005-2/_warps.txt", +"npc/005-2/saxsochest.txt", diff --git a/npc/005-2/_mobs.txt b/npc/005-2/_mobs.txt new file mode 100644 index 000000000..20c2dad4f --- /dev/null +++ b/npc/005-2/_mobs.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 005-2: Merchant Guild mobs +005-2,32,36,0,0 monster Saxso Ghost 1076,1,35000,300000 diff --git a/npc/005-2/_warps.txt b/npc/005-2/_warps.txt new file mode 100644 index 000000000..32dfabb6b --- /dev/null +++ b/npc/005-2/_warps.txt @@ -0,0 +1,3 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 005-2: Merchant Guild warps +005-2,33,43,0 warp #005-2_33_43 0,0,005-1,30,80 diff --git a/npc/005-2/saxsochest.txt b/npc/005-2/saxsochest.txt new file mode 100644 index 000000000..3e10fe407 --- /dev/null +++ b/npc/005-2/saxsochest.txt @@ -0,0 +1,80 @@ +// Author: +// Crazyfefe + +005-2,44,41,0 script Saxso Chest NPC_NO_SPRITE,{ + + .key = SaxsoKey; + .reward = ToothNecklace; + + function quest_completed{ + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("you allready open the chest."); + setq CandorQuest_Chest, 0; + close; + } + + function quest_open { + if (countitem(.key) > 0) + { + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("You open the chest and found a @@.",getitemlink(.reward)); + delitem .key,1; + getitem .reward,1; + setq CandorQuest_Chest, 1; + close; + } + else + { + speech S_FIRST_BLANK_LINE, + l("you don't have the key."); + close; + } + } + + function quest_started { + speech S_FIRST_BLANK_LINE | S_LAST_NEXT, + l("it look close."); + narrator S_LAST_NEXT, + l("you should use a key for open it."); + do + { + select + l("Use a key."), + menuaction(l("Quit")); + + switch (@menu) + { + case 1: + quest_open; + break; + } + } while (@menu != 2); + } + + do + { + .@chest = getq(CandorQuest_Chest); + if (.@chest == 1) + goto quest_completed; + select + rif(.@chest == 0,l("There are a dusty chest.")), + menuaction(l("Quit")); + + switch (@menu) + { + case 1: + quest_started; + break; + } + } while (@menu != 2); + + closedialog; + goodbye; + close; + +OnInit: + .sex = G_MALE; + .distance = 3; + end; +} + |