openkore icon indicating copy to clipboard operation
openkore copied to clipboard

Feature Request: Check Item before sell

Open alisonrag opened this issue 7 years ago • 2 comments

Feature Request

Summary:

We need a sub to check if item that we are selling have refine/card/option and avoid to sell (maybe add a key in config to sell or not)

Benefits:

stop selling very important items

based in #2030

alisonrag avatar Jun 13 '18 02:06 alisonrag

something like this ?

				next if (($config{sellAuto} > 1) && ($item->{upgrade} || $item->{broken} || $item->{options} || $item->{cards}));

never been tested

c4c1n6kr3m1 avatar Jun 20 '18 10:06 c4c1n6kr3m1

@sctnightcore , yes this will disable selling items with an option parameter , about changing a25 to a* , i don't have an opinion , because i don't play kRO nor Private server

i never use sellAuto, so i think the simplest what if add

&& !$items_control{lc($item->{name})}{sell}

so if the item's name is listed correctly on items_control.txt, than this line will not work , and you can sell item's with options you listed on items_control.txt

and you deleted your comment :smile: ....... :confused:

c4c1n6kr3m1 avatar Jun 20 '18 12:06 c4c1n6kr3m1