summaryrefslogtreecommitdiff
path: root/example/scripts/npcs/debugger.lua
diff options
context:
space:
mode:
Diffstat (limited to 'example/scripts/npcs/debugger.lua')
-rw-r--r--example/scripts/npcs/debugger.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/scripts/npcs/debugger.lua b/example/scripts/npcs/debugger.lua
index 390f8f29..e65bf236 100644
--- a/example/scripts/npcs/debugger.lua
+++ b/example/scripts/npcs/debugger.lua
@@ -50,8 +50,8 @@ function npc1_talk(npc, ch)
end
elseif v == 3 then
- if chr_money_change(ch, -100) then
- say(string.format("Thank you for you patronage! You are left with %d GP.", chr_money(ch)))
+ if ch:change_money(-100) then
+ say(string.format("Thank you for you patronage! You are left with %d GP.", ch:money()))
local g = tonumber(chr_get_quest(ch, "001_donation"))
if not g then g = 0 end
g = g + 100