Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function ArmorDR(A,D)
- return A / (A + (10 * D));
- end
- return function(msg,usr,chan)
- local parameters = {};
- for number in string.gmatch(msg,"%S+") do
- table.insert(parameters,number);
- end
- local armor = tonumber(parameters [1]);
- local hit = tonumber(parameters [2]);
- if armor==nil or hit==nil then
- print("@"..usr.." enter armor and raw phys hit");
- return;
- end
- print("@"..usr.." taking a "..tostring(hit).." phys hit with "..tostring(armor).." armor would reduce the hit by "..tostring(ArmorDR(armor, hit)*100).."%");
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement