diff options
Diffstat (limited to 'npc/003-9')
-rw-r--r-- | npc/003-9/_import.txt | 6 | ||||
-rw-r--r-- | npc/003-9/_warps.txt | 14 | ||||
-rw-r--r-- | npc/003-9/gambler.txt | 80 | ||||
-rw-r--r-- | npc/003-9/recepcionist.txt | 17 | ||||
-rw-r--r-- | npc/003-9/scripted.txt | 16 |
5 files changed, 133 insertions, 0 deletions
diff --git a/npc/003-9/_import.txt b/npc/003-9/_import.txt new file mode 100644 index 000000000..49e21f7ce --- /dev/null +++ b/npc/003-9/_import.txt @@ -0,0 +1,6 @@ +// Map 003-9: Tulimshar Inn +// This file is generated automatically. All manually added changes will be removed when running the Converter. +"npc/003-9/_warps.txt", +"npc/003-9/gambler.txt", +"npc/003-9/recepcionist.txt", +"npc/003-9/scripted.txt", diff --git a/npc/003-9/_warps.txt b/npc/003-9/_warps.txt new file mode 100644 index 000000000..dd9e5a9bd --- /dev/null +++ b/npc/003-9/_warps.txt @@ -0,0 +1,14 @@ +// This file is generated automatically. All manually added changes will be removed when running the Converter. +// Map 003-9: Tulimshar Inn warps +003-9,62,136,0 warp #003-9_62_136 0,0,003-1,70,138 +003-9,48,92,0 script #003-9_48_92 NPC_HIDDEN,1,0,{ + end; +OnTouch: + slide 47,56; end; +} +003-9,48,57,0 script #003-9_48_57 NPC_HIDDEN,1,0,{ + end; +OnTouch: + slide 48,93; end; +} +003-9,36,57,0 warp #003-9_36_57 0,0,003-1,64,131 diff --git a/npc/003-9/gambler.txt b/npc/003-9/gambler.txt new file mode 100644 index 000000000..c553b3308 --- /dev/null +++ b/npc/003-9/gambler.txt @@ -0,0 +1,80 @@ +// TMW2 scripts. +// Author: +// Jesusalva +// Description: +// Tulimshar Inn Recepcionist + +003-9,42,123,0 script Gambler Master NPC_LOF_NOBLEMAN,{ + mesn; + mesq l("Hello! Welcome to the Inn! I am an Alliance officer, and I oversee gambling all over the world!"); + next; + mesn; + mesq l("So how can I help you?"); + do + { + next; + select + l("I want to turn over my Casino Coins."), + l("How does Gambling works?"), + l("How can I obtain casino coins?"), + l("Nothing, thanks."); + mes ""; + switch (@menu) { + case 1: + goto L_Trade; + case 2: + mesn; + mesq l("You find a slot machine or another gambler, and make a bet!"); + next; + mesn; + mesq l("If you're right, you'll gain more Casino Coins! And even other nice things!"); + next; + mesn; + mesq l("But if you're wrong, you'll have to pay up! There's no refunds. This is gambling, if you lose you lose!"); + next; + mesn; + mesq l("If you're afraid of losing everything, then DEFINITELY do not gamble. %%2"); + break; + case 3: + mesn; + mesq l("I dunno. I don't think they're sold anywhere."); + next; + mesn; + mesq l("I know a few bandits stole a few, and Lava Slimes love to eat Casino Coins."); + next; + mesn; + mesq l("I've even heard of people whom dug Casino Coins out of the ground, but as I said, I don't know. But you'll certainly come across a few o your adventures!"); + break; + } + } while (@menu != 4); + close; + +L_Trade: + openshop; + closedialog; + close; + +OnInit: + .sex = G_MALE; + .distance = 5; + tradertype(NST_CUSTOM); + + sellitem MercBoxA, 940; + sellitem JeansShorts, 820; + sellitem ElixirOfLife, 150; + sellitem PoisonArrow, 30; + sellitem StrangeCoin, 5; + end; + +OnCountFunds: + setcurrency(countitem(CasinoCoins)); + end; + +OnPayFunds: + if( countitem(CasinoCoins) < @price ) + end; + delitem CasinoCoins,@price; + purchaseok(); + end; +} + diff --git a/npc/003-9/recepcionist.txt b/npc/003-9/recepcionist.txt new file mode 100644 index 000000000..cda685472 --- /dev/null +++ b/npc/003-9/recepcionist.txt @@ -0,0 +1,17 @@ +// TMW2 scripts. +// Author: +// Jesusalva +// Description: +// Tulimshar Inn Recepcionist + +003-9,62,128,0 script Recepcionist#TInn NPC_LOF_BARKEEPER,{ + npctalk3 l("Hello, and welcome to Tulimshar Inn."); + emote E_HAPPY; + close; + +OnInit: + .sex = G_FEMALE; + .distance = 5; + end; +} + diff --git a/npc/003-9/scripted.txt b/npc/003-9/scripted.txt new file mode 100644 index 000000000..3e5f6f970 --- /dev/null +++ b/npc/003-9/scripted.txt @@ -0,0 +1,16 @@ +// TMW2 scripts. +// Author: +// Jesusalva +// Description: +// Scripted functions (Lua) + +003-9,58,121,0 script #TInnClockPassage NPC_NO_SPRITE,{ + dispbottom l("If I only could find another way in..."); + close; + +OnInit: + .sex = G_OTHER; + .distance = 3; + end; +} + |