Advertisement
Guest User

Untitled

a guest
May 26th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. function talentsrankx()
  2.  
  3. local p= print
  4. local _,_,_,_,talentRank,_ = GetTalentInfo(2,14);
  5. local _,spw,_,_ = UnitStat('player',5);
  6. local sgf = spw * 5*talentRank/100;
  7.  
  8. local _,_,_,_,talentRank,_ = GetTalentInfo(2,15);
  9. local shMod = 2*talentRank/100 + 1;
  10.  
  11. local _,_,_,_,talentRank,_ = GetTalentInfo(2,10);
  12. local ihMod = 1 - 5*talentRank/100;
  13.  
  14. local _,_,_,_,talentRank,_ = GetTalentInfo(2,12);
  15. local pohMod = 1 - 10*talentRank/100;
  16.  
  17.  
  18. local hpw = BonusScanner:GetBonus("HEAL")
  19.  
  20.  
  21.  
  22. if sgf>0 then
  23. g1h = math.floor(((924+1038)/2)*shMod + ((hpw +sgf)*(3/3.5)));
  24. g2h = math.floor(((1178+1318)/2)*shMod + ((hpw +sgf)*(3/3.5)));
  25. g3h = math.floor(((1470+1642)/2)*shMod + ((hpw +sgf)*(3/3.5)));
  26. g4h = math.floor(((1813+2021)/2)*shMod + ((hpw +sgf)*(3/3.5)));
  27. g5h = math.floor(((1966+2194)/2)*shMod + ((hpw +sgf)*(3/3.5)));
  28. h1e = math.floor(((307+353)/2)*shMod + (hpw +sgf)*(3/3.5)*(1-((20-16)*0.0375)));
  29. h2e = math.floor(((445+507)/2)*shMod + (hpw +sgf)*(3/3.5));
  30. h3e = math.floor(((586+662)/2)*shMod + (hpw +sgf)*(3/3.5));
  31. h4e = math.floor(((734+826)/2)*shMod + (hpw +sgf)*(3/3.5));
  32. poh1 = math.floor(((301+321)/2)*shMod + (hpw +sgf)*(1/3));
  33. poh2 = math.floor(((444+472)/2)*shMod + (hpw +sgf)*(1/3));
  34. poh3 = math.floor(((657+695)/2)*shMod + (hpw +sgf)*(1/3));
  35. poh4 = math.floor(((939+991)/2)*shMod + (hpw +sgf)*(1/3));
  36. poh5 = math.floor(((1041+1099)/2)*shMod + (hpw +sgf)*(1/3));
  37.  
  38. else
  39. g1h = math.floor(((924+1038)/2)*shMod + (hpw *3/3.5));
  40. g2h = math.floor(((1178+1318)/2)*shMod + (hpw *3/3.5));
  41. g3h = math.floor(((1470+1642)/2)*shMod + (hpw *3/3.5));
  42. g4h = math.floor(((1813+2021)/2)*shMod + (hpw *3/3.5));
  43. g5h = math.floor(((1966+2194)/2)*shMod + (hpw *3/3.5));
  44. h1e = math.floor(((307+353)/2)*shMod + (hpw *3/3.5)*(1-((20-16)*0.0375)));
  45. h2e = math.floor(((445+507)/2)*shMod + (hpw *3/3.5));
  46. h3e = math.floor(((586+662)/2)*shMod + (hpw *3/3.5));
  47. h4e = math.floor(((734+826)/2)*shMod + (hpw *3/3.5));
  48. poh1 = math.floor(((301+321)/2)*shMod + (hpw)*(1/3));
  49. poh2 = math.floor(((444+472)/2)*shMod + (hpw)*(1/3));
  50. poh3 = math.floor(((657+695)/2)*shMod + (hpw)*(1/3));
  51. poh4 = math.floor(((939+991)/2)*shMod + (hpw)*(1/3));
  52. poh5 = math.floor(((1041+1099)/2)*shMod + (hpw)*(1/3));
  53.  
  54.  
  55. end
  56.  
  57.  
  58. p("- Spiritual Guidance healing: "..sgf)
  59. p("- Spiritual Healing factor: "..shMod -1)
  60. p(" - Spirit: "..spw)
  61. p(" - Healing: "..hpw)
  62. p("Greater Healing(Rank 1): "..g1h.." (g1h)".." - "..(math.floor((g1h/(370*ihMod))*1000)/1000).. " HpM")
  63. p("Greater Healing(Rank 2): "..g2h.." (g2h)".." - "..(math.floor((g2h/(455*ihMod))*1000)/1000).. " HpM")
  64. p("Greater Healing(Rank 3): "..g3h.." (g3h)".." - "..(math.floor((g3h/(545*ihMod))*1000)/1000).. " HpM")
  65. p("Greater Healing(Rank 4): "..g4h.." (g4h)".." - "..(math.floor((g4h/(655*ihMod))*1000)/1000).. " HpM")
  66. p("Greater Healing(Rank 5): "..g5h.." (g5h)".." - "..(math.floor((g5h/(710*ihMod))*1000)/1000).. " HpM")
  67. p("Heal(Rank 1): "..h1e.." (h1e)".." - "..(math.floor((h1e/(155*ihMod))*1000)/1000).. " HpM")
  68. p("Heal(Rank 2): "..h2e.." (h2e)".." - "..(math.floor((h2e/(205*ihMod))*1000)/1000).. " HpM")
  69. p("Heal(Rank 3): "..h3e.." (h3e)".." - "..(math.floor((h3e/(255*ihMod))*1000)/1000).. " HpM")
  70. p("Heal(Rank 4): "..h4e.." (h4e)".." - "..(math.floor((h4e/(305*ihMod))*1000)/1000).. " HpM")
  71. p("PoH(Rank 1): "..poh1.." (poh1)".." - "..(math.floor((poh1*5/(410*pohMod))*1000)/1000).. " HpM")
  72. p("PoH(Rank 2): "..poh2.." (poh2)".." - "..(math.floor((poh2*5/(560*pohMod))*1000)/1000).. " HpM")
  73. p("PoH(Rank 3): "..poh3.." (poh3)".." - "..(math.floor((poh3*5/(770*pohMod))*1000)/1000).. " HpM")
  74. p("PoH(Rank 4): "..poh4.." (poh4)".." - "..(math.floor((poh4*5/(1030*pohMod))*1000)/1000).. " HpM")
  75. p("PoH(Rank 5): "..poh5.." (poh5)".." - "..(math.floor((poh5*5/(1070*pohMod))*1000)/1000).. " HpM")
  76.  
  77.  
  78. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement