Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- prontera,155,161,5 script Sample 757,{
- // how many seconds they stay inside
- set .@second,5;
- mes "Enter which room ?";
- mes " ";
- mes "Time Duration : "+.@second+" seconds.";
- next;
- set .@i,select("Gold Room","Yggdrasilberry Room");
- if( getd("#Day_"+.@i) == atoi( gettimestr( "%Y%m%d", 9 ) ) ){
- mes "You cant enter this room more than 1 time in a day.";
- }else{
- deltimer strnpcinfo(0)+"::OnKick";
- addtimer ( .@second * 1000 ),strnpcinfo(0)+"::OnKick";
- setd("#Day_"+.@i),atoi( gettimestr( "%Y%m%d", 9 ) );
- if( .@i == 1 ) warp "poring_c02",66,77;
- else warp "poring_c02",172,78;
- }
- close;
- OnKick:
- if( strcharinfo(3) == "poring_c02" )
- warp "SavePoint",0,0;
- end;
- OnInit:
- setarray .@mf[0],mf_nomemo,mf_noteleport,mf_nosave,mf_nobranch,mf_noskill,mf_nowarp,mf_nogo,mf_nomobloot,mf_nomvploot,mf_nowarpto;
- for( set .@i,0; .@i < getarraysize( .@mf ); set .@i,.@i + 1 )
- setmapflag "poring_c02",.@mf[.@i];
- while( 1 ){
- if( getmapusers( "poring_c02" ) ){
- makeitem 607,1,"poring_c02",rand( 61,71 ),rand( 70,85 );
- makeitem 969,1,"poring_c02",rand( 165,176 ),rand( 70,85 );
- }
- sleep rand( 50,500 );
- }
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment