Username: Password:

Author Topic: Bot heal Spell and Attack spells  (Read 3866 times)

Offline Yes Science

  • Bug
  • *
  • Posts: 12
  • Cookies 0
  • I love Mindee-BOT!
    • View Profile
Bot heal Spell and Attack spells
« on: February 27, 2016, 02:52:54 PM »
Hello everyone , Mindee BOT must uptade usables --   bot can heal and spells good . But must added when hp low not use attack spells just focus heal spells  [dumbme] , this function not have on the bot. When i hunt and hp down 40% my wiz use attck spells and i cant reflesh :( . Please add this function too

When attck spells stop --- Hp below = ..%
Rhanks [pokerface]



Offline =Mindee=

  • Commander Shepard
  • BOT Developer Administrator
  • Dragon
  • *****
  • Posts: 2,788
  • Cookies 9020
  • We'll bang, OKAY?
    • View Profile
    • http://mindee-bot.com
Re: Bot heal Spell and Attack spells
« Reply #1 on: February 27, 2016, 04:06:23 PM »
Wrong.
Healing spell is a primary spell. (Unless you're trapped)

Code: [Select]
                    if (this.usehealingspell.Checked && this.hpspellnumeric_val >= Client.getPercent(getPlayer().currenthp, getPlayer().maxhp) && getPlayer().currentmp >= (int)this.hpspellManaVal.Value && BotControlsN.isGood())
                        getPlayer().useItem((int)this.hpspellslot.Value, 4);
                    else if (this.usebuff.Checked && getPlayer().isMonstersAround(false, 3) && getPlayer().currentmp >= (int)this.buffmp.Value)
                        getPlayer().useItem((int)this.buffslot.Value, 3);
                    else if (this.usespell.Checked && getPlayer().currentmp >= (int)this.spellManaVal.Value)
                    {}


Mindee-BOT creator, founder and developer.

Offline MegaMind

  • Administrator
  • Mantis
  • *****
  • Posts: 513
  • Cookies 14
    • View Profile
Re: Bot heal Spell and Attack spells
« Reply #2 on: February 27, 2016, 08:20:14 PM »

Code: [Select]
                    if (this.usehealingspell.Checked && this.hpspellnumeric_val >= Client.getPercent(getPlayer().currenthp, getPlayer().maxhp) && getPlayer().currentmp >= (int)this.hpspellManaVal.Value && BotControlsN.isGood())
                        getPlayer().useItem((int)this.hpspellslot.Value, 4);
                    else if (this.usebuff.Checked && getPlayer().isMonstersAround(false, 3) && getPlayer().currentmp >= (int)this.buffmp.Value)
                        getPlayer().useItem((int)this.buffslot.Value, 3);
                    else if (this.usespell.Checked && getPlayer().currentmp >= (int)this.spellManaVal.Value)
                    {}
piece of heaven  [ummmm]