summaryrefslogtreecommitdiff
path: root/example/scripts/npcs/postman.lua
diff options
context:
space:
mode:
Diffstat (limited to 'example/scripts/npcs/postman.lua')
-rw-r--r--example/scripts/npcs/postman.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/scripts/npcs/postman.lua b/example/scripts/npcs/postman.lua
index 7cb1163e..46802283 100644
--- a/example/scripts/npcs/postman.lua
+++ b/example/scripts/npcs/postman.lua
@@ -11,7 +11,7 @@
----------------------------------------------------------------------------------
function post_talk(npc, ch)
- say("Hello " .. being_get_name(ch))
+ say("Hello " .. ch:name())
local strength = being_get_attribute(ch, ATTR_STRENGTH)
say("You have " .. tostring(strength) .. " strength")
say("What would you like to do?")