Advertisement
Emistry

[RO] warp to woe map command + map check

Dec 11th, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. - script atcmndwoe -1,{
  2.  
  3. OnWoeCommand:
  4. for( set .@i, 0; .@i < .map_size; set .@i, .@i + 1 ) {
  5. if( strcharinfo(3) == .@maps$[.@i] ) {
  6. dispbottom ""+strcharinfo(0)+" You cant use this command in this map.";
  7. end;
  8. }
  9. }
  10. warp "sch_gld",293,96;
  11. end;
  12.  
  13. OnInit:
  14. setarray .map$,
  15. "schg_cas01", "schg_cas02", "schg_cas03", "schg_cas04", "schg_cas05",
  16. "arug_cas01", "arug_cas02", "arug_cas03", "arug_cas04", "arug_cas05",
  17. "prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "prtg_cas05",
  18. "payg_cas01", "payg_cas02", "payg_cas03", "payg_cas04", "payg_cas05",
  19. "gefg_cas01", "gefg_cas02", "gefg_cas03", "gefg_cas04", "gefg_cas05",
  20. "aldeg_cas01", "aldeg_cas02","aldeg_cas03", "aldeg_cas04", "aldeg_cas05"; //Mapas onde o comando é bloqueado.
  21. .map_size = getarraysize( .map$ );
  22. bindatcmd("woe","atcmndwoe::OnWoeCommand",0,99);
  23. end;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement