What is the effect?
|
Compile errors: None
Problem: I am trying to add the Torva effect to my items but I am not sure how... I've been looking at the rocktail effect but I cant crack it, any ideas?
public void eat(int id, int slot) {
if (c.duelRule[6]) {
c.sendMessage("You may not eat in this duel.");
return;
}
if (System.currentTimeMillis() - c.foodDelay >= 1500) {
int maxHp = c.hasFullPrimal() ? c.getLevelForXP(c.playerXP[3])
+ c.primalBoost : c.getLevelForXP(c.playerXP[3]);
c.getCombat().resetPlayerAttack();
c.attackTimer += 2;
c.startAnimation(829);
c.getItems().deleteItem(id, slot, 1);
FoodToEat f = FoodToEat.food.get(id);
if (c.playerLevel[3] < maxHp) {
c.playerLevel[3] += f.getHeal();
if (c.playerLevel[3] > maxHp)
c.playerLevel[3] = maxHp;
}
c.foodDelay = System.currentTimeMillis();
c.getPA().refreshSkill(3);
c.sendMessage("You eat the " + f.getName() + ".");
}
}Where would I put these? Also, can someone changed the Primal into Torva for me please?public static int primalBoost = 50;
You have to make it an event. Cause people can wear the full set and there hp will either stay the same or keep going up. Me and my friend were working on this. We are almost done and when we do finish we'll release a full tutorial on how to add this correctly.
well im pretty sure you do this....
dont get me wrong im new to this stuff.. plus i havent added this myself
First go ave to declare this somewhere i dont know lol
public boolean fullFullPrimal() {
return playerEquipment[playerHat] == 20135 && playerEquipment[playerLegs] == 20143 && playerEquipment[playerChest] == 20139;
}
and add your code somewhere i actually don't know lol! And this is a guess
any fixes yet?;s
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |