summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-06-15 08:44:50 -0300
committerJesusaves <cpntb1@ymail.com>2018-06-15 08:44:50 -0300
commit00475ac1ecf5ce589ad3c2c54f3aa06eb63736df (patch)
tree825c802e67abda79935b1894e9ef19c40a0f168c
parentf805fb5fdb0f03ea218ef777704ff6a84da06c57 (diff)
downloadserverdata-00475ac1ecf5ce589ad3c2c54f3aa06eb63736df.tar.gz
serverdata-00475ac1ecf5ce589ad3c2c54f3aa06eb63736df.tar.bz2
serverdata-00475ac1ecf5ce589ad3c2c54f3aa06eb63736df.tar.xz
serverdata-00475ac1ecf5ce589ad3c2c54f3aa06eb63736df.zip
Fix bad scope
-rw-r--r--npc/003-1/mahoud.txt8
1 files changed, 3 insertions, 5 deletions
diff --git a/npc/003-1/mahoud.txt b/npc/003-1/mahoud.txt
index f5ecc5857..73d97dcb4 100644
--- a/npc/003-1/mahoud.txt
+++ b/npc/003-1/mahoud.txt
@@ -6,17 +6,14 @@
// Mahoud is the Tulimshar Well Master
003-1,46,79,0 script Mahoud NPC_PLAYER,{
-
- .@COST_PER_BOTTLE = 50;
-
mesn;
- mes l("I can fill your bottle with water for only @@ gp the bottle.", .@COST_PER_BOTTLE);
+ mes l("I can fill your bottle with water for only @@ gp the bottle.", .COST_PER_BOTTLE);
mes l("After all, I am the Well Master!");
input .@count;
if (.@count == 0)
close;
- .@Cost = .@count * .@COST_PER_BOTTLE;
+ .@Cost = .@count * .COST_PER_BOTTLE;
.@empty = countitem("EmptyBottle");
if (.@empty < .@count)
@@ -44,6 +41,7 @@ L_NotEnoughMoney:
close;
OnInit:
+ .COST_PER_BOTTLE = 50;
.sex = G_MALE;
.distance = 7;