Advertisement
intangibles

Untitled

Aug 15th, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.45 KB | None | 0 0
  1. Thread.new {
  2.     while true
  3.         wait_until{(not Spell[9049].active? and not Spell[9812].active? and not dead? and running?('sbounty')) and percenthealth <= 80 and (!standing? or stunned? or webbed?) and ((GameObj.npcs.any? { |npc| npc.type !~ /passive/ and npc.status !~ /dead/ }) or (GameObj.loot.each { |i| i.noun =~ /cloud/}))}
  4.         bigshotPaused = GSC.pauseScript 'bigshot'
  5.         GSC.bput "sym trans confirm", "space between the corporeal|^You have already|^You strain"
  6.         unpause_script 'bigshot' if bigshotPaused
  7.     end
  8. }
  9.  
  10. Thread.new {
  11.     while true
  12.         wait_until{(percenthealth <= 50 and not dead? and not stunned? and running?('sbounty')) }
  13.         bigshotPaused = GSC.pauseScript 'bigshot'
  14.         GSC.bput "sym restoration", "^You have already|^You strain/"
  15.         unpause_script 'bigshot' if bigshotPaused
  16.     end
  17. }
  18.  
  19. Thread.new {
  20.   while true
  21.     wait_until { !calmed? }
  22.     fput 'unhide'
  23.     bigshotPaused = GSC.pauseScript 'bigshot'
  24.     wait_until { calmed? }
  25.     unpause_script 'bigshot' if bigshotPaused
  26.   end
  27. }
  28.  
  29. Thread.new {
  30.   while true
  31.     wait_until{(percenthealth < 65) }
  32.     fput "quit"
  33.     fput "quit"
  34.     fput "quit"
  35.     kill_script 'sbounty' if running? 'sbounty'
  36.     kill_script 'bigshot' if running? 'bigshot'
  37.   end
  38. }
  39.  
  40. Thread.new {
  41.   while true
  42.     wait_until{ dead? }
  43.     Script.kill 'sbounty'
  44.     Script.kill 'bigshot'
  45.     fput 'depart confirm'
  46.     fput 'depart confirm'
  47.     sleep 10
  48.     Script.kill 'monitor'
  49.     Script.kill 'transcend'
  50.   end
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement