How to add a npc in position : X819 Y243
And when u say hi to him he answers :
Hello
Please tell me how
spawnnpc type x,y,rot
addhook("say","hiwithme") function hiwithme(id,txt) 	if object(1,"exists") or object(2,"exists") or object(3,"exists") or object(4,"exists") or object(5,"exists") then 	if (txt=="hello") then 	msg2(id,"npc:Hi") end end end
parse (string.format("spawnnpc %s %s %s %s",type,x,y,rot));