def SemiNDSi(siSkill,dummySkill,delay,on,attackSpeed): Terminal.SetCheckBox("Auto Attack",False) Terminal.SetRadioButton("SIRadioMelee",True) Terminal.SetCheckBox("MonkeySpiritsNDcheck",False) count = 0 if siSkill != 32120055: delay = 30*math.ceil(delay*1000 * (10+attackSpeed)/480)/1000 print("The delay for skill {} is {}, starting si".format(siSkill,delay)) if siSkill in [5311000,5301000]: sleepTime = 0.161 elif siSkill not in [25101000,25121000]: sleepTime = 0.211 else: sleepTime = 0.101 while Field.GetCharacterCount()<=1 and Field.GetEliteState() !=2 and len(Field.GetMobs())>0 and not Terminal.IsRushing() and GameState.IsInGame() and not Terminal.GetRadioButton("SIRadioDragon") and on: Terminal.SetCheckBox("Skill Injection",True) Terminal.SetLineEdit("SISkillID",str(siSkill)) Terminal.SetCheckBox("Melee No Delay",True) Terminal.SetSpinBox("SkillInjection",17) time.sleep(sleepTime) #Terminal.SetCheckBox("Melee No Delay",False) Terminal.SetLineEdit("SISkillID",str(dummySkill)) time.sleep(0.043) Terminal.SetCheckBox("Skill Injection",False) time.sleep(delay+0.05) #if Terminal.IsRushing(): # break if (siSkill == 27111303 or siSkill == 27121303) and not(Character.HasBuff(2,20040220) or Character.HasBuff(2,20040219)): break count += 1 print("Si ended due to break options")
if GameState.IsInGame() and not Terminal.IsRushing(): time.sleep(1) for harvest in collectID: herbore = Field.FindReactor(harvest) if herbore.valid: print("Found herb/Ore with ID {0}".format(herbore.id)) SCLib.UpdateVar("noReactorInMap", False) break else: print("Did not find any herb/Ore with ID {0}".format(harvest)) SCLib.UpdateVar("noReactorInMap", True) if herbore.valid: if Field.GetCharacterCount() != 0: ChangeChannels() else: maxX = herbore.x - 1 minX = herbore.x - 60 maxY = herbore.y + 10 minY = herbore.y - 10 newX = herbore.x - 1 newY = herbore.y - 9 if pos.x < minX or pos.x > maxX or pos.y < minY or pos.y > maxY: if TeleportAttempt < 3: ResetHarvestAttempt() print("Teleporting Attempt {0}".format( SCLib.GetVar("TeleportAttempt") + 1)) Character.Teleport(newX, newY) SCLib.UpdateVar("TeleportAttempt",