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!

Master Summoner
Loyal Member
Joined
Apr 20, 2008
Messages
578
Reaction score
76
Re: [Release] Hp and Mp Pouches for Pets!

Suggestion: Make the player be able to set which item the autoHP/MP uses.
 
Experienced Elementalist
Joined
Jun 25, 2008
Messages
260
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

so basically once we set w/e our hp is and once we get under that our pet uses a pot we have in our invent and heals us?
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

yeah, but in this case, its only one item that you choose in the script, not just any potion you are holding. =( I wasnt sure how to make it any potion. But me and Bavilo are making an alternative that will just take mesos.
 
Experienced Elementalist
Joined
Jun 25, 2008
Messages
260
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

oo good luck on the alternative method looking forward to it :D
 
Skilled Illusionist
Joined
Apr 29, 2008
Messages
310
Reaction score
1
Re: [Release] Hp and Mp Pouches for Pets!

any chance u can make this work with all pots
 
Banned
Banned
Joined
Jun 21, 2008
Messages
143
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

Here's the alternative Method for making it use Mesos.

PHP:
if (hpp || mpp) {
                    if (hpp) {                        
                        if (player.getHp() < player.getAuto("hp") && player.getMeso() >= 10000) {                              
                                    c.getPlayer().gainMeso(-10000, true, false, true);
                                    mii.getItemEffect(2000005).applyTo(c.getPlayer());
                                
                    }
                    }
                    
                    if (mpp) {
                        if (player.getMp() < player.getAuto("mp") && player.getMeso() >= 10000) {   
                                c.getPlayer().gainMeso(-10000, true, false, true);
                                    mii.getItemEffect(2000005).applyTo(c.getPlayer());
                    }
                    
                }
                
        }

basically what it does:

it checks if you have 10k mesos.
if you do, it will remove 10k mesos from your inventory, then use a power elixir.

You don't actually have to have a power elixir in your inventory, it will just give you the effect of the elixir.
 
Experienced Elementalist
Joined
Jun 25, 2008
Messages
260
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

Here's the alternative Method for making it use Mesos.

PHP:
if (hpp || mpp) {
                    if (hpp) {                        
                        if (player.getHp() < player.getAuto("hp") && player.getMeso() >= 10000) {                              
                                    c.getPlayer().gainMeso(-10000, true, false, true);
                                    mii.getItemEffect(2000005).applyTo(c.getPlayer());
                                
                    }
                    }
                    
                    if (mpp) {
                        if (player.getMp() < player.getAuto("mp") && player.getMeso() >= 10000) {   
                                c.getPlayer().gainMeso(-10000, true, false, true);
                                    mii.getItemEffect(2000005).applyTo(c.getPlayer());
                    }
                    
                }
                
        }

basically what it does:

it checks if you have 10k mesos.
if you do, it will remove 10k mesos from your inventory, then use a power elixir.

You don't actually have to have a power elixir in your inventory, it will just give you the effect of the elixir.

woot thanks im gonna test
 
Junior Spellweaver
Joined
Apr 6, 2008
Messages
140
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

That's a good release ty ^^
 
Newbie Spellweaver
Joined
Jun 17, 2008
Messages
46
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

Disable this in pvp maps?

PS: This might help ppl who want to bot lol
 
Elite Diviner
Joined
Apr 7, 2008
Messages
494
Reaction score
66
Re: [Release] Hp and Mp Pouches for Pets!

I Believe Use ll < Or Statment To Add All Potion,So Much Better
 
Legendary Battlemage
Joined
May 23, 2008
Messages
628
Reaction score
4
Re: [Release] Hp and Mp Pouches for Pets!

Btw... Can't you just simply change the type of pots by changing the item id...
 
Elite Diviner
Joined
Apr 7, 2008
Messages
494
Reaction score
66
Re: [Release] Hp and Mp Pouches for Pets!

No It Is Not Disable.Learn Read Code.

Hint Go Your PvpHandler Disable Pets From Coming Out Much Easier.
 
Skilled Illusionist
Joined
Apr 29, 2008
Messages
310
Reaction score
1
Re: [Release] Hp and Mp Pouches for Pets!

Here's the alternative Method for making it use Mesos.

PHP:
if (hpp || mpp) {
                    if (hpp) {                        
                        if (player.getHp() < player.getAuto("hp") && player.getMeso() >= 10000) {                              
                                    c.getPlayer().gainMeso(-10000, true, false, true);
                                    mii.getItemEffect(2000005).applyTo(c.getPlayer());
                                
                    }
                    }
                    
                    if (mpp) {
                        if (player.getMp() < player.getAuto("mp") && player.getMeso() >= 10000) {   
                                c.getPlayer().gainMeso(-10000, true, false, true);
                                    mii.getItemEffect(2000005).applyTo(c.getPlayer());
                    }
                    
                }
                
        }

basically what it does:

it checks if you have 10k mesos.
if you do, it will remove 10k mesos from your inventory, then use a power elixir.

You don't actually have to have a power elixir in your inventory, it will just give you the effect of the elixir.

were do i add that lol
 
Banned
Banned
Joined
Jun 21, 2008
Messages
143
Reaction score
0
Re: [Release] Hp and Mp Pouches for Pets!

You can't define all pots, at least not with some complicated codeing. If you add more then one pot to it using ||, which pot is it gonna use?...
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

No It Is Not Disable.Learn Read Code.

Hint Go Your PvpHandler Disable Pets From Coming Out Much Easier.

Actually it is already disabled if using potions and food is disabled in pvp already. You learn to read code you idiot.
 
Elite Diviner
Joined
Apr 7, 2008
Messages
494
Reaction score
66
Re: [Release] Hp and Mp Pouches for Pets!

Bavilo,In GMS Any Pots Works For Hp/Mp Pouches,Beside You Must All The Potion So Becames Like GMS Like :punch:
 
Newbie Spellweaver
Joined
Mar 19, 2007
Messages
93
Reaction score
12
Re: [Release] Hp and Mp Pouches for Pets!

Actually you need to learn to read code, but you better work on your english first.
 
Back
Top