Character Info Toolbox

hesuchia

Member
I haven't read back if anyone suggested this, but would you consider adding das boot to the "special items" section of the code? It's better when you have it than the bathysphere. I added it manually to mine as generic[203], but I figure for future updates it'd be nice to not have to update it ;).
 

Bale

Minion
Sure. That seems quite reasonable. It's done now. Whenever I release the next update you won't have to bother changing it.


In other news... ckb, I took a look at your item_report() functions. I'm changing them to this:

PHP:
	//useful sub-functions for checking items: yes=green, no=red
	string item_report(boolean good, string itname) {
		return('<span style="color:' + (good? "green": "red") + '">'+itname+'</span>');
	}
	string item_report(boolean[item] itlist, string itname) {
		foreach it in itlist
			if(available_amount(it) > 0)
				return item_report(true, itname);
		return item_report(false, itname);
	}
	string item_report(item it) {
		return item_report(available_amount(it) > 0, to_string(it));
	}
	string item_report(item it, int num) {
		return item_report(available_amount(it) >= num, to_string(it));
	}
 
Last edited:

ckb

Minion
Staff member
Bale, I can live with most of that and your advanced programmery ways, except I just upated this to make it more clean for how many are currently available:

PHP:
	string item_report(item it, int num) {
		if (available_amount(it) >= num) {
			return('<span style="color:green">'+to_string(it)+'</span> ('+available_amount(it)+'/'+to_string(num)+')');
		} else {
			return('<span style="color:red">'+to_string(it)+'</span> ('+available_amount(it)+'/'+to_string(num)+')');
		}
	}

Also - I should upload a new file later to show you some updates I have done. More details forthcoming.
 
Last edited:

ckb

Minion
Staff member
Here's my updated tracker. I updated this:
the item_report functions with your and my changes
The steel organ quest, with more smart item tracking
preliminary Highland peak tracking (this is limited by the tracking Mafia does or does not yet do)
More MacGuffin start info
Added Bale's alter/sphere tracking
Added Pyramid tracking info


I really would like to add tracknig for the required wines for the L11 Manor quest, but I have no idea how mafia is tracknig this information. I would like to do it without any additional server hits. If you anyone has keen insights here it is much appreciated.

ckb
 

Attachments

  • charpane.ash
    143.3 KB · Views: 22

Bale

Minion
Bale, I can live with most of that and your advanced programmery ways, except I just upated this to make it more clean for how many are currently available:

PHP:
	string item_report(item it, int num) {
		if (available_amount(it) >= num) {
			return('<span style="color:green">'+to_string(it)+'</span> ('+available_amount(it)+'/'+to_string(num)+')');
		} else {
			return('<span style="color:red">'+to_string(it)+'</span> ('+available_amount(it)+'/'+to_string(num)+')');
		}
	}

That should be this:

PHP:
	string item_report(item it, int num) {
		return item_report(available_amount(it) >= num, to_string(it)) + ' ('+available_amount(it)+'/'+num+')';
	}


I really would like to add tracknig for the required wines for the L11 Manor quest, but I have no idea how mafia is tracknig this information. I would like to do it without any additional server hits. If you anyone has keen insights here it is much appreciated.

The information for dusty bottle identification is kept in the preferences: lastDustyBottle2271 to lastDustyBottle2276 and lastDustyBottleReset.

PHP:
item wine_id(int wine) {
	if(get_property("lastDustyBottleReset" == my_ascensions())
		for i from 2271 to 2276
			if(get_property("lastDustyBottle"+i) == wine)
				return to_item(i);
	return $item[none];
}

Unfortunately to determine which wines are needed you'd need to parse manor3.php. Looking at bumcheekascend suggests this:

PHP:
string[int] blar = split_string(visit_url("manor3.php?place=goblet"),"/otherimages/manor/glyph");
for i from 1 to 3
	print("Wine needed: "+ wine_id(substring(blar[i],0,1));

Since it requires a server hit, I'm not sure you'd want to add that feature.


I'll look at your updates in about 12 hours. :)
 
Last edited:

Paragon

Member
Is there a way to have a user defined list of buffs in the char pane that appear even if you don't have the buff active? You know, so you can just press the arrow next to them to activate them?
 

Bale

Minion
I recommend you use moods.

The feature you describe could be created, but I don't intend to write it since both interest and time are lacking. However if you or another creates that brick I might add it to the official release if it is done well, like ckb's tracker brick.
 

Bale

Minion
Been refactoring the tracker brick. Lots of code changes, but only a few functional changes, so I'm posting my current version here to allow ckb to synchronize with me in case he's making any interesting updates.
 
Last edited:

roippi

Developer
On the subject of moods - has any thought gone in to a mood switcher block? That's something I routinely travel back to the main interface for. I would have no need to add/remove individual buffs, just select from predefined moods.
 

Bale

Minion
On the subject of moods - has any thought gone in to a mood switcher block? That's something I routinely travel back to the main interface for. I would have no need to add/remove individual buffs, just select from predefined moods.

That was brought up in this thread once before. (Or perhaps somewhere else?) The idea was abandoned because KoLmafia does not provide sufficient support. You could fix that!

The missing piece is a way to ask KoL for the names of all currently defined moods. If you add that, then I could add a drop down to select one of them.
 

Bale

Minion
OH! There's a similar sort of function you could also add if you're going to add that one. Could we also have a function that will return the names of all currently existing outfits, both custom and standard? Outfit switching from the charpane would also be cool.
 

Bale

Minion
There is something about this script I do not understand. I'm hoping that someone can explain why a certain feature exists or else just tell me that it is a legacy of ChIT's early development and is now as useful than my appendix.

If chit.quests.hide is set to true then the charpane won't show the quest log, even if there is a quest brick listed in ChIT's preferences. WTF? ChIT will not display the quests brick unless it is explicitly instructed to do so by having "quests" listed in either the wall, ceiling, floor or toolbar. Why is there a preference to disable the other preference? Does anyone use this? Can I get rid of it completely?
 
Last edited:

ckb

Minion
Staff member
If chit.quests.hide is set to true then the charpane won't show the quest log, even if there is a quest brick listed in ChIT's preferences. WTF? ChIT will not display the quests brick unless it is explicitly instructed to do so by having "quests" listed in either the wall, ceiling, floor or toolbar. Why is there a preference to disable the other preference? Does anyone use this? Can I get rid of it completely?

I noticed that code when I started my tracker brick. I thought it was weird (and undocumented in the readme). I am all for getting rid of it.

ckb
 

fewyn

Administrator
Staff member
Any way we can get pvp fights added to this? I normally have them on the charpane but with this it doesn't actually list them anywhere.\

Edit: Ignore me, it seems I didn't break my stone this run... I'm not sure how I managed not to :/
 

lostcalpolydude

Developer
Staff member
Any way we can get pvp fights added to this? I normally have them on the charpane but with this it doesn't actually list them anywhere.\

Edit: Ignore me, it seems I didn't break my stone this run... I'm not sure how I managed not to :/

It's a new pvp season, your stone was repaired because of that.
 

roippi

Developer
OH! There's a similar sort of function you could also add if you're going to add that one. Could we also have a function that will return the names of all currently existing outfits, both custom and standard? Outfit switching from the charpane would also be cool.

See if r12062 provides what you want.
 
Top