prontera,155,181,5 script Mascot Pepe#main 757,2,2,{
OnTouch:
mes "Welcome to HellFire RO.";
close;
OnInit:
// how far they can walk.
.range = 10;
npcspeed 200;
getmapxy( .@map$,.@x,.@y,1 );
.@min_x = ( .@x - .range );
.@min_y = ( .@y - .range );
.@max_x = ( .@x + .range );
.@max_y = ( .@y + .range );
while ( 1 ) {
npcwalkto rand( .@min_x,.@max_x ),rand( .@min_y,.@max_y );
.@msg$ = F_Rand(
"Please write us a review on www.ratemyserver.net!",
"How are you?",
"Happy Halloween!",
"Don't forget to visit our Forums",
"Cool Story, Bro!",
"Good job on that style, man!",
"Cool moves you got there, son!",
"Fear nothing!",
"Inadequacy is purely a state of mind.",
"Trick or Treating",
"Laugh hard, laugh long, laugh merrily."
);
npctalk .@msg$;
sleep 20000;
}
end;
}
prontera,115,111,5 duplicate(Mascot Pepe#main) Mascot Pepe#1 757,2,2
prontera,125,121,5 duplicate(Mascot Pepe#main) Mascot Pepe#2 757,2,2
prontera,135,131,5 duplicate(Mascot Pepe#main) Mascot Pepe#3 757,2,2
prontera,145,141,5 duplicate(Mascot Pepe#main) Mascot Pepe#4 757,2,2
It works and the npc walks and talks randomly for a certain of time but it stops and never walks until you use @reloadscript again
I want to make it walk/talk for every 5mins.