Advertisement
Emistry

[RO] WOE Castle Winner Room

Jan 10th, 2022
1,030
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.36 KB | None | 0 0
  1. // https://rathena.org/board/topic/130125-request-for-a-guild-winner-room/
  2.  
  3. prontera,155,181,5  script  Sample#enter    757,{
  4.     doevent "Sample::OnEnter";
  5. }
  6.  
  7. prontera,151,175,5  duplicate(Sample#enter) Sample#enter_1  757
  8. prontera,155,175,5  duplicate(Sample#enter) Sample#enter_2  757
  9. prontera,159,175,5  duplicate(Sample#enter) Sample#enter_3  757
  10.  
  11.  
  12. -   script  Sample  -1,{
  13.    
  14.     OnInit:
  15.         .map$ = "prt_fild01";
  16.         .castle_map$ = "prtg_cas01";
  17.         end;
  18.        
  19.     OnAgitStart:
  20.    
  21.         // FALLTHROUGH
  22.     OnTimer86400000:
  23.         stopnpctimer;
  24.         .guild_id = 0;
  25.         end;
  26.        
  27.     OnAgitEnd:
  28.         .guild_id = getcastledata(.castle_map$, CD_GUILD_ID);
  29.         if (.guild_id)
  30.             initnpctimer;
  31.         end;
  32.        
  33.     OnEnter:
  34.         if (.guild_id && getcharid(2) == .guild_id)
  35.             warp .map$, 0, 0;
  36.         else
  37.             npctalk "You need a guild that conquered the Guild Castle.", strnpcinfo(3), bc_self;
  38.         end;
  39.        
  40.     OnHour00:
  41.         .@max = rand(10, 20) - mobcount(.map$, strnpcinfo(3)+"::OnMVPKill");
  42.         for (.@i = 0; .@i < .@max; .@i++)
  43.             monster .map$, 0, 0, "--ja--",(-1 - MOBG_BLOODY_DEAD_BRANCH), 1, strnpcinfo(3)+"::OnMVPKill";
  44.         end;
  45.        
  46.     OnHour03:
  47.     OnHour10:
  48.     OnHour15:
  49.     OnHour22:
  50.         .@max = 10 - mobcount(.map$, strnpcinfo(3)+"::OnTreasureKill");
  51.         for (.@i = 0; .@i < .@max; .@i++)
  52.             monster .map$, 0, 0, "--ja--", 1902, 1, strnpcinfo(3)+"::OnTreasureKill";
  53.         end;
  54.        
  55.     OnMVPKill:
  56.         end;
  57.        
  58.     OnTreasureKill:
  59.         end;
  60. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement