Advertisement
Guest User

Untitled

a guest
Sep 30th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. OnDoJoin: // @joinbg
  2. .@is_wednesday = ( gettime(4) == 3 );
  3. .@is_trans_job = ( eaclass() & EAJL_UPPER );
  4.  
  5. if( BaseLevel < 80 ){
  6. dispbottom "[Min required level to join a battleground is 80.]";
  7. end;
  8. }
  9. if( agitcheck() ){
  10. dispbottom "[You can't participate in Battlegrounds while WoE is active.]";
  11. end;
  12. }
  13. if( checkquest(8506,PLAYTIME) == 2 )
  14. erasequest 8506;
  15.  
  16. if( checkquest(8506,PLAYTIME) != -1 )
  17. {
  18. dispbottom "[You are a Deserter. You can't participate until the indicator goes off]";
  19. end;
  20. }
  21. if ($@BG_Can_Join==1){
  22. dispbottom "You cannot join the game ["+.BG_Names$[$BG_Index]+"] which is running for 4 minutes";
  23. end;
  24. }
  25. if( .@is_wednesday && .@is_trans_job ){
  26. dispbottom "This is Classic Battleground, you cant join Battleground today.";
  27. end;
  28. }
  29. else if( !.@is_wednesday && !.@is_trans_job ){
  30. dispbottom "You cannot join battleground if your not in transcended jobs";
  31. end;
  32. }
  33. bg_queue_join .BG_Queue;
  34. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement