setarray .@slots[0], 1, 9, 10; // put here your slots.
for ( set .@a, 0; .@a < 3 && ! .@c ; set .@a, .@a + 1 ) {
if ( set ( .@e, getequipid ( .@slots[.@a] ) ) < 0 )
continue ;
set .@id, 0;
set .@w, 1;
while ( set ( .@id, .@id + 1 ) <= .w2[.@w - 1] && ! .@c ) {
if ( .@id > .w2[.@w - 1] ) {
set .@id, 1;
set .@w, .@w + 1;
}
if ( .@e == getd ( ".a1"+ .@w +"_"+ .@id ) ) {
set .@c, ( getd ( ".a4"+ .@w +"_"+ .@id ) > 0 ) * ( killedrid == getd ( ".a3"+ .@w +"_"+ .@id ) || getd ( ".a3"+ .@w +"_"+ .@id ) < 1001 );
if ( .@c )
break ;
}
}
}
->
setarray .@slots[0], 1, 9, 10; // put here your slots.
for ( set .@a, 0; .@a < 3 && ! .@c ; set .@a, .@a + 1 ) {
if ( set ( .@e, getequipid ( .@slots[.@a] ) ) < 0 )
continue ;
set .@id, 0;
set .@w, 1;
while ( set ( .@id, .@id + 1 ) <= .w2[.@w - 1] && ! .@c ) {
if ( .@e == getd ( ".a1"+ .@w +"_"+ .@id ) ) {
set .@c, ( getd ( ".a4"+ .@w +"_"+ .@id ) > 0 ) * ( killedrid == getd ( ".a3"+ .@w +"_"+ .@id ) || getd ( ".a3"+ .@w +"_"+ .@id ) < 1001 );
if ( .@c )
break ;
}
if ( .@id >= .w2[.@w - 1] ) {
set .@id, 0;
set .@w, .@w + 1;
}
}
}
I answered it other day, but the forum became off.