yuhsing

Untitled

Dec 24th, 2012
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1.  
  2. prontera,155,161,5 script Sample 757,{
  3.  
  4. // how many seconds they stay inside
  5. set .@second,5;
  6.  
  7. mes "Enter which room ?";
  8. mes " ";
  9. mes "Time Duration : "+.@second+" seconds.";
  10. next;
  11. set .@i,select("Gold Room","Yggdrasilberry Room");
  12. if( getd("#Day_"+.@i) == atoi( gettimestr( "%Y%m%d", 9 ) ) ){
  13. mes "You cant enter this room more than 1 time in a day.";
  14. }else{
  15. deltimer strnpcinfo(0)+"::OnKick";
  16. addtimer ( .@second * 1000 ),strnpcinfo(0)+"::OnKick";
  17. setd("#Day_"+.@i),atoi( gettimestr( "%Y%m%d", 9 ) );
  18. if( .@i == 1 ) warp "poring_c02",66,77;
  19. else warp "poring_c02",172,78;
  20. }
  21. close;
  22.  
  23. OnKick:
  24. if( strcharinfo(3) == "poring_c02" )
  25. warp "SavePoint",0,0;
  26. end;
  27.  
  28. OnInit:
  29. setarray .@mf[0],mf_nomemo,mf_noteleport,mf_nosave,mf_nobranch,mf_noskill,mf_nowarp,mf_nogo,mf_nomobloot,mf_nomvploot,mf_nowarpto;
  30. for( set .@i,0; .@i < getarraysize( .@mf ); set .@i,.@i + 1 )
  31. setmapflag "poring_c02",.@mf[.@i];
  32.  
  33. while( 1 ){
  34. if( getmapusers( "poring_c02" ) ){
  35. makeitem 607,1,"poring_c02",rand( 61,71 ),rand( 70,85 );
  36. makeitem 969,1,"poring_c02",rand( 165,176 ),rand( 70,85 );
  37.  
  38. }
  39. sleep rand( 50,500 );
  40. }
  41. end;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment