Jump to content
Sign in to follow this  
hellman2741

PROPER x10 hitpoints, and all boosts for RS2HD

Recommended Posts

Sorry, 24 hours are up :D

Happy holidays everyone!

Hope you guys were able to get to this in time to add it :D Edited by hellman2741

Share this post


Link to post
Share on other sites
Good thing I don't have x10 hits server sided :) Nice tut. Ill see if you missed anything. I already saw you missed something in the Skills class that is kinda important :P

Share this post


Link to post
Share on other sites
[quote name='titandino']Good thing I don't have x10 hits server sided :) Nice tut. Ill see if you missed anything. I already saw you missed something in the Skills class that is kinda important :P[/QUOTE]

o:
What'd I miss?
I didn't actually go through the files to check the methods, I mostly just went off of memory. Edited by hellman2741

Share this post


Link to post
Share on other sites
You forgot to mention that you change basically ALL the player.getSkills(3) to player.getHp(). I went to test it and I got hit 990 every time and never died. So you have to modify that if(getHp() <= 0) player is dead method. I got it all working in the end though. I just need the brews to work now :P

Share this post


Link to post
Share on other sites
If you'll read, I said to change all the configs, and all of the hit methods yourself.

Share this post


Link to post
Share on other sites
It didnt work for me Tony, issues:

NPCS keep hitting 990.. and i never die
Players keep hitting 990 and never die.
Also Torva and stuff didnt gave the boost.

Dont worry about that hellman, im just saying. i know you tried :L and ima just a noob.

Share this post


Link to post
Share on other sites
[quote name='titandino']Good thing I don't have x10 hits server sided :) Nice tut. Ill see if you missed anything. I already saw you missed something in the Skills class that is kinda important :P[/QUOTE]
you want 10x hits serversided...

@OP
[CODE]
public int getHpBoost() {
int[] helms = { 20135, 20137, 20149, 20147, 20159, 20161 };
int[] body = { 20139, 20141, 20151, 20153, 20163, 20165 };
int[] legs = { 20143, 20145, 20155, 20157, 20167, 20169 };
int hp = 0;
if (contains(helms)) {
hp += 66;
}
if (contains(body)) {
hp += 200;
}
if (contains(legs)) {
hp += 134;
}
return hp;
}
[/CODE]
lol.

Share this post


Link to post
Share on other sites
@The hitting 990s.
I recall having this glitch when I was making it, I must have forgotten where it was.

I'm pretty sure it's you guys having *10 in your source still.
Is your hp bar at least still going down?

Share this post


Link to post
Share on other sites
I don't understand why yours aren't working, mine's working 100% including the boosts...

@Steve, what's wrong with that...?

@Glitchs
In seems that your guys' glitches are in your hit methods.
So, here's mine:

[CODE]public void hit(int damage) {
if (damage > getHp()) {
damage = hp;
}
if (getHp() <= 0) {
damage = 0;
}
if (damage == 0) {
hit(damage, Hits.HitType.NOTHING, Hits.IconType.NO_HIT);
} else {
hit(damage, Hits.HitType.NORMAL_DAMAGE, Hits.IconType.NOTHING);
}
}

public void meleeHit(int damage) {
if (damage > getHp()) {
damage = hp;
}
if (getHp() <= 0) {
damage = 0;
}
if (damage == 0) {
hit(damage, Hits.HitType.NOTHING, Hits.IconType.NO_HIT);
} else {
hit(damage, Hits.HitType.NORMAL_DAMAGE, Hits.IconType.MELEE);
}
}

public void mageHit(int damage) {
if (damage > getHp()) {
damage = hp;
}
if (getHp() <= 0) {
damage = 0;
}
if (damage == 0) {
hit(damage, Hits.HitType.NOTHING, Hits.IconType.NO_HIT);
} else {
hit(damage, Hits.HitType.NORMAL_DAMAGE, Hits.IconType.MAGE);
}
}

public void rangeHit(int damage) {
if (damage > getHp()) {
damage = hp;
}
if (getHp() <= 0) {
damage = 0;
}
if (damage == 0) {
hit(damage, Hits.HitType.NOTHING, Hits.IconType.NO_HIT);
} else {
hit(damage, Hits.HitType.NORMAL_DAMAGE, Hits.IconType.RANGE);
}
}

public void hit(int damage, Hits.HitType type, Hits.IconType icon) {
try {
if (damage > hp) {
damage = hp;
}
if (!updateFlags.isHitUpdateRequired()) {
getHits().setHit1(new Hit(damage, type, icon));
updateFlags.setHitUpdateRequired(true);
} else {
if (!updateFlags.isHit2UpdateRequired()) {
getHits().setHit2(new Hit(damage, type, icon));
updateFlags.setHit2UpdateRequired(true);
} else {
queuedHits.add(new Hit(damage, type, icon));
}
}
skills.hit(damage);
if (hp <= 0) {
if (!this.isDead()) {
World.getInstance().registerEvent(new DeathEvent(this));
}
this.setDead(true);
}
} catch (Exception e) {
}
}[/CODE]

Share this post


Link to post
Share on other sites
Sign in to follow this  

×