Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Hp and Mp Pouches for Pets!

Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

Yeah, but you dont need the whole thing, only the top part and the two commands. It goes in your commandproccessor.java, but you need to put it in the right spot.
 
Experienced Elementalist
Joined
Jun 25, 2008
Messages
260
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

can you place it before the last "}"?
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

He prolly doesnt know how to do that either.....but, yeah boi, i think you can, it just doesnt go inside any of the gm commands.
Code:
if (line.charAt(0) == '!' && isGM)
            {
Make sure its not inside that.
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

Edit: I used reindeer milk for the auto hp item, and sunset dew for the mp item. These are the only items that work with this, but you can change them to whatever you want.

You mean these are the items that works for Auto HP and MP? How can we enable it for ALL pots ?
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

I havent figured out how to make it for all potions, but maybe someone else can. me and bavilo are gonna make an alternative where it wont use any pots, but take away mesos instead, and give 5k hp or mp
 
Experienced Elementalist
Joined
Jun 25, 2008
Messages
260
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

add these imports im not telling you where this is easy enuf
Code:
MapleInventory
MapleItemInformationProvider
ServernoticeMapleClientMessageCallback
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

I havent figured out how to make it for all potions, but maybe someone else can. me and bavilo are gonna make an alternative where it wont use any pots, but take away mesos instead, and give 5k hp or mp
Okay thanks :D
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

or boi, if netbeans, just ctrl + shift + i
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

Just a small question, where do i change the pots ? Like for e.g i wana change reindeer milk to power elixir, how can i do that ? Is it from movepethandler.java ?
 
Newbie Spellweaver
Joined
Jul 22, 2008
Messages
74
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

Yeah, but you dont need the whole thing, only the top part and the two commands. It goes in your commandproccessor.java, but you need to put it in the right spot.

lol, so wheres the right spot?
 
Experienced Elementalist
Joined
Jun 25, 2008
Messages
260
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

can i change it to this and will it still work?
Code:
else if (splitted[0].equals("@sethp"))
                        {
                            if (splitted.length > 1)
                {
                    int hp = Integer.parseInt(splitted[1]);
                                        player.setAuto("hp", hp);
                                        mc.dropMessage("You will be automatically healed if your hp goes below "+hp+"");
                        }
                        }
                        
else if (splitted[0].equals("@setmp"))
                        {
                            if (splitted.length > 1)
                {
                    int mp = Integer.parseInt(splitted[1]);
                                        player.setAuto("mp", mp);
                                        mc.dropMessage("You will be automatically healed if your mp goes below "+mp+"");
                        }
                        }
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

well, just look for the id's in the movepethandler.java, and icedtea, i already said where to put it
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

yeah boi, that will still work
 
Skilled Illusionist
Joined
Apr 29, 2008
Messages
310
Reaction score
1
Re: [Release] Hp and Mp Pouches for Pets!

i dont get it i fill my hp or the pets hp
and at what point does it fill my hp mp and mp,when(50%) is gone?
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

um it fills it at whatever number you set it to, thats what the command is for, it lets you have preference <_<. Example: I want my pet to heal me when my hp is below 5000. so i type the command #sethp 5000. And now my pet will heal me when my hp goes below that.
 
IHF
Joined
Apr 7, 2008
Messages
312
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

Yay it's working :D thanks.
 
Back
Top