Openkore: Autostorage and Autosell don't work together

Created on 9 Nov 2017  路  28Comments  路  Source: OpenKore/openkore

Please refer to the following resources for help using OpenKore:
faqs - http://openkore.com/index.php/Frequently_Asked_Questions (such as "Packet Tokenizer")
forum - http://forums.openkore.com
documentation wiki - http://openkore.com/index.php/Main_Page
download new openkore - https://github.com/OpenKore/openkore/archive/master.zip

  • Before submitting an issue, ensure you are on the latest release
  • Check if an issue already exists for your request
  • Please post in English if possible
  • Please use the issue template, please post infornations about the server and your configuration

------------------ Bug Report Template ------------------

Summary:

Bot sells everything in inventory even though items_control.txt has been set.
Re;Start server

Affected configuration(s)/ file(s):

Include relevant code snippets and source code references
config.txt

storageAuto 1
storageAuto_npc comodo 195 150
storageAuto_distance 1
storageAuto_npc_type 1
storageAuto_npc_steps c c r1 n
storageAuto_password
storageEncryptKey
storageAuto_keepOpen 0
storageAuto_useChatCommand
storageAuto_notAfterDeath
relogAfterStorage 0
minStorageZeny 0

npcTimeResponse
npcWrongStepsMethod 0

getAuto Awakening Potion {
minAmount 0
maxAmount 50
passive 1
dcOnEmpty 0
}

sellAuto 1
sellAuto_npc comodo 225 164
sellAuto_standpoint
sellAuto_distance 2
sellAuto_npc_steps

items_control.txt
all 0 0 1

Hydra Card 0 1 0

Impact:

Bot opens storage but doesn't store anything instead, bot sells everything.

Expected Behavior:

bot stores some items and sell some items.

Actual Behavior:

bot opens storage and close it immediately without performing any other storing action then proceed to sell all items in the inventory.

Steps to Reproduce:

------------------ Feature Request Template ------------------

Summary:
Affected configuration(s)/ file(s):

Include relevant code snippets and source code references

Impact:
Benefits:
Drawbacks:
Additional Details:

Most helpful comment

@alisonrag I've already downloaded the latest openkore.. and using the same config as above..
somehow the bot still sells everything despite the items_control.txt has been properly set up..
how is this happening?

All 28 comments

did you readed the documentation?
you cant do it:
items_control.txt
all 0 0 1 << here the kore will sell everything
and spect that openkore store everything

download the latest version of openkore:
https://github.com/OpenKore/openkore/archive/master.zip

read the documentation:
http://openkore.com/index.php/Items_control.txt

mm... what I want to do is to sell everything except hydra card..
so in items_control.txt I set,
all 0 0 1
Hydra Card 0 1 0
I think it should be fine.. but I dont know somehow it sells everything and ignore that 0 1 0 I specified.

try the id of hydra card:

all 0 0 1 0 0
4035 0 1 0 0 0

Testing... this is gonna take forever to get hydra card..
--Edit--
Tested with other items.. kore still sells everything..

delete everything in items_control and test it:

4035 0 1 0 0 0
all 0 0 1 0 0

any update?

It's still doesn't work..
I tried changing hydra with other items.. and Kore still sells everything.. this is weird..

did you do @alisonrag told you to ?
clear all content inside items_control.txt
than start write
Hydra Card 0 1 0
4035 0 1 0
all 0 0 1

@ncplay91 Upload your config.txt and items_control.txt here.

Here's the config:

storageAuto 1
storageAuto_npc comodo 195 150
storageAuto_distance 1
storageAuto_npc_type 1
storageAuto_npc_steps c c r1 n
storageAuto_password
storageEncryptKey
storageAuto_keepOpen 0
storageAuto_useChatCommand
storageAuto_notAfterDeath
relogAfterStorage 0
minStorageZeny 0

npcTimeResponse
npcWrongStepsMethod 0

getAuto Awakening Potion {
minAmount 1
maxAmount 30
passive 1
dcOnEmpty 0
}

sellAuto 1
sellAuto_npc cmd_in01 79 182
sellAuto_standpoint
sellAuto_distance 5
sellAuto_npc_steps

and this is the items_control.txt:

all 0 0 1

4035 0 1 0 0 0 (-> this is Hydra Card like @alisonrag suggested)
Hydra Card 0 1 0
Awakening Potion 30 1 0

