Custom Auxbox Creations
Moderator: EUO Moderators
Re: Custom Auxbox Creations
It should be by either making it an unsigned 32 bit integer, which gives you ~4.2 bil max value or making it a 64 bit integer which would give you an even higher max value.
- EmoMage
- Girls only want boyfriends who have great skills.
- Posts: 772
- Joined: Tue Aug 06, 2013 10:10 am
Re: Custom Auxbox Creations
I know (me of all people) shouldn't really be asking for things, but I was just curious because my curiosity rises when I'm hunting just to see what level I could be at. I maxed out at 1096 on the auxbox, but would love to see how high I actually could get.
--also, if the XP value gets raised, does that mean that Alpha will have a higher level than 1096?
---not that alpha is worth anything, just another curiosity thing.
--also, if the XP value gets raised, does that mean that Alpha will have a higher level than 1096?
---not that alpha is worth anything, just another curiosity thing.
eggmceye wrote:ParadoxOfChoice wrote: Zombie using bow/sling probably shouldn't give disease.
the zombies are pulling the arrows out of their ass
Re: Custom Auxbox Creations
I've finished putting auxbox colours in!
but will anyone care if I delete auxbox_set_char () ?
setting colours for single chars is not done - and deleting that func makes it easy for me
the usage is
or
the colour format is {RGB}
where the colour that is used is R*0x10+R, G*0x10+G, B*0x10+B (same shorthand as used in css)
and once you set the colour it is used until it is set again. Default (1st) colour is white.
but will anyone care if I delete auxbox_set_char () ?
setting colours for single chars is not done - and deleting that func makes it easy for me
the usage is
Code: Select all
auxbox_set_line(0, "test {f0f}TEST {47f} Test")
Code: Select all
auxbox_prop_line("test {f0f}TEST {47f} Test")
the colour format is {RGB}
where the colour that is used is R*0x10+R, G*0x10+G, B*0x10+B (same shorthand as used in css)
and once you set the colour it is used until it is set again. Default (1st) colour is white.
You do not have the required permissions to view the files attached to this post.
Re: Custom Auxbox Creations
Nice!eggmceye wrote:I've finished putting auxbox colours in!
I doubt anyone will miss auxbox_set_char(), I don't remember seeing anyone using it.
Re: Custom Auxbox Creations
yeh I did a forum search and it was only me and morty doing ascii terrain maps that were too buggy or cpu intensive to actually use
Re: Custom Auxbox Creations
looking forward to LM's take on this before I patch it
- LordMortiferus
- MACRO > me
- Posts: 872
- Joined: Tue Dec 01, 2009 10:23 pm
Re: Custom Auxbox Creations
I do not mind if auxbox_set_char() will be scrapped. I could not find that function in my recent ASCII map scripts anyway and I am excited to update the scripts with colours.
Colours are a great addition for auxbox scripts. Thanks max!
Colours are a great addition for auxbox scripts. Thanks max!
- LordMortiferus
- MACRO > me
- Posts: 872
- Joined: Tue Dec 01, 2009 10:23 pm
Re: Custom Auxbox Creations
I updated my LOS ASCII map to make it run smoother. On the on hand the function is only called when your coordinates actually change and on the other hand I reduced the member function lookups. I wonder if that helps and is used correctly =]eggmceye wrote:yeh I did a forum search and it was only me and morty doing ascii terrain maps that were too buggy or cpu intensive to actually use
Edit: fixed a bug in the script
- LordMortiferus
- MACRO > me
- Posts: 872
- Joined: Tue Dec 01, 2009 10:23 pm
Re: Custom Auxbox Creations
Colors - YEAH!!!!
Anyway, COLORS - soo cool, rad and awesome!!!
I will update the script when I got a better color pallet for the various things on display. Also there is one bug in this script that occasionally crashes the client - dunno what it is yet though.Anyway, COLORS - soo cool, rad and awesome!!!
You do not have the required permissions to view the files attached to this post.
Re: Custom Auxbox Creations
This is beautiful. Good job Lord M.LordMortiferus wrote:Colors - YEAH!!!!I will update the script when I got a better color pallet for the various things on display. Also there is one bug in this script that occasionally crashes the client - dunno what it is yet though.
Anyway, COLORS - soo cool, rad and awesome!!!
IGN: 1
- LordMortiferus
- MACRO > me
- Posts: 872
- Joined: Tue Dec 01, 2009 10:23 pm
Re: Custom Auxbox Creations
Thanks 1.
I integrated colours into:
ASCII map
ASCII map with LOS
Item comparison for ready/buying mode
Updated the respective posts with screenshots of colourful auxboxes.
I integrated colours into:
ASCII map
ASCII map with LOS
Item comparison for ready/buying mode
Updated the respective posts with screenshots of colourful auxboxes.
- EmoMage
- Girls only want boyfriends who have great skills.
- Posts: 772
- Joined: Tue Aug 06, 2013 10:10 am
Re: Custom Auxbox Creations
To whom it may concern: (Ohhhh LordMortyyyyyyyyyyyyyyyyyyyyy)
when showing your skills in the auxbox (like below), for a fighter, Tactics, Block, Longswords, Polearms, and Maces show up on there, Axes do not. I've looked at it for a couple of hours to see if I can/could fix it, and I can't. I'm not a coder (yet I'm trying to go to school for coding, so hope that goes well), but anywhoo.. Can someone fix that for me please?
P.S. I'ma just copy and paste so I don't fuck nothing up, so please post the whole script.
when showing your skills in the auxbox (like below), for a fighter, Tactics, Block, Longswords, Polearms, and Maces show up on there, Axes do not. I've looked at it for a couple of hours to see if I can/could fix it, and I can't. I'm not a coder (yet I'm trying to go to school for coding, so hope that goes well), but anywhoo.. Can someone fix that for me please?
P.S. I'ma just copy and paste so I don't fuck nothing up, so please post the whole script.
Loughf wrote:so far, this is my favorite setup!
Code: Select all
session_start = os.time() - 1 auxbox_next_line = 0 function auxbox() d:auxbox_clear(); auxbox_next_line = 0 --auxbox_real_world_time() --auxbox_moon_info() --auxbox_blank_line() --auxbox_damage_per_second() --auxbox_blank_line() --auxbox_ratio() --auxbox_blank_line() auxbox_xp() auxbox_blank_line() update_skill_experience() --auxbox_all_skill_levels() auxbox_class_skill_levels() --auxbox_recent_crafting_skill_levels() --auxbox_recent_skill_levels() --auxbox_current_equipment() auxbox_blank_line() auxbox_ratio() auxbox_blank_line() auxbox_damage_per_second() auxbox_blank_line() auxbox_f5_message() --forums_message() --website_message() end function auxbox_prop_line(prop_name, prop_val) local filler = string.rep(" ", 25 - string.len(prop_name) - string.len(prop_val)) auxbox_next_line = auxbox_next_line + 1 d:auxbox_set_line(auxbox_next_line, string.format("%s %s %s", prop_name, filler, prop_val)) end function auxbox_blank_line() auxbox_next_line = auxbox_next_line + 1 end function auxbox_ratio() strpct = (me:get_str()/(me:get_str()+me:get_dex())*100) dexpct = (me:get_dex()/(me:get_str()+me:get_dex())*100) auxbox_prop_line("Str : Dex", string.format("%.2f : %.2f",strpct,dexpct)) end -- Real World Time - Duncan (PD) / Zen (Reg) / Brentoboy (forums) function auxbox_real_world_time() auxbox_prop_line("Real World Time:", string.format(os.date("%I:%M%p"))) end -- Moon Info - Duncan (PD) / Zen (Reg) / Brentoboy (forums) function auxbox_moon_info() if world_time < 9 * 60 -- if its night time or world_time > 21 * 60 then auxbox_prop_line("Moon Phase:", string.format("%d", moon_phase)) -- if moon_phase = full and is_night = true say "FULL MOON" -- if moon_phase = new ... "New Moon" end if world_time < 60 then -- between 12am and 1am auxbox_prop_line("ITS MIDNIGHT", "(*)") end end -- Equipment Summary - Duncan (PD) / Zen (Reg) / Brentoboy (forums) function auxbox_current_equipment() auxbox_prop_line("---- Current Equipment -----", "") auxbox_prop_line(wl:get_full_name(me.weapon), "") --auxbox_prop_line(" Damage", string.format("%dd%d", me:get_dmg_dice(), me:get_dmg_sides())) auxbox_prop_line(wl:get_full_name(me.shield), "") auxbox_prop_line(wl:get_full_name(me.hat), "") auxbox_prop_line(wl:get_full_name(me.armour), "") auxbox_prop_line(wl:get_full_name(me.gloves), "") auxbox_prop_line(wl:get_full_name(me.trousers), "") auxbox_prop_line(wl:get_full_name(me.boots), "") auxbox_prop_line(wl:get_full_name(me.ring1), "") auxbox_prop_line(wl:get_full_name(me.ring2), "") auxbox_prop_line(wl:get_full_name(me.amulet), "") auxbox_prop_line(wl:get_full_name(me.sigil1), "") auxbox_prop_line(wl:get_full_name(me.sigil2), "") auxbox_prop_line(wl:get_full_name(me.sigil3), "") end -- Skill level stuff - Duncan (PD) / Zen (Reg) / Brentoboy (forums) skill_count = 40 auxbox_class_skills = { 0, 1, 2, 3, 26 --fighter , 17, 18, 13, 14, 15, 9 --thief , 7, 33 -- mage , 34, 38, 36 -- priest , 10, 40 -- monk } auxbox_crafting_skills = { 4 , 5 , 6 , 8 , 11 , 12 , 16 , 19 , 20 , 21, 22, 23, 24, 25 , 27, 28 , 29 , 30 , 31, 32 , 35, 37 , 39 } auxbox_prev_skill_values = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1} auxbox_skill_last_updated = {-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1} auxbox_prev_skill_values[0] = -1 auxbox_skill_last_updated[0] = -1 auxbox_skill_names = { "polearms" -- 1 , "maces" -- 2 , "tactics" -- 3 , "woodcrafting" --4 , "mining" -- 5 , "weaponsmith" -- 6 , "magery" -- 7 , "fishing" -- 8 , "locks" --9 , "unarmed" --10 , "meditation" -- 11 , "alchemy" --12 , "ranged" --13 , "stealth" --14 , "traps" --15 , "item lore" --16 , "shortswords" --17 , "foils" -- 18 , "Skill 19" , "tailoring" --20 , "tinkering" -- 21 , "Skill 22" , "Skill 23" , "Skill 24" , "Skill 25" , "block" --26 , "cartography" --27 , "healing" --28 , "enchanting" --29 , "armourer" -- 30 , "inscription" --31 , "taming" --32 , "sorcery" --33 , "piety" --34 , "Skill 35" , "blessed maces" --36 , "staves" -- 37 , "divinity" --38 , "cooking" --39 , "sanctity" --40 } auxbox_skill_names[0] = "longswords" function auxbox_skill_line(skill_index) if me:get_skill(skill_index) > 0 then auxbox_prop_line(auxbox_skill_names[skill_index], string.format("%f%%", me:get_skill(skill_index))) end end -- I used this for debugging, its pretty similar to the skill tab, so kind of pointless, but why delete it, now that it works function auxbox_all_skill_levels() for i = 0, skill_count do auxbox_skill_line(i) end end -- shows level for all of your class related skills -- regardless of how long it has been since you got experience in that skill function auxbox_class_skill_levels() for i = 1, #auxbox_class_skills do auxbox_skill_line(auxbox_class_skills[i]) end end -- you have to call this before either of the two functions below it or they wont know what has recently changed function update_skill_experience() for i = 0, skill_count do if auxbox_prev_skill_values[i] < me:get_skill(i) then auxbox_skill_last_updated[i] = auxboxcnt auxbox_prev_skill_values[i] = me:get_skill(i) end end end -- shows level of any skill that has recently received experience -- you should really either use THIS or auxbox_class_skill_levels + auxbox_recent_craft_skill_levels -- the advantage of this function is that it doesnt show class skills if you arent currently working on them (saves space) function auxbox_recent_skill_levels() for i = 0, skill_count do if auxbox_skill_last_updated[i] > auxboxcnt - 300 and auxbox_skill_last_updated[i] > 1 then auxbox_skill_line(i) end end end -- shows level of any non-class skill that has recently received experience function auxbox_recent_crafting_skill_levels() for i = 1, #auxbox_crafting_skills do if auxbox_skill_last_updated[auxbox_crafting_skills[i]] > auxboxcnt - 300 and auxbox_skill_last_updated[auxbox_crafting_skills[i]] > 1 then auxbox_skill_line(auxbox_crafting_skills[i]) end end end -- Bound Item Quantities - Duncan (PD) / Zen (Reg) / Brentoboy (forums) function auxbox_bound_item_qtys() local item local name for i = 1, 50 do item = me.item_binds[i] name = wl:get_full_name(item) if item and not wl:is_tool(item) and name ~= "NOTHING" then auxbox_prop_line(name, items:get_qty(item)) end end end --- Damage Per Second -- original script proveded by LordMortiferus last_session_seconds = 0 last_4_dpst = { g_dpst, g_dpst, g_dpst, g_dpst } last_4_dtpst = { g_dtpst, g_dtpst, g_dtpst, g_dtpst } last_dpst = g_dpst recent_dmg = { 0, 0, 0, 0 } function auxbox_damage_per_second() local session_seconds = os.time() - session_start if session_seconds > last_session_seconds then last_session_seconds = session_seconds last_4_dpst[4] = last_4_dpst[3] last_4_dpst[3] = last_4_dpst[2] last_4_dpst[2] = last_4_dpst[1] last_4_dpst[1] = g_dpst last_4_dtpst[4] = last_4_dtpst[3] last_4_dtpst[3] = last_4_dtpst[2] last_4_dtpst[2] = last_4_dtpst[1] last_4_dtpst[1] = g_dtpst end if last_dpst ~= g_dpst then recent_dmg[4] = recent_dmg[3] recent_dmg[3] = recent_dmg[2] recent_dmg[2] = recent_dmg[1] recent_dmg[1] = g_dpst - last_dpst last_dpst = g_dpst end --auxbox_prop_line("Dmg Dealt / Sec", string.format("%d", (last_4_dpst[1] - last_4_dpst[4]) / 4)) --auxbox_prop_line("Dmg Taken / Sec", string.format("%d", (last_4_dtpst[1] - last_4_dtpst[4]) / 4)) --auxbox_prop_line("Recent Dmg Dealt", "") auxbox_prop_line("Last 4 Hits:", string.format("%d %d %d %d", recent_dmg[4], recent_dmg[3], recent_dmg[2], recent_dmg[1])) end function auxbox_f5_message() auxbox_prop_line("Press alt-F5 to Reset", "") end function forums_message() auxbox_prop_line("http://forums.swut.net", "") end function website_message() auxbox_prop_line("http://www.euotopia.com", "") end -- XP by LordMortiferus 2013/01/28, rehashed by Brentoboy session_start_xp = me.xp -- var to calculate xp gain per session session_start_age = me.age -- var to calculate time played per session session_time = 0 current_level = 0 -- beginning of XP-array req_xp = {} req_xp[1] = 0 -- fixed XP value req_xp[2] = 200 -- fixed XP value req_xp[26] = 93000 -- fixed XP value for i=3,25 do -- adds XP for lvl 3 to 25 to array req_xp[i] = math.floor(req_xp[i-1]+1.2*(req_xp[i-1]-req_xp[i-2])) end for i=27,1000 do -- adds XP for lvl 27 to 1000 to array req_xp[i] = req_xp[i-1]+(i-26)*1000*4+15000 end if me.xp >= req_xp[1000] then current_level = 1000 else for i = 1,999 do -- getting current player level based on array if req_xp[i] <= me.xp and req_xp[i + 1] > me.xp then current_level = i break end end end -- end of XP-array function auxbox_xp() if current_level <= 1000 then local xptolvl_float = ((me.xp - req_xp[current_level]))/(req_xp[current_level+1]-req_xp[current_level]) -- % needed for next level local lvl_float = current_level + me.remort_level * 75 + xptolvl_float -- combines actual lvl with the % needed for next lvl -- checks if player leveled or remorted if xptolvl_float >= 1 or xptolvl_float < 0 then for i = 1,999 do if req_xp[i] <= me.xp and req_xp[i + 1] > me.xp then current_level = i break end end end if os.difftime(os.time(), session_start) > session_time then -- just to reduce the script to every second session_time = os.difftime(os.time(), session_start) session_d_float = session_time / 60 / 60 / 24 session_d = math.floor(session_d_float) session_h = math.floor((session_d_float - session_d)*24) session_m = math.floor(((session_d_float - session_d)*24 - session_h) * 60) session_s = math.floor((((session_d_float - session_d)*24 - session_h) * 60 - session_m) * 60) xpgain = me.xp - session_start_xp xps = xpgain/session_time if me.age-session_start_age > 0 then xpmin = xpgain/(me.age-session_start_age) else xpmin = 0 end xptolvl = req_xp[current_level + 1] - me.xp xpto1k = req_xp[1000] - me.xp if xps > 0 then timetolvl = xptolvl / xps timeto1k = xpto1k / xps else timetolvl = 0 timeto1k = 0 end timetolvl_d_float = timetolvl / 60 / 60 / 24 timetolvl_d = math.floor(timetolvl_d_float) timetolvl_h = math.floor((timetolvl_d_float - timetolvl_d)*24) timetolvl_m = math.floor(((timetolvl_d_float - timetolvl_d)*24 - timetolvl_h) * 60) timetolvl_s = math.floor((((timetolvl_d_float - timetolvl_d)*24 - timetolvl_h) * 60 - timetolvl_m) * 60) timeto1k_d_float = timeto1k / 60 / 60 / 24 timeto1k_d = math.floor(timeto1k_d_float) timeto1k_h = math.floor((timeto1k_d_float - timeto1k_d)*24) timeto1k_m = math.floor(((timeto1k_d_float - timeto1k_d)*24 - timeto1k_h) * 60) timeto1k_s = math.floor((((timeto1k_d_float - timeto1k_d)*24 - timeto1k_h) * 60 - timeto1k_m) * 60) end auxbox_prop_line("Level" ,string.format("%f",lvl_float)) --auxbox_prop_line("Time" ,string.format("%02.f:%02.f:%02.f:%02.f", session_d, session_h, session_m, session_s)) auxbox_prop_line("Current XP", string.format("%d", me.xp)) auxbox_prop_line("Before Level", string.format("%d", xptolvl)) auxbox_prop_line("XP/s" ,string.format("%d", xps)) auxbox_prop_line("XP/min" ,string.format("%d", xpmin)) end end
eggmceye wrote:ParadoxOfChoice wrote: Zombie using bow/sling probably shouldn't give disease.
the zombies are pulling the arrows out of their ass
- LordMortiferus
- MACRO > me
- Posts: 872
- Joined: Tue Dec 01, 2009 10:23 pm
Re: Custom Auxbox Creations
Within auxbox_class_skills array add the number 19 to the fighter skills. Remove the number 19 from auxbox_crafting_skills array and change within auxbox_skill_names array the line , "Skill 19" to , "axes" -- 19
I think that should do the trick . I could send you the whole script, if you send me a pm with your email, or I upload it here or elsewhere tomorrow.
I think that should do the trick . I could send you the whole script, if you send me a pm with your email, or I upload it here or elsewhere tomorrow.
- EmoMage
- Girls only want boyfriends who have great skills.
- Posts: 772
- Joined: Tue Aug 06, 2013 10:10 am
Re: Custom Auxbox Creations
how the fuck did you just happen to look at that and figure that out almost fucking instantly?
kevin.abernathy1026@gmail.com
or you can just PM me here, it all goes to my email.
kevin.abernathy1026@gmail.com
or you can just PM me here, it all goes to my email.
eggmceye wrote:ParadoxOfChoice wrote: Zombie using bow/sling probably shouldn't give disease.
the zombies are pulling the arrows out of their ass
- EmoMage
- Girls only want boyfriends who have great skills.
- Posts: 772
- Joined: Tue Aug 06, 2013 10:10 am
Re: Custom Auxbox Creations
I got it already, TANKS!
You do not have the required permissions to view the files attached to this post.
eggmceye wrote:ParadoxOfChoice wrote: Zombie using bow/sling probably shouldn't give disease.
the zombies are pulling the arrows out of their ass
-
- Kodiak has probably banned me by now.
- Posts: 12
- Joined: Sun Jun 15, 2014 5:49 am
Re: Custom Auxbox Creations
Nice Emo
- LordMortiferus
- MACRO > me
- Posts: 872
- Joined: Tue Dec 01, 2009 10:23 pm
Re: Custom Auxbox Creations
After some Glühwein at the Weihnachtsmarkt this is no big deal at all.EmoMage wrote:how the fuck did you just happen to look at that and figure that out almost fucking instantly?
Re: Custom Auxbox Creations
mmm... >:/ i downloaded your 47.89kb auxbox file (my old one was from 4 years ago and only 7kb so i thought yours might be better) and... why does it not function? i renamed it from auxbox.txt to auxbox.lua and put it in the clientscripts folder but in-game there's no setup prompt or anything in the auxbox part of the UI.brentoboy wrote: ↑Wed Jun 19, 2013 12:10 pmHere's my latest "all-in-wonder" auxbox, with character name config files.Keighn wrote:Went for a long walk and thought of this:
Aux that tells you how close you are to treasure map and which direction to walk. Maybe big red X when you're there.
I have no idea how to do that, not sure its even possible.
I posted my character's config file as a sample, as well as one that has most of what you requested above (the stuff that I could find a script out there to satisfy the need)
is there a key combo i've forgotten or something?
Re: Custom Auxbox Creations
I mucked around with this and it turns out you just have the read the instructons carefully.
a) download auxbox.txt, put it in clientscripts, rename it to auxbox.lua
b) you need a config file called YOURCHARNAME.aux - eg eggmceye.aux . There are two examples provided in the post: PUNISHER,txt and brentoboy.txt - the file name has to be your alt name with extension aux, eg eggmceye.aux
for this eggmceye.aux
output looks like this:
a) download auxbox.txt, put it in clientscripts, rename it to auxbox.lua
b) you need a config file called YOURCHARNAME.aux - eg eggmceye.aux . There are two examples provided in the post: PUNISHER,txt and brentoboy.txt - the file name has to be your alt name with extension aux, eg eggmceye.aux
for this eggmceye.aux
Code: Select all
REAL_WORLD_TIME
MOON_PHASE
-
XP_LEVEL
LAST_5_HITS
-
RECENT_SKILLS
-
POTIONS
-
SCROLLS
-
ENCHANTING
You do not have the required permissions to view the files attached to this post.
Re: Custom Auxbox Creations
https://imgur.com/a/vox9Lyc
o_O i did that but it's still not working in-game. i think i should've kept my old auxbox file...i could configure that one in-game and not need a secondary file.
edit: oh, wait... i see. i also need to change the name in auxbox.lua from brentboy to my character name too. i think?
what i mean is, why does this have to be harder to use now?
edit2: ok, had to dig through the manual but i found the problem after finding the alt + F5 key combo to reload auxbox. for some reason, even after renaming the 2 auxbox files correctly 1 of them isn't loading properly which is preventing auxbox from working at all.
hmmm... i wonder if that old auxbox file was the default one... i think it used the alt+M and other commands to set it up and scroll through it.
o_O i did that but it's still not working in-game. i think i should've kept my old auxbox file...i could configure that one in-game and not need a secondary file.
edit: oh, wait... i see. i also need to change the name in auxbox.lua from brentboy to my character name too. i think?
what i mean is, why does this have to be harder to use now?
edit2: ok, had to dig through the manual but i found the problem after finding the alt + F5 key combo to reload auxbox. for some reason, even after renaming the 2 auxbox files correctly 1 of them isn't loading properly which is preventing auxbox from working at all.
hmmm... i wonder if that old auxbox file was the default one... i think it used the alt+M and other commands to set it up and scroll through it.