Help me Moving NPC

ThyroDree

New member
Messages
556
Points
0
Location
Philippines
Github
bosxkate23
Emulator
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


 
 
Code:
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;	}}
 
Last edited by a moderator:
Change :

sleep rand(1000,1000);
to :

Code:
sleep 60 * 1000;
 
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.

 
Back
Top