PDA

View Full Version : [562]100% Saradomin Brew



David
July 21st, 2010, 19:55
Hello everyone,
After I saw the post of Niator, I kept thinking of making a guide for REAL sara brews.
So here it is. hf leaching, but please reply on this post with bugs or anything.

Source tested on: PkzEvolutionscape[562]
Difficulty: 1/10 Its just copy and pasting.

__________________________________________________ _____________________

1. To start off, go to

src/com/rs2hd/model
You will find a file named

Skills.java
Open it and search for

public void RestorePray
You will see something like:

public void RestorePray(int hitDiff) {
try {
level[5] += hitDiff;
int max = getLevelForXp(5);
if(level[5] > max) {
level[5] = max;
}
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
} catch(Exception e) {
}
}

2. Add the following beneath it:

public void boostDefence(int hitDiff) {
try {
level[1] += hitDiff;
int max = (int) ((player.getSkills().getLevelForXp(0)*1.21) + 0.25);
if(level[1] > max) {
level[1] = max;
}
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
} catch(Exception e) {
}
}
public void drainAttack(int hitDiff) {
try {
level[0] -= hitDiff;
int max = 0;
if(level[0] < max) {
level[0] = max;
}
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
} catch(Exception e) {
}
}
public void drainStrength(int hitDiff) {
try {
level[2] -= hitDiff;
int max = 0;
if(level[2] < max) {
level[2] = max;
}
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
} catch(Exception e) {
}
}
public void drainMagic(int hitDiff) {
try {
level[6] -= hitDiff;
int max = 6;
if(level[6] < max) {
level[6] = max;
}
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
} catch(Exception e) {
}
}
public void drainRanged(int hitDiff) {
try {
level[4] -= hitDiff;
int max = 0;
if(level[4] < max) {
level[4] = max;
}
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
} catch(Exception e) {
}
}

Explanation: What you did now is setting up if it boosts or drains the skill. You've also set a maximum level so you can't get like -65 attack or 452 defence.

Then save and close it.

3. Next go to

src/com/rs2hd/packethandler
Then open the file named:

ItemPacketHandler.java
and search for

case 139:
You'll see something like

case 139:
case 141:
case 143:
if (player.potDelay == 0) {
player.getInventory().deleteItem(itemId, 1);
if (itemId != 143) {
player.getInventory().addItem(itemId+2, 1);
} else {
player.getInventory().addItem(229, 1);
}
int abc = (int) ((player.getSkills().getLevelForXp(5)/4) + 7);
player.getSkills().RestorePray(abc);
player.animate(829, 0);
player.combatDelay += 4;
player.potDelay = 3;
}
break;
4. Add the following under it:

case 6685:
case 6687:
case 6689:
case 6691:
if (player.potDelay == 0) {
player.getInventory().deleteItem(itemId, 1);
if (itemId != 6691) {
player.getInventory().addItem(itemId+2,1);
} else {
player.getInventory().addItem(229,1);
}
int abc = (int) ((player.getSkills().getLevelForXp(1)/4) + 0);
int cbc = (int) ((player.getSkills().getLevelForXp(0)/11) + 0);
int bbc = (int) ((player.getSkills().getLevelForXp(2)/11) + 0);
int deg = (int) ((player.getSkills().getLevelForXp(4)/11) + 0);
int mag = (int) ((player.getSkills().getLevelForXp(6)/11) + 0);
player.getSkills().heal(16);
player.getSkills().boostDefence(abc);
player.getSkills().drainAttack(cbc);
player.getSkills().drainStrength(bbc);
player.getSkills().drainRanged(deg);
player.getSkills().drainMagic(mag);
player.animate(829, 0);
player.combatDelay += 4;
player.potDelay = 3;
}
break;

Explanation: You just made how much it heals, how much it drains/boosts and how the pots degrease as you use them.

5. Save, close, compile
AND YOUR DONE!
Congratulations, you've got 100% working Saradomin Brew's!

If you want to have Niators brews, please go to his topic on how to make them. (Only the registered members can see the link.!-562)

Credits: 100% to me
-Rise Against

Cart
July 21st, 2010, 20:37
There, I posted happy?
:P

David
July 21st, 2010, 20:39
loool, give feedback little kiddo ;D

