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.83 KB | None | 0 0
  1. init start
  2.     local INVISIBLE_CREATURES = {'Stalker'}
  3.    
  4.     table.lower(INVISIBLE_CREATURES)
  5. init end
  6.  
  7. auto(10) listas('dontlist')
  8. foreach newmessage m do
  9.     if (m.type == MSG_STATUSLOG) then
  10.         local CREATURE = (string.match(m.content, 'You lose %d+ hitpoints due to an attack by .- (.-)%.') or ''):lower()
  11.  
  12.         if (table.find(INVISIBLE_CREATURES, CREATURE)) then
  13.             if (not findcreature(CREATURE)) then
  14.                 while (not cooleddown('attack')) do wait(100) end
  15.  
  16.                 if (findcreature(CREATURE)) then return end
  17.  
  18.                 local CURRENT_AMOUNT = itemcount('great fireball rune')
  19.                 while (not (CURRENT_AMOUNT ~= itemcount('great fireball rune'))) do
  20.                     if (wdType == 'PvP' and paround() ~= 0) then return end
  21.                     pausewalking(10000) press(GFBself) pausewalking(100)
  22.                 end
  23.  
  24.                 wait(cooldown('attack')) return
  25.             end
  26.         end
  27.     end
  28. end
Add Comment
Please, Sign In to add comment