Code:
int q; int w; npc n; lweapon l;
for ( q = Screen->NumLWeapons(); q > 0; q-- ) {
    l = Screen->LoadLWeapon(q);
    for ( w = Screen->NumNPCs(); w > 0; w-- ){
        n = Screen->LoadNPC(w);
        if ( Collision(l,n) ) //Do things;
    }
}
Like that, or in some similar manner with var declarations in whatever style you want, or with array indices when that's more appropriate.