From 00475ac1ecf5ce589ad3c2c54f3aa06eb63736df Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Fri, 15 Jun 2018 08:44:50 -0300 Subject: Fix bad scope --- npc/003-1/mahoud.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'npc/003-1') 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; -- cgit v1.2.3-70-g09d2