James
July 21st, 2010, 21:21
good tut!

Defil3d ko3d
July 21st, 2010, 21:29
I got 30 errors...
Ill make it back to the defaults on it then I'll try again.
I'll post the errors aswell.

public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: hitDiff is already defined in RestorePray(in
t)
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: hitDiff is already defined in RestorePray(i
nt)
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: hitDiff is already defined in RestorePray(i
nt)
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: hitDiff is already defined in RestorePray(i
nt)
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: hitDiff is already defined in RestorePray(i
nt)
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :377: cannot find symbol
symbol : method BoostDefence(int)
location: class com.rs2hd.model.Skills
player.getSkills().BoostDefence(abc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :378: cannot find symbol
symbol : method DrainAttack(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainAttack(cbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :379: cannot find symbol
symbol : method DrainStrength(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainStrength(bbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :380: cannot find symbol
symbol : method DrainRanged(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainRanged(deg);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :381: cannot find symbol
symbol : method DrainMagic(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainMagic(mag);
^
30 errors
Compiling logging system...
src\com\rs2hd\model\Skills.java:88: illegal start of expression
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: illegal start of expression
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: ';' expected
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: ';' expected
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: illegal start of expression
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: illegal start of expression
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: ';' expected
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: ';' expected
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: hitDiff is already defined in RestorePray(in
t)
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: hitDiff is already defined in RestorePray(i
nt)
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: hitDiff is already defined in RestorePray(i
nt)
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: hitDiff is already defined in RestorePray(i
nt)
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: hitDiff is already defined in RestorePray(i
nt)
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :377: cannot find symbol
symbol : method BoostDefence(int)
location: class com.rs2hd.model.Skills
player.getSkills().BoostDefence(abc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :378: cannot find symbol
symbol : method DrainAttack(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainAttack(cbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :379: cannot find symbol
symbol : method DrainStrength(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainStrength(bbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :380: cannot find symbol
symbol : method DrainRanged(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainRanged(deg);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :381: cannot find symbol
symbol : method DrainMagic(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainMagic(mag);
^
30 errors
Complete.
src\com\rs2hd\model\Skills.java:88: illegal start of expression
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: illegal start of expression
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: ';' expected
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: ';' expected
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: illegal start of expression
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: illegal start of expression
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: ';' expected
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: ';' expected
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: hitDiff is already defined in RestorePray(in
t)
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: hitDiff is already defined in RestorePray(i
nt)
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: hitDiff is already defined in RestorePray(i
nt)
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: hitDiff is already defined in RestorePray(i
nt)
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: hitDiff is already defined in RestorePray(i
nt)
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :377: cannot find symbol
symbol : method BoostDefence(int)
location: class com.rs2hd.model.Skills
player.getSkills().BoostDefence(abc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :378: cannot find symbol
symbol : method DrainAttack(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainAttack(cbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :379: cannot find symbol
symbol : method DrainStrength(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainStrength(bbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :380: cannot find symbol
symbol : method DrainRanged(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainRanged(deg);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :381: cannot find symbol
symbol : method DrainMagic(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainMagic(mag);
^
30 errors
Complete.
Press any key to continue . . .

Niator
July 21st, 2010, 21:52
Hello everyone,
After I saw the post of Niator, I kept thinking of making a guide for REAL sara brews.

Pfft... I tink mine was REAL enough -.-'

David
July 21st, 2010, 22:29
I got 30 errors...
Ill make it back to the defaults on it then I'll try again.
I'll post the errors aswell.

public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: hitDiff is already defined in RestorePray(in
t)
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: hitDiff is already defined in RestorePray(i
nt)
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: hitDiff is already defined in RestorePray(i
nt)
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: hitDiff is already defined in RestorePray(i
nt)
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: hitDiff is already defined in RestorePray(i
nt)
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :377: cannot find symbol
symbol : method BoostDefence(int)
location: class com.rs2hd.model.Skills
player.getSkills().BoostDefence(abc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :378: cannot find symbol
symbol : method DrainAttack(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainAttack(cbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :379: cannot find symbol
symbol : method DrainStrength(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainStrength(bbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :380: cannot find symbol
symbol : method DrainRanged(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainRanged(deg);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :381: cannot find symbol
symbol : method DrainMagic(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainMagic(mag);
^
30 errors
Compiling logging system...
src\com\rs2hd\model\Skills.java:88: illegal start of expression
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: illegal start of expression
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: ';' expected
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: ';' expected
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: illegal start of expression
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: illegal start of expression
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: ';' expected
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: ';' expected
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: hitDiff is already defined in RestorePray(in
t)
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: hitDiff is already defined in RestorePray(i
nt)
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: hitDiff is already defined in RestorePray(i
nt)
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: hitDiff is already defined in RestorePray(i
nt)
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: hitDiff is already defined in RestorePray(i
nt)
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :377: cannot find symbol
symbol : method BoostDefence(int)
location: class com.rs2hd.model.Skills
player.getSkills().BoostDefence(abc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :378: cannot find symbol
symbol : method DrainAttack(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainAttack(cbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :379: cannot find symbol
symbol : method DrainStrength(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainStrength(bbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :380: cannot find symbol
symbol : method DrainRanged(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainRanged(deg);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :381: cannot find symbol
symbol : method DrainMagic(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainMagic(mag);
^
30 errors
Complete.
src\com\rs2hd\model\Skills.java:88: illegal start of expression
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: illegal start of expression
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: ';' expected
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: ';' expected
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: illegal start of expression
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: illegal start of expression
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: ';' expected
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: ';' expected
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: illegal start of expression
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: ';' expected
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: illegal start of expression
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: ';' expected
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: illegal start of expression
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: ';' expected
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:88: hitDiff is already defined in RestorePray(in
t)
public void BoostDefence(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:100: hitDiff is already defined in RestorePray(i
nt)
public void DrainAttack(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:112: hitDiff is already defined in RestorePray(i
nt)
public void DrainStrength(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:124: hitDiff is already defined in RestorePray(i
nt)
public void DrainMagic(int hitDiff) {
^
src\com\rs2hd\model\Skills.java:136: hitDiff is already defined in RestorePray(i
nt)
public void DrainRanged(int hitDiff) {
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :377: cannot find symbol
symbol : method BoostDefence(int)
location: class com.rs2hd.model.Skills
player.getSkills().BoostDefence(abc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :378: cannot find symbol
symbol : method DrainAttack(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainAttack(cbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :379: cannot find symbol
symbol : method DrainStrength(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainStrength(bbc);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :380: cannot find symbol
symbol : method DrainRanged(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainRanged(deg);
^
src\com\rs2hd\packethandler\ItemPacketHandler.java :381: cannot find symbol
symbol : method DrainMagic(int)
location: class com.rs2hd.model.Skills
player.getSkills().DrainMagic(mag);
^
30 errors
Complete.
Press any key to continue . . .

You've added it wrong if you get that lawl.


Pfft... I tink mine was REAL enough -.-'

Yours only healed and didn't even healed the correct amount of hp.

Niator
July 21st, 2010, 22:31
Yours only healed and didn't even healed the correct amount of hp.
-.-'
BUT ANYWAYS! This looks really cool and I'm going to try it :P

Niator
July 21st, 2010, 22:40
Oh! :P And ty for link to my post! Makes me look like an idiot! <3

David
July 22nd, 2010, 10:22
-.-'
BUT ANYWAYS! This looks really cool and I'm going to try it :P

Thank you :)



Oh! :P And ty for link to my post! Makes me look like an idiot! <3

Haha, I thought: Lets be nice, and give them the opportunity to have a look as his tut too ;)

Niator
July 22nd, 2010, 10:27
When you have made this, u GOT TO make a restore pot too!!

David
July 22nd, 2010, 10:28
Haha, true. I'll start on them now ;)

Niator
July 22nd, 2010, 10:28
EDIT: Ooops... Din't read carefully enough :P
AND I'm from norway! :P So EDITED!

David
July 22nd, 2010, 10:36
EDIT: Ooops... Din't read carefully enough :P
AND I'm from norway! :P So EDITED!

Okay lol, should I make Restore Pots & Super Restore?

David
July 22nd, 2010, 10:53
Restore pots added
Only the registered members can see the link.

teemuzz
July 22nd, 2010, 16:46
lol, go ahead
3lvl
then you drink these
110 str
you go 1hitk0 25 lvls and say
GF NOOB.

David
July 22nd, 2010, 21:33
lol, go ahead
3lvl
then you drink these
110 str
you go 1hitk0 25 lvls and say
GF NOOB.

They don't boost str nerd..... The boost defence, but as you say. I'll fix it.

sl1pknot94
October 2nd, 2010, 02:30
yo thanks dude, its great..but shouldn't it heal more than 99, i mean go over 99 ? that would be great if u can do it..

Dodge'
October 2nd, 2010, 02:44
nice job :)

scootersam
October 2nd, 2010, 12:58
nice nice man may i ask if it eats the whole pot or works propperly? cus atm they do :(

Stacx
October 2nd, 2010, 13:02
Pretty dumb creating so many methods.


public void drainSkill(int skill, int hitDiff) {
level[skill] -= hitDiff;
int max = 0;
if(level[skill] < max) {
level[4] = max;
}
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
}

scootersam
October 2nd, 2010, 13:04
good point stacx ive starting rewriting my pots so that there in a dif file and alot easyer :)

Axu
October 2nd, 2010, 13:23
nice guide!
I kinda fail because first time i did this and compiled didn't get any errors.
Then my computer got reset and did this again.. 30 errors haha:D!

David
October 3rd, 2010, 11:09
nice nice man may i ask if it eats the whole pot or works propperly? cus atm they do :(

It should workd properly, when no drinks left a vial is over.



Pretty dumb creating so many methods.


public void drainSkill(int skill, int hitDiff) {
level[skill] -= hitDiff;
int max = 0;
if(level[skill] < max) {
level[4] = max;
}
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
}

dude, idfc lol
I quit rsps just posting for fun and seeing how people fail like you tryin' to troll ;)

Stacx
October 3rd, 2010, 11:31
It should workd properly, when no drinks left a vial is over.




dude, idfc lol
I quit rsps just posting for fun and seeing how people fail like you tryin' to troll ;)

You've got no idea what trolling means then, +csb'd.

David
October 3rd, 2010, 12:01
You've got no idea what trolling means then, +csb'd.

I know what trolling means, I never said you where trollin', I said you where tryin' to troll in which you are failing hard. Now if you don't like this topic just gtfu and search a life, okay?

Emperor
October 3rd, 2010, 12:03
You have horrible naming conventions, sir.

David
October 3rd, 2010, 13:48
You have horrible naming conventions, sir.

I know, but it doesn't matters lol, as long as it works ;)

apache ah64
October 12th, 2010, 17:14
is sara brew not already added to like all 562 servers?

Cart
October 12th, 2010, 22:05
is sara brew not already added to like all 562 servers?

Added, but cant be eaten.

Anthony`
October 13th, 2010, 00:20
Instead of having like, 4 different methods for the same general idea,


public void DrainSkill(int hitDiff, int skill, int max) {
level[skill] -= hitDiff;
if(level[skill] < max)
level[skill] = max;
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
}

Also, why do you use try-catch statements when they arent needed?

Charlie`
October 13th, 2010, 00:48
Nice Tutorial Mate, Helps The New People O.O :)

David
October 13th, 2010, 17:26
Nice Tutorial Mate, Helps The New People O.O :)

Thanks, although I still have to fix a single bug.

David
October 13th, 2010, 17:41
Also, why do you use try-catch statements when they arent needed?

You get error's when you don't.

Anthony`
October 13th, 2010, 21:06
Unless those methods throw an exception, then you dont need it. But I never used the source so I wouldnt know, but you still should be using my first method.

Stacx
October 14th, 2010, 08:18
Instead of having like, 4 different methods for the same general idea,


public void DrainSkill(int hitDiff, int skill, int max) {
level[skill] -= hitDiff;
if(level[skill] < max)
level[skill] = max;
player.getActionSender().sendSkillLevels();
player.getUpdateFlags().setAppearanceUpdateRequire d(true);
}

Also, why do you use try-catch statements when they arent needed?

Basically what I posted few posts earlier, try/catch sections will just waste mem on things like this, plus for some reason the method names are capitalized. ;P

johnniecoke
April 10th, 2011, 16:30
Thanks, I used this.

David
April 10th, 2011, 16:31
Thanks, I used this.

Huge gravedig but okay, your welcome ;P