What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

[REQUEST] Can learn active skills but can't learn Passivebuffs

Ottomans

New Member
Joined
Aug 30, 2015
Messages
27
Reaction score
0
What's wrong in here?? I can send whole .cs file in pm I need to learn Painful Rescharge and Wild Instincts help me out please

Regards

Code:
        public void InitSkillSets()
        {
            passiveBuffsToLearn = new List<uint>()
            {
                //Vitalism
                753,//Painful Recharge

                //Archery
                486,//Wild Instincts
        };

Code:
            foreach (var skill in host.me.getSkillsCanBeLearned())
            {
                if (skill.type == BotTypes.Buff)
                {
                    if (passiveBuffsToLearn.Contains((skill as Buff).dbPassiveBuff.id))
                    {
                        if (skill.Learn())
                            host.Log("Learn passive buff " + (skill as Buff).name);
                        Thread.Sleep(2000);
                    }
                }
                else if (skill.type == BotTypes.Skill)
                {
                    if (activeSkillsToLearn.Contains((skill as Skill).db.id))
                    {
                        if (skill.Learn())
                        {
                            host.Log("Learn skill " + (skill as Skill).name);
                            List<ActionSlot> slotsCanBeUsed = host.me.getActionSlots().FindAll(s => s.slotId >= 1 && s.slotId <= 48 && s.actionId == 0);
                            byte randCell = (byte)randGenerator.Next(0, slotsCanBeUsed.Count);
                            if (slotsCanBeUsed.Count > 0)
                            {
                                host.getSkill((skill as Skill).db.id).AddToActionPanel(slotsCanBeUsed[randCell].slotId);
                                host.Log("Move skill to panel " + (skill as Skill).name + " to cell #" + slotsCanBeUsed[randCell].slotId);
                            }
                        }
                        Thread.Sleep(2000);
                    }
                }
            }
 
Back
Top