So I use deathlypvp as my source, I'm having an issue changing xp rates. I search something simple, and found my variables:
Code:
/**
* Skill Experience Multipliers
*/
public static final int WOODCUTTING_EXPERIENCE = 70;
public static final int MINING_EXPERIENCE = 70;
public static final int SMITHING_EXPERIENCE = 70;
public static final int FARMING_EXPERIENCE = 50;
public static final int FIREMAKING_EXPERIENCE = 70;
public static final int HERBLORE_EXPERIENCE = 70;
public static final int FISHING_EXPERIENCE = 65;
public static final int AGILITY_EXPERIENCE = 65;
public static final int PRAYER_EXPERIENCE = 110;
public static final int PRAYER_EXPERIENCEINHOUSE = 110;
public static final int RUNECRAFTING_EXPERIENCE = 90;
public static final int CRAFTING_EXPERIENCE = 75;
public static final int THIEVING_EXPERIENCE = 75;
public static final int SLAYER_EXPERIENCE = 65;
public static final int COOKING_EXPERIENCE = 70;
public static final int FLETCHING_EXPERIENCE = 80;
}
So lets say the skill Herblore, I search it and look under herblore.java for somewhere with "c.getPA().addSkillXP" to see how much xp is given for making a potion, bu I see that the item name and xp amount is being pulled from somewhere else. Where is that?
Code:
public void finishPot(int itemUsed, int usedWith, int slot) {
if (c.playerLevel[c.playerHerblore] >= makePotion[slot][3]) {
if (c.getItems().playerHasItem(itemUsed) && c.getItems().playerHasItem(usedWith)) {
c.getItems().deleteItem(itemUsed,c.getItems().getItemSlot(itemUsed),1);
c.getItems().deleteItem(usedWith,c.getItems().getItemSlot(usedWith),1);
c.getItems().addItem(makePotion[slot][2],1);
c.sendMessage("You make a " + c.getItems().getItemName(makePotion[slot][2]) + ".");
c.getPA().addSkillXP(makePotion[slot][4] * Config.HERBLORE_EXPERIENCE,c.playerHerblore);
c.startAnimation(363);
} else {
c.sendMessage("You do not have all the items for this potion!");
}
} else {
c.sendMessage("You need a herblore level of " + makePotion[slot][3] + " to make this potion.");
}
Now can anyone explain to me what this is telling me past "(makePotion") like wha that [slot][4] * config.HERBLORE EXPERIENCE" means? Like I understand that tha its adding xp for making potion item then uses the config.java file for the "HERBLORE_EXPERIENCE" variable, but where is it getting this information for what xp amount to use and how do I find/edit it?? This happens for other skills as well.
Code:
c.getPA().addSkillXP(makePotion[slot][4] * Config.HERBLORE_EXPERIENCE,c.playerHerblore);
Code:
private void plantSeed(int seedId, int herbId, int exp, int slot) {
if (c.playerLevel[c.playerFarming] < FARMING_REQS[slot]) {
c.sendMessage("You require a farming level of " + FARMING_REQS[slot] + " to farm this seed.");
} else if (!seedPlanted && patchRaked && c.getItems().playerHasItem(seedId, 1) && c.getItems().playerHasItem(SEED_DIBBER, 1)) {
c.getItems().deleteItem(seedId, c.getItems().getItemSlot(seedId), 1);
c.getPA().addSkillXP(SEED_PLANT_EXP[slot] * Config.FARMING_EXPERIENCE, c.playerFarming);
c.startAnimation(2291);
c.getPA().refreshSkill(c.playerFarming);
int herbAmount = Misc.random(5) + 3;
c.farm[0] = herbId;
c.farm[1] = herbAmount;
c.sendMessage("You plant your seed. Water it and watch it grow.");
seedPlanted = true;
} else {
c.sendMessage("You need to rake the patch or you've already planted a seed!");
}
Someone mentioned to me that I asked that it may be something in an "array file" ?