Hp and Mp Pouches for Pets!

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?
 
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.
 
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.
 
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
 
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
 
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?...
 
Back