viewing paste restrict item on map + cart check | 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
-   script  Vanilla1    -1,{
OnPCLoadMapEvent:
if( strcharinfo(3) == "prtg_cas01" ){
    .@have_cart = checkcart();
    while( .@i < .itemcheck_size ){
        .@count = countitem( .itemcheck[.@i] );
        if( .@have_cart ) .@count += cartcountitem( .itemcheck[.@i] );
        if( .@count ){
            mes "Please remove "++" from your Inventory/Cart.";
            close2;
            warp "Savepoint",0,0;
        }
        .@i++;
    }
}
end;
 
OnInit:
// item list
setarray .itemcheck[0],2383,2204,20025,20026,20027,20028,20029,20030,20031,20032,20033;
.itemcheck_size = getarraysize( .itemcheck );
end;
 
}
 
prtg_cas01  mapflag loadevent
Viewed 1208 times, submitted by Emistry.