I'm putting together an inventory script that checks all storage locations for Mr. items. I want to also check in your display case if you have one. The trouble begins if my character does Not have a display case. It then just tries to update the display case for each item i have it check, rather server & java intensive. I would rather use an if/then to avoid trying the display case if you don't have one.
I have looked for a similar function here and in KoLmafiaCLI.java and can't find one. So, does anyone know how best to do this without hard-coding the names?
Thanks!
I have looked for a similar function here and in KoLmafiaCLI.java and can't find one. So, does anyone know how best to do this without hard-coding the names?
Thanks!
Code:
void checkCase ( item it ) {
if ( display_amount( it ) != 0 )
print("Display: " + display_amount( it ) + " " + it) ;
}
---------------------------------------
Results:
Updating display case...
Updating display case...
Updating display case...