Guest User

Untitled

a guest
Jan 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.92 KB | None | 0 0
  1. init start
  2.     local INVISIBLE_CREATURES = {'Stalker'}
  3.    
  4.     table.lower(INVISIBLE_CREATURES)
  5. init end
  6.  
  7. setpriority(100, 0, 500, 3000, 1)
  8. auto(10) listas('dontlist')
  9. foreach newmessage m do
  10.     if (m.type == MSG_STATUSLOG) then
  11.         local CREATURE = (string.match(m.content, 'You lose %d+ hitpoints due to an attack by .- (.-)%.') or ''):lower()
  12.        
  13.         if (table.find(INVISIBLE_CREATURES, CREATURE)) then
  14.             if (not findcreature(CREATURE)) then
  15.                 while (not cooleddown('attack')) do wait(100) end
  16.                
  17.                 if (findcreature(CREATURE)) then return end
  18.                
  19.                 local CURRENT_AMOUNT = itemcount('great fireball rune')
  20.                 while (not (CURRENT_AMOUNT ~= itemcount('great fireball rune'))) do
  21.                     if (wdType == 'PvP' and paround() ~= 0) then return end
  22.                     pausewalking(10000) press(GFBself) pausewalking(100)
  23.                 end
  24.                
  25.                 wait(cooldown('attack')) return
  26.             end
  27.         end
  28.     end
  29. end
Add Comment
Please, Sign In to add comment