diff options
Diffstat (limited to 'example/scripts/npcs/healer.lua')
-rw-r--r-- | example/scripts/npcs/healer.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/example/scripts/npcs/healer.lua b/example/scripts/npcs/healer.lua index 35696736..3591c0c7 100644 --- a/example/scripts/npcs/healer.lua +++ b/example/scripts/npcs/healer.lua @@ -5,11 +5,11 @@ --]] function Healer(npc, ch) - npc_message(npc, ch, "Do you need healing?") - local c = npc_choice(npc, ch, "Heal me fully", "Heal 100 HP", "Don't heal me") + say("Do you need healing?") + local c = ask("Heal me fully", "Heal 100 HP", "Don't heal me") if c == 1 then - being_heal(ch) + ch:heal() elseif c == 2 then - being_heal(ch, 100) + ch:heal(100) end end |