• API
• FAQ
• Tools
• Archive
SHARE
TWEET

# Untitled

a guest Jun 15th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. function xPriestCheck() --this whole function actually calculates with the help of the addon BonusScanner and the math's exactly(+-about 30-40) how much each priestheal spell(not renew) will heal with your buffs+gear. should be read onevent up there at priest login.
2.     local p= Printd
3.     local _,_,_,_,talentRank,_ = GetTalentInfo(2,14);
4.     local _,spw,_,_ = UnitStat('player',5);
5.     local sgf = spw * 5*talentRank/100;
6.
7.     local _,_,_,_,talentRank,_ = GetTalentInfo(2,15);
8.         local shMod = 2*talentRank/100 + 1;
9.
10.     local _,_,_,_,talentRank,_ = GetTalentInfo(2,10);
11.         local ihMod = 1 - 5*talentRank/100;
12.
13.     local _,_,_,_,talentRank,_ = GetTalentInfo(2,12);
14.         local pohMod = 1 - 10*talentRank/100;
15.
16.
17.     local hpw = BonusScanner:GetBonus("HEAL")
18.
19.
20.
21.         if sgf>0 then
22.             g1h = math.floor(((924+1038)/2)*shMod + ((hpw +sgf)*(3/3.5)));
23.             g2h = math.floor(((1178+1318)/2)*shMod + ((hpw +sgf)*(3/3.5)));
24.             g3h = math.floor(((1470+1642)/2)*shMod + ((hpw +sgf)*(3/3.5)));
25.             g4h = math.floor(((1813+2021)/2)*shMod + ((hpw +sgf)*(3/3.5)));
26.             g5h = math.floor(((1966+2194)/2)*shMod + ((hpw +sgf)*(3/3.5)));
27.             h1e = math.floor(((307+353)/2)*shMod + (hpw +sgf)*(3/3.5)*(1-((20-16)*0.0375)));
28.             h2e = math.floor(((445+507)/2)*shMod + (hpw +sgf)*(3/3.5));
29.             h3e = math.floor(((586+662)/2)*shMod + (hpw +sgf)*(3/3.5));
30.             h4e = math.floor(((734+826)/2)*shMod + (hpw +sgf)*(3/3.5));
31.             poh1 = math.floor(((301+321)/2)*shMod + (hpw +sgf)*(1/3));
32.             poh2 = math.floor(((444+472)/2)*shMod + (hpw +sgf)*(1/3));
33.             poh3 = math.floor(((657+695)/2)*shMod + (hpw +sgf)*(1/3));
34.             poh4 = math.floor(((939+991)/2)*shMod + (hpw +sgf)*(1/3));
35.             poh5 = math.floor(((1041+1099)/2)*shMod + (hpw +sgf)*(1/3));
36.
37.         else
38.             g1h = math.floor(((924+1038)/2)*shMod + (hpw *3/3.5));
39.             g2h = math.floor(((1178+1318)/2)*shMod + (hpw *3/3.5));
40.             g3h = math.floor(((1470+1642)/2)*shMod + (hpw *3/3.5));
41.             g4h = math.floor(((1813+2021)/2)*shMod + (hpw *3/3.5));
42.             g5h = math.floor(((1966+2194)/2)*shMod + (hpw *3/3.5));
43.             h1e = math.floor(((307+353)/2)*shMod + (hpw *3/3.5)*(1-((20-16)*0.0375)));
44.             h2e = math.floor(((445+507)/2)*shMod + (hpw *3/3.5));
45.             h3e = math.floor(((586+662)/2)*shMod + (hpw *3/3.5));
46.             h4e = math.floor(((734+826)/2)*shMod + (hpw *3/3.5));
47.             poh1 = math.floor(((301+321)/2)*shMod + (hpw)*(1/3));
48.             poh2 = math.floor(((444+472)/2)*shMod + (hpw)*(1/3));
49.             poh3 = math.floor(((657+695)/2)*shMod + (hpw)*(1/3));
50.             poh4 = math.floor(((939+991)/2)*shMod + (hpw)*(1/3));
51.             poh5 = math.floor(((1041+1099)/2)*shMod + (hpw)*(1/3));
52.
53.
54.         end
55.
56.     p(pohMod)
57.     p("- Spiritual Guidance healing: "..sgf)
58.     p("- Spiritual Healing factor: "..shMod -1)
59.     p(" - Spirit: "..spw)
60.     p(" - Healing: "..hpw)
61.     p("Greater Healing(Rank 1): "..g1h.." (g1h)".." - "..(math.floor((g1h/(370*ihMod))*1000)/1000).. " HpM")
62.     p("Greater Healing(Rank 2): "..g2h.." (g2h)".." - "..(math.floor((g2h/(455*ihMod))*1000)/1000).. " HpM")
63.     p("Greater Healing(Rank 3): "..g3h.." (g3h)".." - "..(math.floor((g3h/(545*ihMod))*1000)/1000).. " HpM")
64.     p("Greater Healing(Rank 4): "..g4h.." (g4h)".." - "..(math.floor((g4h/(655*ihMod))*1000)/1000).. " HpM")
65.     p("Greater Healing(Rank 5): "..g5h.." (g5h)".." - "..(math.floor((g5h/(710*ihMod))*1000)/1000).. " HpM")
66.     p("Heal(Rank 1): "..h1e.." (h1e)".." - "..(math.floor((h1e/(155*ihMod))*1000)/1000).. " HpM")
67.     p("Heal(Rank 2): "..h2e.." (h2e)".." - "..(math.floor((h2e/(205*ihMod))*1000)/1000).. " HpM")
68.     p("Heal(Rank 3): "..h3e.." (h3e)".." - "..(math.floor((h3e/(255*ihMod))*1000)/1000).. " HpM")
69.     p("Heal(Rank 4): "..h4e.." (h4e)".." - "..(math.floor((h4e/(305*ihMod))*1000)/1000).. " HpM")
70.     p("PoH(Rank 1): "..poh1.." (poh1)".." - "..(math.floor((poh1*5/(410*pohMod))*1000)/1000).. " HpM")
71.     p("PoH(Rank 2): "..poh2.." (poh2)".." - "..(math.floor((poh2*5/(560*pohMod))*1000)/1000).. " HpM")
72.     p("PoH(Rank 3): "..poh3.." (poh3)".." - "..(math.floor((poh3*5/(770*pohMod))*1000)/1000).. " HpM")
73.     p("PoH(Rank 4): "..poh4.." (poh4)".." - "..(math.floor((poh4*5/(1030*pohMod))*1000)/1000).. " HpM")
74.     p("PoH(Rank 5): "..poh5.." (poh5)".." - "..(math.floor((poh5*5/(1070*pohMod))*1000)/1000).. " HpM")
75. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy.

Top