Jump to content
  • 0
Sign in to follow this  
ThyroDree

Talking News NPC

Question

11 answers to this question

Recommended Posts

  • 0

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

Edited by leloush

Share this post


Link to post
Share on other sites
  • 0

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 :P
or try to use search button. there's a bunch of topics related to this as far as i know.

Share this post


Link to post
Share on other sites
  • 0

Not moving :( the npc talks if the player/npc sighted/see on the map

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 ?

Share this post


Link to post
Share on other sites
  • 0

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.