The funny thing is that.. Kore sells everything in my inventory except the 30 awakening potions it took from kafra..
and when I set Hydra Card 100 1 0... Kore still sells my Hydra Card T.T.. I was like.. seriously!?

sellAuto_npc_steps

this is rough, if you want to try, i haven't test, my bot is years late
src\AI\CoreLogic.pm
find this line
next if ($item->{equipped} || !$item->{sellable});
add this code after that one
next if ($item->{name} =~ / Card$/i);

@ncplay91 Lol. Upload bro, not copy paste.

you are the one here with this problem.

can you download the latest version and clean make only the necessary configuration?

@alisonrag I've already downloaded the latest openkore.. and using the same config as above..
somehow the bot still sells everything despite the items_control.txt has been properly set up..
how is this happening?

Just upload the files here, let us take a look what changes you've made..
Since you prolly have no idea what you just did, the thing you thought were right prolly wrong.

No one else seem to have this issue from your server.
The only thing can be concluded here is fault at your end, not openkore.

Why i get this error?
I already pull latest code from openkore.

image

TQ

config.txt
items_control.txt

Ok.. so with this config and items_control.txt, the sequence that happens is that.. Kore will respawn at 49% weight, get awakening potions from kafra, and then sell everything in my inventory except the awakening potions... this is weird..

Rather than sell all, you should store all and set only sell things you don't need.

uhh... yeah... so you too dont see anything wrong with it, right..?
how the heck am I experiencing this weird issue?

you too dont see anything wrong with it

  • Afaik you dont use tab. Use space.
  • Default should be all 0 1 0
  • In some cases, item ID/Name mismatch from openkore database (_E.g. Savage Babe & Hunter Fly monster in IRO is not match even using mob ID, unless it fall under all, specifically targeting this won't kill any savage babe/hunter fly until judgement day. Welp even judgement day come it wont after all)._
  • If you set all 0 0 1 I bet it didn't match openkore DB and it proceed to sell all those not mentioned in items_control.txt.

Ah! so that's probably why!? imma give it a shot check it now..

@ncplay91 download new openkore , I think work XD

It doesnt work!! Oh no I sold my valuable items again!!! How the heck is this happening to me!?

@ncplay91
Config.txt

sellAuto_npc_steps
http://openkore.com/index.php/SellAuto_npc_steps

items_control.txt

all 0 1 0
http://openkore.com/index.php/Items_control.txt

try to leave item_control.txt just with one setting

all 0 1 0

try this and see... if this one is ok, then ur item_control is broken.
from there, u can set ur own sellauto item, and store item.

Sometimes I feel you as a end user and its worth to take a rest for few moments. There is one time that I get frustrated why the heck my Wizard keeps killing Ant Egg when I explicity told it in mon_control.txt that
Ant Egg 0 0 0
Monster Ant Egg 0 0 0
Andre Egg 0 0 0

and the bot still keep killing Ant Egg, I even copy paste from the console. Then after few rests (I know it's my problem, not bug; my hunch tells me so). Then I decided to read the lines 1 by 1, in the end I found out at the last line, there this:

Ant Egg 1 0 0

no wonder, my bot keeps killing Ant Egg! Waste the time! There is one time also that I have many profiles, few for Wild Rose, few is support Priest. I keep wondering why the heck the priest keep gather items when I told him not to, and keep changing the config.txt again and again. After few rests, and step-by-step trace back, then only I understand all this while I'm changing my Wild Rose bot profile. You know sometimes

So @ncplay91

I wondered, why your item_control.txt have tabs in it? I open in Notepad++ and turn on "Show All Character".

At line 46 Skelworker Card have tabs
At line 48 Andre Card have tabs,
At line 77 Cyfar have tabs,
At line 87 Honey have tabs,

I would suggest you try Red Pot (since you bot keep selling everything). and make sure you're edit the correct profile on the bot. Delete every item listed in items_control.txt to and set

all 0 0 1
Red Potion 5 1 0

Then observe if you bot keep still sells the Red Pot or keeps at 5 ea.

the owner not reply for a long time

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lututui picture lututui  路  5Comments

ojuniorbezerra picture ojuniorbezerra  路  4Comments

farrainbow picture farrainbow  路  4Comments

CaioVictor21 picture CaioVictor21  路  4Comments

restartowi picture restartowi  路  5Comments