Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function RFBurn(life,ES,fireRes,dmgTaken) local burnDegen = (life*0.9+ ES*0.7) * (1 - fireRes) * (1 + dmgTaken); return tostring((burnDegen / life)*100).."% with ZO: "..tostring((burnDegen / ES)*100).."%("..tostring(burnDegen).."/sec)"; end
- local function Func(msg,usr,chan)
- if msg==nil or msg=="" then print("@"..usr.." Useage: !rfcalc life es fireres damagetaken. Example: !rfcalc 4000 100 0.75 0.05"); return; end
- local parameters = {};
- for number in string.gmatch(msg,"%S+") do
- table.insert(parameters,number);
- end
- local life = tonumber(parameters [1]);
- local es = tonumber(parameters [2]);
- local fireres = tonumber(parameters [3]);
- local dmgtaken = tonumber(parameters [4]);
- if life==nil then
- life=0;
- end
- if life <= 1 then
- print("@"..usr.." you cannot use RF is you have 1 or less MAX HP, wow don't you even know anything? wow OpieOP wow FishMoley OpieOP wow nerd OpieOP");
- return;
- end
- if es==nil then
- es=0;
- end
- if fireres==nil then
- fireres=0;
- end
- if dmgtaken==nil then
- dmgtaken=0;
- end
- if fireres > 1 then
- fireres = fireres/100;
- end
- print("@"..usr.." with "..tostring(life).." life, "..tostring(es).." es, "..tostring(fireres*100).."% fireres and "..tostring(dmgtaken*100).."% damage taken you need ".. RFBurn(life,es,fireres,dmgtaken).." life regen");
- end
- return Func;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement