diff --git a/StatReport/hadar_statrep.xml b/StatReport/hadar_statrep.xml index 8f48453..606c03d 100644 --- a/StatReport/hadar_statrep.xml +++ b/StatReport/hadar_statrep.xml @@ -54,37 +54,18 @@ Can see all my help files with had help or just this one with killer help script="statRep_build" > + - - - - - - - )") + end - SendNoEcho(repChannel .. " " .. - a .. "[" .. b .. "Str" .. a .. ": " .. b .. str .. a .."/" .. b .. maxstr .. a .. "] " .. - a .. "[" .. b .. "Dex" .. a .. ": " .. b .. dex .. a .."/" .. b .. maxdex .. a .. "] " .. - a .. "[" .. b .. "Con" .. a .. ": " .. b .. con .. a .."/" .. b .. maxcon .. a .. "] " .. - a .. "[" .. b .. "Int" .. a .. ": " .. b .. int .. a .."/" .. b .. maxint .. a .. "] " .. - a .. "[" .. b .. "Wis" .. a .. ": " .. b .. wis .. a .."/" .. b .. maxwis .. a .. "] " .. - a .. "[" .. b .. "Luck" .. a .. ": " .. b .. luck .. a .."/" .. b .. maxluck .. a .. "] " .. - a .. "HR: " .. b .. hr .. " " .. - a .. "DR: " .. b .. dr .. " " .. - a .. "HP: " .. b .. maxhp .. " " .. - a .. "Mana: " .. b .. maxmana .. " " .. - a .. "[" .. b .. "Totals" .. a .. ": " .. b .. (dex + str + wis + con + int + luck) .. a .."/" .. b .. (maxdex + maxstr + maxwis + maxcon + maxint + maxluck) .. a .. "] " .. - "") + if one == "help" then + HadarHelp() + elseif one == "output" then + changeOutput() + elseif one == "channel" then + setchannel(two) + end end +function changeOutput() + local HadarBackup = hstatrep.output + local s = [[ + Can accept upto the following variables + ${str} - Strength stat / ${maxstr} - maximum Strength + ${int} - Intelligence Stat / ${maxint} - maximum Intelligence + ${wis} - Wisdom Stat / ${maxwis} - maximum Wisdom + ${dex} - Dexterity Stat / ${maxdex} - maximum Dexterity + ${con} - Constitution Stat / ${maxcon} - maximum Constitution + ${luck} - Luck Stat / ${maxluck} - maximum Luck + ${hp} - maximum health + ${mana} - maximum mana + ${moves} - maximum moves + ${hr} - your hit roll / ${dr} - your damage roll + ${total} - total of all stats combined + ${maxtotal} - total of all maxstats combined + ]] + hstatrep.output = utils.inputbox (s,"Look of stat reporter", hstatrep.output, "Courier", 9) + if hstatrep.output ~= nil then + hadarerror("@gstatrep output@W:@w" .. hstatrep.output) + else + hstatrep.output = HadarBackup + end + SaveState() +end + +function setchannel(str) + if str ~= nil and str ~= "" and str ~= " " then + hstatrep.Channel = str + hadarerror("@RStat Rep @Cdefault channel set to: @G" .. hstatrep.Channel) + else + hadarerror("@RERROR: @wto set default channel please use @Cstatrep channel @w") + end +end + ---------------------------------------------------------------------------------------------------- -- End function stuff -- -- -- @@ -405,14 +472,15 @@ end -- maxVital function HadarHelp() - ColourNote("#159FE5","","+---------------------------------------","Green","","[","Cyan","","K","Teal","","ill","Green","","]","#159FE5","","---------------------------------------+") + ColourNote("#159FE5","","+---------------------------------------","Green","","[","Cyan","","S","Teal","","tat rep","Green","","]","#159FE5","","---------------------------------------+") + ColourNote("#159FE5","","|"..string.format("%84s"," ").."|") + ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," statrep "),"#159FE5","","-","#F1D566","",string.format("%-64s"," If blank will send to echo else sends to a channel"),"#159FE5","","|") ColourNote("#159FE5","","|"..string.format("%84s"," ").."|") - ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," Setkill "),"#159FE5","","-","#F1D566","",string.format("%-64s"," If blank will update the spell used on 'kill'"),"#159FE5","","|") - ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," "),"#159FE5",""," ","#F1D566","",string.format("%-64s"," Updated used to update all skills/spells"),"#159FE5","","|") + ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," statrep output"),"#159FE5","","-","#F1D566","",string.format("%-64s"," changes the output of the message"),"#159FE5","","|") ColourNote("#159FE5","","|"..string.format("%84s"," ").."|") - ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," kill "),"#159FE5","","-","#F1D566","",string.format("%-64s"," Will use the kill spell/skill (with optional name)"),"#159FE5","","|") + ColourNote("#159FE5","","|","#E55B15","",string.format("%-19s"," statrep channel "),"#159FE5","","-","#F1D566","",string.format("%-64s"," changes default channel default:echo"),"#159FE5","","|") ColourNote("#159FE5","","|"..string.format("%84s"," ").."|") - ColourNote("#159FE5","","|","white","",string.format("%84s"," if any issues arise, please contact Hadar via a personal note!"),"#159FE5","","|") + ColourNote("#159FE5","","|","white","",string.format("%84s"," if any issues arise, please contact Hadar via a personal note! or on discord zzyzzyzzx#0001"),"#159FE5","","|") ColourNote("#159FE5","","+"..string.rep("-",84).."+") end diff --git a/StatReport/hadar_statrep.zip b/StatReport/hadar_statrep.zip index 72a5198..137391b 100644 Binary files a/StatReport/hadar_statrep.zip and b/StatReport/hadar_statrep.zip differ