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