Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tooltip = function(msg, usr)
- local calc = msg;
- local prefix = msg .. " deals "
- if not calc or calc == "" then
- calc = usr;
- prefix="";
- end
- calc = calc:gsub(" ","");
- local dps = 0;
- for n=1,calc:len() do
- dps = dps + calc:byte(n);
- end
- return prefix .. tostring(dps).."k dps";
- end
- return tooltip;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement