Advertisement
Guest User

Untitled

a guest
Jan 16th, 2012
534
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.84 KB | None | 0 0
  1. // War of Emperium for Transcendent Only
  2. // Created by Jezu of rAthena.org
  3. // v1.0 - First Release
  4. // Please do visit us on rAthena.org/board
  5.  
  6. -   script  TransWoE    -1,{
  7.     OnInit:
  8.     set .maps$[0],"aldeg_cas01";
  9.     set .maps$[1],"payg_cas01";
  10.     set .maps$[2],"gefg_cas02";
  11.  
  12.     //setup flags for lookup later (.m_<map>)
  13.     set .@i, getarraysize(.@maps$) - 1;
  14.     while(.@i >= 0) {
  15.         setmapflag getd(.maps$[.@i]), mf_loadevent;
  16.         setd(".m_" + .maps$[.@i], 1);
  17.         set .@i, .@i - 1;  
  18.     }
  19.     end;
  20.    
  21. OnPCLoadMapEVent:
  22.     if(getd(".m_" + strcharinfo(3))) { //checks if .m_<map> is set
  23.         if(Class >= 4054 && Class <= 4085 || Class >= 4096 && Class <= 4108) {
  24.             dispbottom "3rd Jobs are not allowed in this map only 1st 2nd & Transcendent Job is allowed to enter";
  25.             warp "SavePoint",0,0;
  26.             end;
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement