viewing paste update all items to 0 weight | 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:
set .@i,501;
while( .@i < 32767 ){
        if( getitemname( .@i ) != "null" )
                if( setiteminfo( .@i,6,0 ) != -1 )
                        set .@update,.@update + 1;
        set .@i,.@i + 1;
        if( .@i % 500 == 0 ) sleep 1;
}
debugmes "Consumed "+( getnpctimer(0) / 1000 )+" seconds to set "+.@update+" items to 0 weight..";
// relog is required for other online characters.
}
Viewed 637 times, submitted by Emistry.