summaryrefslogtreecommitdiff
path: root/example/scripts/npcs/healer.lua
blob: 3591c0c74770693796bf3591ea5b689754f84cc6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--[[

 Healer NPC example

--]]

function Healer(npc, ch)
    say("Do you need healing?")
    local c = ask("Heal me fully", "Heal 100 HP", "Don't heal me")
    if c == 1 then
        ch:heal()
    elseif c == 2 then
        ch:heal(100)
    end
end