prontera,150,150,4 script Gold Easter Egg 4_DRAGON_EGG,{
OnInit:
disablenpc strnpcinfo(0);
end;
OnEnableGoldEgg:
for (.@i = 0; .@i < 50; .@i++) // 50 will be spawned
for (.@x=1; .@x <= 10; .@x++)
for (.@y=1; .@y <= 10; .@y++)
duplicatenpc(strnpcinfo(0),"NPC "+ .@x +":" + .@y,"","prontera",.@x,.@y,5,998);
npcspeed 100;
while ( true ) {
getmapxy .@map$, .@x, .@y, 1;
while ( checkcell( .@map$, .@x2 = .@x + rand(-10,10), .@y2 = .@y + rand(-10,10), cell_chknopass ) );
npcwalkto .@x2, .@y2;
sleep rand(500,1000);
}
end;
}