Advertisement
cpscps

Untitled

Apr 25th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.64 KB | None | 0 0
  1. import GameState
  2. import Terminal
  3. import time
  4. import Key
  5. import Character
  6. import Field
  7.  
  8.  
  9.  
  10.  
  11. BladeTempest_Delay = 250
  12.  
  13. FinalCut = False ## using final cut is another way to avoid the client sided damage. Only set this to true if you arent macroing/using final cut in another script already. ##
  14.  
  15.  
  16. ############################ DONT TOUCH BELOW ############################
  17. ############################ DONT TOUCH BELOW ############################
  18. ############################ DONT TOUCH BELOW ############################
  19. ############################ DONT TOUCH BELOW ############################
  20. ############################ DONT TOUCH BELOW ############################
  21.  
  22. if FinalCut == True:
  23.     ### Memes dont look haha ###
  24.     SkillLevel = Character.GetSkillLevel(4341002)
  25.     Delay = SkillLevel * 2
  26.     Timeout = abs(Delay - 200)
  27.  
  28. if Terminal.GetSpinBox("settings/explogout") != 5:
  29.     Terminal.SetSpinBox("settings/explogout", 5)
  30. if Field.GetEliteState() == 2:
  31.     if Terminal.GetCheckBox("settings/explogout") != False:
  32.         Terminal.SetCheckBox("settings/explogout", False)
  33. else:
  34.     if Terminal.GetCheckBox("settings/explogout") != True:
  35.         Terminal.SetCheckBox("settings/explogout", True)
  36.  
  37. if Terminal.GetProperty("BladeTempestWait", -1) == -1:
  38.     Terminal.SetProperty("BladeTempestWait", 0)
  39. if Terminal.GetProperty("SkillCheck", -1) == -1:
  40.     Terminal.SetProperty("SkillCheck", False)
  41. if Terminal.GetProperty("ChannelHolder", -1) == -1:
  42.     Terminal.SetProperty("ChannelHolder", 0)
  43. if Terminal.GetProperty("MapHolder", -1) == -1:
  44.     Terminal.SetProperty("MapHolder", 0)
  45. if Terminal.GetProperty("TimerLel", -1) == -1:
  46.     Terminal.SetProperty("TimerLel", 0)
  47. if Terminal.GetProperty("FinalCutTimer", -1) == -1:
  48.     Terminal.SetProperty("FinalCutTimer", 0)
  49.  
  50.  
  51.  
  52.  
  53.  
  54. def Jinks(brimgang):
  55.     if Terminal.GetCheckBox("Ignore Skill Cooldown") != False:
  56.         Terminal.SetCheckBox("Ignore Skill Cooldown", False)
  57.     if Terminal.GetCheckBox("No Air Check") != True:
  58.         Terminal.SetCheckBox("No Air Check", True)
  59.     if Terminal.GetCheckBox("Skill Injection") != brimgang:
  60.         Terminal.SetCheckBox("Skill Injection", brimgang)
  61.     if Terminal.GetCheckBox("Melee No Delay") != brimgang:
  62.         Terminal.SetCheckBox("Melee No Delay", brimgang)
  63.     if Terminal.GetLineEdit("SISkillID") != "400041006;400040006":
  64.         Terminal.SetLineEdit("SISkillID", "400041006;400040006")
  65.     if Terminal.GetSpinBox("SkillInjection") != BladeTempest_Delay:
  66.         Terminal.SetSpinBox("SkillInjection", BladeTempest_Delay)
  67.     if Terminal.GetCheckBox("Kami Vac") != brimgang:
  68.         Terminal.SetCheckBox("Kami Vac", brimgang)
  69.  
  70. def UseBladeTempestSkill():
  71.     Key.Set(0x21, 1, 400041006) # Page up
  72.     Key.Press(0x21)
  73.     time.sleep(2)
  74.     Key.Press(0x21)
  75.     time.sleep(2)
  76.     Key.Press(0x21)
  77.     print('Using BladeTempest skill')
  78.  
  79.  
  80. def UseFinalCutSkill():
  81.     Key.Set(0x22, 1, 4341002)
  82.     Key.Down(0x22)
  83.     time.sleep(4)
  84.     Key.Up(0x22)
  85.     time.sleep(4)
  86.     Key.Down(0x22)
  87.     time.sleep(4)
  88.     Key.Up(0x22)
  89.     print("[Using Final Cut Skill")
  90.  
  91.  
  92. if GameState.IsInGame():
  93.     if Terminal.GetProperty("ChannelHolder", -1) == 0:
  94.         Terminal.SetProperty("ChannelHolder", GameState.GetChannel())
  95.         print("Property was 0 so set it to " + str(Terminal.GetProperty("ChannelHolder", -1)))
  96.     if Terminal.GetProperty("MapHolder", -1) == 0:
  97.         Terminal.SetProperty("MapHolder", Field.GetID())
  98.         print("Property was 0 so set it to " + str(Terminal.GetProperty("MapHolder", -1)))
  99.     if GameState.GetChannel() != Terminal.GetProperty("ChannelHolder", -1):
  100.         Terminal.SetProperty("ChannelHolder", GameState.GetChannel())
  101.         print("Property changed... changing Stored channel to " + str(Terminal.GetProperty("ChannelHolder", -1)))
  102.         Terminal.SetProperty("SkillCheck", False)
  103.     if Field.GetID() != Terminal.GetProperty("MapHolder", -1):
  104.         Terminal.SetProperty("MapHolder", Field.GetID())
  105.         print("Property changed.. changing Stored MapID to " + str(Terminal.GetProperty("MapHolder", -1)))
  106.         Terminal.SetProperty("SkillCheck", False)
  107.     if Terminal.GetProperty("SkillCheck", -1) == False:
  108.         if time.time() - Terminal.GetProperty("TimerLel", -1) >= 130:
  109.             Jinks(False)
  110.             time.sleep(2)
  111.             UseBladeTempestSkill()
  112.             UseBladeTempestSkill()
  113.             Terminal.SetProperty("SkillCheck", True)
  114.             Terminal.SetProperty("TimerLel", time.time())
  115.             time.sleep(10) # So you dont crash from kami
  116.         else:
  117.             if FinalCut == True and (time.time() - Terminal.GetProperty("FinalCutTimer", -1)) >= Timeout:
  118.                 print("[BladeTempest on CD - Using Final Cut Now]")
  119.                 Jinks(False)
  120.                 time.sleep(2)
  121.                 UseFinalCutSkill()
  122.                 UseFinalCutSkill()
  123.                 Terminal.SetProperty("SkillCheck", True)
  124.                 Terminal.SetProperty("FinalCutTimer", time.time())
  125.                 time.sleep(10) # So you dont crash from kami
  126.             else:
  127.                 if Safe_Spot_X > 0 and Safe_Spot_Y > 0:
  128.                     time.sleep(1)
  129.                 Jinks(False)
  130.                 print("Waiting for BladeTempest to be Ready.. Time Left = " + str(round(time.time() - Terminal.GetProperty("TimerLel", -1))) + "/130")
  131.                 print("Waiting for FinalCut to be Ready.. Time Left = " + str(round(time.time() - Terminal.GetProperty("FinalCutTimer", -1))) + "/" + str(Timeout))
  132.                 time.sleep(1)
  133.     else:
  134.         Jinks(True)
  135. else:
  136.     Jinks(False)
  137.     if Terminal.GetProperty("SkillCheck", -1) != False:
  138.         Terminal.SetProperty("SkillCheck", False)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement