viewing paste Ban warp on certain maps | Athena

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
-   script  warp_banned -1,{
OnInit:
    setarray .not_2ndjob$[0], "prontera", "payon", "aldebaran"; // Maps NOT for second jobs. Add more with a comma, last member should have a semicolon
    setarray .not_3rdjob$[0], "amatsu", "gonryun", "geffen"; // Same as above, but for third jobs
    set .item_2ndjob, 512; // Set your 2nd job item here
    set .item_3rdjob, 512; // Set your 3rd job item here
    end;
 
OnPCLoadMapEvent:
    if (countitem(.item_2ndjob)) { // Player has the 2nd job item
        for (set .@i,0; .@i < getarraysize(.not_2ndjobs$); set .@i, .@i + 1){
            if (strcharinfo(3) == .not_2ndjobs$[.@i]){
                dispbottom "You're not supposed to be here...";
                warp "SavePoint",0,0;
            }
        }
    }
    else if (countitem(.item_3rdjob)) { // Player has the 3rd job item
        for (set .@i,0; .@i < getarraysize(.not_3rdjobs$); set .@i, .@i + 1){
            if (strcharinfo(3) == .not_3rdjobs$[.@i]){
                dispbottom "You're not supposed to be here...";
                warp "SavePoint",0,0;
            }
        }
    }
    end;
}
Viewed 1099 times, submitted by jaBote.