Jump to content
  • 0
Sign in to follow this  
ThyroDree

Help me Moving NPC

Question

this is the script i used 

i want to make the npc only walk in red lines also how can i make NPC talk every 1 minute.. please help me please 

 

34hey47.jpg

 
 
prontera,156,187,5	script	RetRO Kafra#walk_talk	116,{end;OnInit:setarray .Message$,"Welcome to RetRO",					"RetRO Kafra : Strictly ENGLISH when using the Broadcaster.",					"Mesage 2",					"Mesage 3",					"Mesage 4";		while( 1 ){	npctalk .Message$[ rand( getarraysize( .Message$ ) ) ];	sleep rand(1000,1000);startnpctimer;npcspeed 350;end;OnTimer5000:npcwalkto 150,191;end;OnTimer50000:npcwalkto 155,190;end;OnTimer100000:npcwalkto 161,191;end;OnTimer150000:npcwalkto 161,186;end;OnTimer200000:npcwalkto 161,180;end;OnTimer250000:npcwalkto 150,180;end;OnTimer300000:npcwalkto 149,186;end;OnTimer350000:stopnpctimer;initnpctimer;end;	}}

 

Edited by ThyroDree

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Change OnInit part of code:

OnInit:setarray .Message$,"Welcome to RetRO",					"Strictly ENGLISH when using the Broadcaster.",					"Message 2",					"Message 3",					"Message 4";		initnpctimer;npcspeed 350;while( 1 ) {	npctalk .Message$[ rand( getarraysize( .Message$ ) ) ];	sleep 60*1000;}end;

While will be endless cycle, so it should go last under OnInit label. Also, your closing right curly bracket got lost somewhere in the end, so instead of endless repeat like you wanted it ended after first talk on end; under npcspeed 350;

Also, remove one right curly bracket in the end of script.

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.