How to add a npc in position : X819 Y243
And when u say hi to him he answers :
Hello
Please tell me how
Scripts
With NPC
With NPC
1

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
replace type with a number from 1 to 5.
spawnnpc parse (string.format("spawnnpc %s %s %s %s",type,x,y,rot));
1
