I have problem with healing script of NPC. Whenever I say heal > yes nothing happend on my char and
server console drop this message: "Attempt to Call global 'doPlayerAddHealth <a nil value>'
Part of my code:
server console drop this message: "Attempt to Call global 'doPlayerAddHealth <a nil value>'
Part of my code:
Lua:
if msgcontains(msg, 'heal') then
talk_state = 1
selfSay('Do really need my help?')
elseif talk_state == 1 then
if msgcontains(msg, 'yes') then
doPlayerAddHealth(cid, 100)
selfSay('Let me heal you')
end
talk_state = 0