I need help on how to raise the % on getting barrows items, I want it to give atleast 1 barrow item every time I open chest.
Code:
if(objectID == 10284){
if(Verac == 1 && Dharok == 1 && Ahrim == 1 && Torag == 1 && Karils == 1 && Guthan == 1) {
Barrows = 0;
Verac = 0;
Dharok = 0;
Ahrim = 0;
Torag = 0;
Karils = 0;
Guthan = 0;
addItem(Item.randomBarrows(), 1);
addItem(565, misc.random(770));
addItem(560, misc.random(1320));
addItem(562, misc.random(2630));
addItem(4740, misc.random(803));
addItem(995, misc.random(242700));
addItem(995, misc.random(442700));
sM("You have been rewared items for defeating all of the brothers!");
} else
sM("You must defeat all the Barrows Brothers before you can be rewarded!");
}
I'm not good at coding, learning atm so if you can explain what to do i'll be happy :woot:
I'll rep++ someone if they can help me.