Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local colorone = "@C" --color for first letter
- local colortwo = "@c" --color for rest of word
- local colorthree = "@R" --color if stat unmaxed
- local colorfour = "@G" --color if stat maxed
- local colorterm = "@w" --color to terminate the string
- local mathone
- local statmath
- local maxxed_stats
- local unmaxxed_stats
- local test=string.explode(all_stats_DB["AllStatsList"],"|")
- for _,v in ipairs(test) do
- if 26>all_stats_DB["characterlevel"] then
- mathone = 25
- elseif all_stats_DB==201 then
- mathone = 200
- else
- mathone = all_stats_DB["characterlevel"]
- end
- statmath=stats_specific_db["class_"..v]+mathone
- stat_check_DB["stat_max_check_"..v] = statmath
- end
- for k,v in pairs(test) do
- if stat_check_db["stat_max_check_"..v]>stats_specific_db["total_bonus_"..v] then
- if unmaxxed_stats==nil then
- unmaxxed_stats=v:gsub("%a",string.upper,1).."(-"..stat_check_db["stat_max_check_"..v]-stats_specific_db["total_bonus_"..v]..")"
- else
- unmaxxed_stats=unmaxxed_stats..","..v:gsub("%a",string.upper,1).."(-"..stat_check_db["stat_max_check_"..v]-stats_specific_db["total_bonus_"..v]..")"
- end
- else
- if maxxed_stats==nil then
- maxxed_stats=v:gsub("%a",string.upper,1).."(+"..stats_specific_db["total_bonus_"..v]-stat_check_db["stat_max_check_"..v]..")"
- else
- maxxed_stats=maxxed_stats..","..v:gsub("%a",string.upper,1).."(+"..stats_specific_db["total_bonus_"..v]-stat_check_db["stat_max_check_"..v]..")"
- end
- end
- end
- if unmaxxed_stats==nil then
- unmaxxed_stats="None"
- end
- if maxxed_stats==nil then
- maxxed_stats="None"
- end
- send(stat_check_db["statchecko"].." "..colorone.."S"..colortwo.."tats "..colorone.."U"..colortwo.."nmaxxed: "..colorthree..unmaxxed_stats..colorone.." | S"..colortwo.."tats "..colorone.."M"..colortwo.."axxed: "..colorfour..maxxed_stats..colorterm)
- stat_check_db["statchecko"]="echo"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement