ThyroDree 3 Posted July 28, 2014 (edited) 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 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 July 28, 2014 by ThyroDree Quote Share this post Link to post Share on other sites
0 Guest Posted July 29, 2014 just use: npctalk "message"; Quote Share this post Link to post Share on other sites
0 ThyroDree 3 Posted July 29, 2014 just use: npctalk "message"; how can i make every 1 minute talk... can you make an example? Quote Share this post Link to post Share on other sites
0 Patskie 88 Posted July 29, 2014 Change : sleep rand(1000,1000); to : sleep 60 * 1000; Quote Share this post Link to post Share on other sites
0 Garr 117 Posted July 29, 2014 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. Quote Share this post Link to post Share on other sites
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
Share this post
Link to post
Share on other sites