summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--npc/003-9/gambler.txt29
-rw-r--r--npc/functions/hub.txt2
2 files changed, 3 insertions, 28 deletions
diff --git a/npc/003-9/gambler.txt b/npc/003-9/gambler.txt
index dcd7e9f7c..31dad9f60 100644
--- a/npc/003-9/gambler.txt
+++ b/npc/003-9/gambler.txt
@@ -2,7 +2,7 @@
// Author:
// Jesusalva
// Description:
-// Tulimshar Inn Recepcionist
+// Tulimshar Inn Receptionist
003-9,42,123,0 script Gambler Master NPC_LOF_NOBLEMAN,{
mesn;
@@ -14,15 +14,12 @@
{
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;
@@ -35,7 +32,7 @@
mesn;
mesq l("If you're afraid of losing everything, then DEFINITELY do not gamble. %%2");
break;
- case 3:
+ case 2:
mesn;
mesq l("I dunno. I don't think they're sold anywhere.");
next;
@@ -49,31 +46,9 @@
} 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;
end;
-
-OnCountFunds:
- setcurrency(countitem(CasinoCoins));
- end;
-
-OnPayFunds:
- if( countitem(CasinoCoins) < @price )
- end;
- delitem CasinoCoins,@price;
- purchaseok();
- end;
}
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt
index 1769a1c4b..152cad7e7 100644
--- a/npc/functions/hub.txt
+++ b/npc/functions/hub.txt
@@ -293,11 +293,11 @@ function script HUB_SkillInvoke {
SK_spregen();
GetManaExp(GD_DEVELOPMENT, 10);
break;
+ // Magic v3
case TMW2_NILFHEIM:
SK_nilfheim();
GetManaExp(@skillId, 3);
break;
- // Magic v3
case TMW2_JUDGMENT:
debugmes "Target: %d (%d,%d)", @skillTarget, @skillTargetX, @skillTargetY;
areasc2(getmap(), @skillTargetX, @skillTargetY, 2, 10000, SC_BLOODING, BL_MOB|BL_PC);