viewing paste Unknown #11455 | Athena

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
-   script  Sample  -1,{
    OnInit:
        setarray .Maps$[0], "prontera","Prontera Midgard",
                "payon","Payon Forest";
        .size = getarraysize( .Maps$ );
        for ( .@i = 0; .@i < .size; .@i += 2 )
            setmapflag .Maps$[ .@i ], mf_loadevent;
        end;
    OnPCLoadMapEvent:
        getmapxy( .@map$, .@x, .@y, 0 );
            for ( .@i = 0; .@i < .size; .@i += 2 ) {
        if ( .@map$ == .Maps$[ .@i ] )
            announce "You entered map : " + .Maps$[ .@i + 1 ] + ".",bc_self;
            }
    end;
}
Viewed 933 times, submitted by evilpuncker.