Talking News NPC

yes it possible..
 

you might want to check this example.. this is what im using , i dont know who made this and i forgot where i got this

prontera,150,150,3 script This is walking npc 100,{
end;
OnInit:
.@interval = 5;
.@step = 5;
while (1) {
sleep .@interval * 1000;
getmapxy .@map$, .@x, .@y, 1;
while ( checkcell( .@map$, .@npc_x = .@x + rand( -.@step, .@step ), .@npc_y = .@y + rand( -.@step, .@step ), cell_chknopass ) );
npcwalkto .@npc_x, .@npc_y;
npctalk callfunc( "F_RandMes", 2,
"MSG 1", // 1
"MSG 2" // 2
);
}
end;
}

i dont know how to remove the moving, well just wait for someone to make one for u..
this is just an example that ur request is possible

 
Last edited by a moderator:
Not moving
default_sad.png
the npc talks if the player/npc sighted/see on the map

 
yeah, just wait for someone who have knowledge to reply to ur request. like i said in my post. its just showing that ur request is possible.


just bump ur request once per day so it may help
default_tongue.png

or try to use search button. there's a bunch of topics related to this as far as i know.

 
Not moving
default_sad.png
the npc talks if the player/npc sighted/see on the map
Code:
prontera,155,185,5	script	kjdhfksdjhfs	100,9,9,{	end;OnTouch:	npctalk "Hello "+ strcharinfo(0);	end;}
what kind of news you want to report ? the weather ?
 
Just add the whole switch of the NPC to your own inside the OnTouch event, then change all the announces to npctalk and remove the extra argument of the announces since npctalk doesn't need it. You should be able to do the work by yourself with this advice.

P.S.: You can usually search and replace on a text editor with ctrl + H

 
Last edited by a moderator:
Back
Top