Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return function(msg,usr)
- if type(MOD.Salt) ~= "number" then
- MOD.Salt = os.time();
- end
- local calc = msg;
- local unchanged = msg;
- if not calc or calc == "" then
- calc = usr;
- unchanged = usr;
- end
- calc = calc:gsub(" ",""):lower();
- local dps = 0;
- for n=1,calc:len() do
- dps = dps + calc:byte(n);
- end
- dps = ((dps+MOD.Salt)%10)+1;
- if unchanged == "Odir16" or calc == "himself" or calc == "odir" or calc == "brodir" then
- dps = 10;
- end
- local ret = "Brodir rates " .. unchanged .. " " .. tostring(dps) .. "/10";
- if dps == 10 then
- ret = ret .. " PogChamp";
- elseif dps == 1 then
- ret = ret .. " DansGame";
- end
- print(ret);
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement