def Kishin(pump=3): safe = True for player in Field.GetCharacters(): if not Terminal.IsLocalUser(player.id): safe = False if safe: for i in range(pump): Character.UseSkill(42111003) time.sleep(1)
def ToPortal(portal, enter=True, safe=False): map = Field.GetID() if safe: for char in Field.GetCharacters(): if not Terminal.IsLocalUser(char.id): return False portal = Field.FindPortal(portal) if portal.valid: AAFlag = False kamiFlag = False if Terminal.GetCheckBox("Auto Attack"): AAFlag = True CheckBox("Auto Attack", False) if Terminal.GetCheckBox("Kami Vac"): kamiFlag = True CheckBox("Kami Vac", False) time.sleep(1) if not (Character.GetPos().x < portal.x+5 and Character.GetPos().x > portal.x-5) \ or not (Character.GetPos().y < portal.y+10 and Character.GetPos().y > portal.y-10): Character.Teleport(portal.x, portal.y - 20) time.sleep(1) attempt = 0 while enter and Field.GetID() == map and attempt < 3: if (Character.GetPos().x < portal.x + 5 and Character.GetPos().x > portal.x - 5): attempt += 1 Character.EnterPortal() time.sleep(2) if AAFlag: CheckBox("Auto Attack", True) if kamiFlag: CheckBox("Kami Vac", True)