AthlonJedi Administrator
Posts : 213 Join date : 2012-07-19 Location : Walkerton, Indiana
| Subject: Mars.jar confusion Wed 29 May - 8:35 | |
| I have some confusion as I am not that good with java yet. In this tutorial : http://www.multiversemmo.com/site/w/index.php/Add_in_a_Release_box_in_the_UI_that_shows_up_upon_DeathThere is a section that says: - Quote :
The final thing you will want to add is the setting of health upon releasing. By default when you release you come back with only 1hp. The best way to fix this is to go into the CombatPlugin.java file, located in MARS, and edit the ReleaseObjectHook code.
We want to replace this line here: - Code:
-
info.statSetBaseValue("health", 1);
with: - Code:
-
int currentmaxhp = info.statGetCurrentValue("health-max"); int currenthp = = currentmaxhp / 2; info.statSetBaseValue("health", currenthp);
but when I look in Mars.jar in the CombatPlugin.class file with netbeans all I see is this: - Code:
-
class ReleaseObjectHook implements multiverse.server.engine.Hook {
ReleaseObjectHook() { //compiled code throw new RuntimeException("Compiled Code"); }
I am thinking I am looking in the wrong place but, I dont know where to find the accual code I am supposed to change. any pointers would be appreciated! | |
|
AthlonJedi Administrator
Posts : 213 Join date : 2012-07-19 Location : Walkerton, Indiana
| Subject: Re: Mars.jar confusion Wed 29 May - 11:07 | |
| Nevermind, I found it,
It is in src folder lol | |
|