Exemplo n.º 1
0
 /*
                  *  def AddSkillToEnd(self, skillID, current, nextLevel = None):
                 queueLength = self.GetNumberOfSkillsInQueue()
                 if queueLength >= const.skillQueueMaxSkills:
                     eve.Message('CustomNotify', {'notify': localization.GetByLabel('UI/SkillQueue/QueueIsFull')})
                     return
                 totalTime = self.GetTrainingLengthOfQueue()
                 if totalTime > const.skillQueueTime:
                     eve.Message('CustomNotify', {'notify': localization.GetByLabel('UI/SkillQueue/QueueIsFull')})
                     return
                 if nextLevel is None:
                     queue = self.GetServerQueue()
                     nextLevel = self.FindNextLevel(skillID, current, queue)
                 self.AddSkillToQueue(skillID, nextLevel)
         */
 public bool AddSkillToEnd(EveSkill skill, int crlvl)
 {
     if (Frame.Client.GetService("skillqueue").IsValid)
     {
         Frame.Client.GetService("skillqueue").CallMethod("AddSkillToEnd", new object[] { skill.typeID, crlvl }, true);
         return true;
     }
     return false;
 }
Exemplo n.º 2
0
 //needs testing
 public bool RemoveSkillFromQueue(EveSkill skill, int skilllvl)
 {
     if (Frame.Client.GetService("skillqueue").IsValid)
         {
             Frame.Client.GetService("skillqueue").CallMethod("RemoveSkillFromQueue", new object[] { skill.typeID, skilllvl }, true);
             return true;
         }
         return false;
 }