Advertisement
cnl_cnl_cnl

Untitled

Aug 4th, 2022
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. cnl_mb.programs["drain"][1] = function()
  2.  
  3. local minGap = 250
  4. local minHpNd = 250
  5.  
  6. local r = m.room_roomId
  7.  
  8. local ma = m.pc_ma
  9. local maMax = m.pc_maMax
  10. local maGoal = (maMax * 3) - minGap
  11. local hp = m.pc_hp
  12. local hpMax = m.pc_hpMax
  13.  
  14. local paths = {
  15. --"n sneak;drain ven;",
  16. "s sneak;drain ven;",
  17. "e sneak;rn;drain ven;",
  18. "e sneak;rs;drain ven;",
  19. "e sneak;drain ven;",
  20. }
  21.  
  22.  
  23.  
  24. if false then
  25. --------------------------------------
  26. elseif r == 74040 then
  27. cnl_mb.doAction("retreat n")
  28. elseif r == 74041 then
  29. cnl_mb.doAction("retreat s")
  30. elseif r == 74042 then
  31. cnl_mb.doAction("retreat w")
  32. elseif r == 74043 then
  33. cnl_mb.doAction("retreat n")
  34. elseif r == 74044 then
  35. cnl_mb.doAction("retreat s")
  36. --------------------------------------
  37. elseif ma >= maGoal or cnl_mb.cfg.attempts <= 0 then
  38. cnl_mb.loadProgram(cnl_mb.cfg.caller)
  39. --------------------------------------
  40. elseif ma >= 62 and hp < hpMax - minHpNd then
  41. cnl_mb.doAction("cast 'restor'")
  42. elseif ma >= 35 and hp > hpMax - minHpNd then
  43. local eqset = "mana"
  44. if ma < 1000 then eqset = "spl" end
  45. cnl_mb.doAction("wr "..eqset..";"..u.rndTxt(paths))
  46. cecho("<yellow>--- [ "..cnl_mb.cfg.attempts.." ] ---<reset>")
  47. cnl_mb.cfg.attempts = cnl_mb.cfg.attempts -1
  48.  
  49. else
  50. cnl_mb.wait(0.1)
  51. end
  52.  
  53. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement