viewing paste block all cards at certain map | 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
 
 
-       script  Sample  -1,{
OnInit:
setarray .map$,"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05";
set .map_size,getarraysize( .map$ );
for( .@i = 0; .@i < .map_size; .@i++ )
        setmapflag .map$[.@i],mf_loadevent;
 
OnPCLoadMapEvent:
.@map$ = strcharinfo(3);
for( .@i = 0; .@i < .map_size; .@i++ )
        if( .@map$ == .map$[.@i] ){
                getinventorylist;
                if( getarraysize( @inventorylist_card1 ) || getarraysize( @inventorylist_card2 ) || getarraysize( @inventorylist_card3 ) || getarraysize( @inventorylist_card4 ) ){
                        mes "Make sure you didnt bring any Item that have Card Compounded or Signed with Name.";
                        close2;
                        warp "prontera",155,181;
                }
                break;
        }
}
 
Viewed 435 times, submitted by Emistry.