PDA

View Full Version : [562] Making Saradomin Brew! [562]



Niator
July 15th, 2010, 11:46
Okay, I will not be showing you how to make a Saradomin Brew that works just the same way as in runescape, but I will show you how to make a saradomin heal X amount hitpoints. It's smart cus you have 4 doses of it and if you got a bag full of saradomin brews that heals 20 hp each dose, then you have
4x20=80 80x28=2240 hitpoints, and thats alot!

EDIT: Yeah I know I am a noob and this is easy for many, but I am just trying to help other noobs :D

1. Okay, you got to open the "ItemPacketHandler.java" found in

src\com\rs2hd
Then you can paste this in:

case 6685:
if (player.potDelay == 0) {
player.getInventory().deleteItem(6685, 1);
player.getInventory().addItem(6687, 1);
player.getSkills().heal(20);
player.animate(829, 0);
player.sm("Your drink the Saradomin Brew.");
player.potDelay = 1;
}
break;
case 6687:
if (player.potDelay == 0) {
player.getInventory().deleteItem(6687, 1);
player.getInventory().addItem(6689, 1);
player.getSkills().heal(20);
player.animate(829, 0);
player.sm("Your drink the Saradomin Brew.");
player.potDelay = 1;
}
break;
case 6689:
if (player.potDelay == 0) {
player.getInventory().deleteItem(6689, 1);
player.getInventory().addItem(6691, 1);
player.getSkills().heal(20);
player.animate(829, 0);
player.sm("Your drink the Saradomin Brew.");
player.potDelay = 1;
}
break;
case 6691:
if (player.potDelay == 0) {
player.getInventory().deleteItem(6691, 1);
player.getInventory().addItem(229, 1);
player.getSkills().heal(20);
player.animate(829, 0);
player.sm("Your drink the Saradomin Brew.");
player.potDelay = 1;
}
break;

That makes it heal 20 hp each dose. :D

110% credits to meh! :D

nickyboy304
July 16th, 2010, 00:29
lawl, good job. xD

Geo
July 16th, 2010, 03:31
wasn't this keiron's tutorial lol, but he did it in potions.py...

itempackethandler.java is for the potions you get errors from if you add them in potions.py, that's why my spec pots were in there...

420
July 16th, 2010, 04:14
Nice display picture XD, and uhm, does this give you bonus hp if your hp is full?

nickyboy304
July 16th, 2010, 04:20
wasn't this keiron's tutorial lol, but he did it in potions.py...

itempackethandler.java is for the potions you get errors from if you add them in potions.py, that's why my spec pots were in there...

obvs... that's why he said.. "Okay, you got to open the "ItemPacketHandler.java" found in" read.. before you post mate.

Niator
July 16th, 2010, 12:35
Nice display picture XD, and uhm, does this give you bonus hp if your hp is full?
Nope, they just heal 20hp and r great for corp!

David
July 16th, 2010, 17:19
Euhmmm, these give special..... -.-'

Niator
July 16th, 2010, 17:34
Euhmmm, these give special..... -.-'

Yeah sorry... It had a error so I rewrited it and copied some things to not get errors... I fix it now!

Darkness Revolt
July 16th, 2010, 17:37
Yeah sorry... It had a error so I rewrited it and copied some things to not get errors... I fix it now!

You mean you copied a code from someone else, and then didnt understand what it did, right?

David
July 16th, 2010, 17:37
So, you didn't checked it? That fails...

David
July 16th, 2010, 18:02
This still isn't the good Sara Brew....
It also lowers Attack, Strength, Ranged, and Magic.....

Niator
July 16th, 2010, 19:26
You mean you copied a code from someone else, and then didnt understand what it did, right?
No? I writed the script... and posted it here and I din't compile it before after i posted it and it had an error, and to not get an errror again I copied some of the lines from some other commands but then forgot to change them.

Niator
July 16th, 2010, 19:30
This still isn't the good Sara Brew....
It also lowers Attack, Strength, Ranged, and Magic.....
Read what i wrote on top of the topic...
I am still a noob and I am still learning.

crezzy
July 17th, 2010, 12:34
Hmm easy stuff.... and arnt sara brws suposed to lower ur stats and their drank? also you can keep drinking till your 2k hp like you said.... put a block on it like
if (player.Hp >= 130) {

Edit:Never mind I see your using the heal method thats allready got the block init.

fail brid`
July 17th, 2010, 12:41
nice, im gonna try to for my bro's 562.

Niator
July 17th, 2010, 22:06
nice, im gonna try to for my bro's 562.

Yay! Finally a nice comment ^^
Ty :D

Defil3d ko3d
July 18th, 2010, 19:36
Thanks for this!
Added it to my source :P :D

Niator
July 19th, 2010, 08:18
Thanks for this!
Added it to my source :P :D
Thanks for nice comment :3