if(!.sobrepor)
{
while(getequiprandomoption(.@part, .@indx, ROA_ID, getcharid(0)))
{
++.@indx;
if(.@indx > .slotmax) { goto OnMax; }
}
}
change
if(!.sobrepor)
{
while(getequiprandomoption(.@part, .@indx, ROA_ID, getcharid(0)))
{
setrandomoption(.@part,0,.@opt,.@val,.@indx,getcharid(0));
setrandomoption(.@part,1,.@opt,.@val,.@indx,getcharid(0));
setrandomoption(.@part,2,.@opt,.@val,.@indx,getcharid(0));
setrandomoption(.@part,3,.@opt,.@val,.@indx,getcharid(0));
setrandomoption(.@part,4,.@opt,.@val,.@indx,getcharid(0));
++.@indx;
if(.@indx > .slotmax) { goto OnMax; }
}
}
Is this correct? pls