OpenKore / openkore

A free/open source client and automation tool for Ragnarok Online
http://openkore.com
Other
1.29k stars 1.05k forks source link

last ubdate : autobying problem #671

Closed Glikadin closed 7 years ago

Glikadin commented 7 years ago

I take last ubdate from GitHub, but i detect bug: My haracter have 1kk zeny, he is trying to buy 50 wing (its 3k zeny), but he cant make this and get message:

Done talking with NPC Tool Dealer (0). Buy failed (insufficient zeny).

=\ I enter in еру game and successfully buy this wings,

Henrybk commented 7 years ago

Would you please post here or send me your config settings and explain with more detail how the npc interaction started? I'll try to fix this as soon as I can reproduce the error.

I was able to buy fly wings using both console and autobuy. https://i.gyazo.com/dae80a1e277c0efca5746fc43d4e2b95.png

Glikadin commented 7 years ago

buyAuto Fly Wing { minAmount 2 maxAmount 50 npc izlude_in 115 61 zeny > 3000 npc_steps b e distance 8 disabled 0 label BuyWing passive }

Henrybk commented 7 years ago

I tried your exact code except for the npc and was able to buy without problems

https://gyazo.com/b49962dcf5c9083f24d94dd4fb586615

Would you please set logConsole 1 and debug 3 in config.txt and reproduce the error and after give me the console.txt generated in your logs folder?

Glikadin commented 7 years ago

The error does not repeat T___T . But i have other bug : ::::::::::::::: config.txt ::::::::::::::: statsAddAuto 1 statsAddAuto_list 20 dex, 20 str, 50 agi, 30 dex, 50 str, 60 agi, 40 dex, 95 agi, 80 str, 59 dex statsAddAuto_dontUseBonus 1 statsAdd_over_99 0 ::::::::::::::::::::::::::::::::::::::::::::::::::: 2151512512

Henrybk commented 7 years ago

During files loading raiseStat should print a message in console if debug is active like this one: https://gyazo.com/6f14f8e93ca326289457752269dd06f7

Would you paste it here?

Also, please check to make sure your sys.txt contains raiseStat and raiseSkill

Glikadin commented 7 years ago

Oooh Thx you , i not ubdate plugins. All is well.

Glikadin commented 7 years ago

Calculating auto-storage route to: Izlude Town(izlude): 134, 88 You on route to: Izlude Town(izlude): 134, 88 Talking with NPC Tool Dealer (0) at (115,61), ID 49 C7 00 00 AI: look NPC buyAuto route storageAuto route storageAuto route storageAuto route storageAuto route storageAuto route storageAuto route | 17 Sent look: 0 NPC Tool Dealer (0): Initiating the talk Sent talk: 49 C7 00 00 Received packet: 09DB Handler: actor_moved Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 09DC Handler: actor_connected Received packet: 043F Handler: actor_status_active Received packet: 00C4 Handler: npc_store_begin Sent get sell list to NPC: 49 C7 00 00 Received packet: 00C6 Handler: npc_store_info Item added to Store: Magnifier - 40 z Item added to Store: Red Potion - 50 z Item added to Store: Orange Potion - 200 z Item added to Store: Yellow potion - 550 z Item added to Store: White Potion - 1200 z Item added to Store: Green Potion - 40 z Item added to Store: Concentration Potion - 800 z Item added to Store: Awakening Potion - 1500 z Item added to Store: Fly Wing - 60 z Item added to Store: Butterfly Wing - 300 z Item added to Store: Trap - 100 z Item added to Store: Arrow - 1 z ---------------- Store List (Unknown) ----------------

Name Type Price

0 Magnifier Usable Special 40z 1 Red Potion Usable Heal 50z 2 Orange Potion Usable Heal 200z 3 Yellow potion Usable Heal 550z 4 White Potion Usable Heal 1200z 5 Green Potion Usable Heal 40z 6 Concentration Potion Usable Special 800z 7 Awakening Potion Usable Special 1500z 8 Fly Wing Usable Special 60z 9 Butterfly Wing Usable Special 300z 10 Trap Event 100z 11 Arrow Arrow 1z

AI: NPC buyAuto route storageAuto route storageAuto route storageAuto route storageAuto route storageAuto route storageAuto route | 16 Received packet: 09DB Handler: actor_moved Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: demonyo (2) Boy Merchant (116, 46) Done talking with NPC Tool Dealer (0). NPC Tool Dealer (0): Task::TalkNPC::DESTROY was called Sent bulk buy: 656 x 10 Received packet: 00B1 Handler: stat_info Stat: 20 => 5654 Sent Sync Received packet: 00CA Handler: buy_result Buy failed (insufficient zeny).

::::::::::::::::::::::::::::::::::::::::::::::: Status ::::::::::::::::::::::::::::::::::::::::::::::: Padampreet HP: 891/891 (100%) Thief (Boy) SP: 108/108 (100%) Base: 48 42,834/75,973 /42834 (56.38%) Job : 37 32,955/40,500 /32955 (81.37%) Zeny: 5,654 Weight: 205/3480 (5.9%) Statuses: Spirits/Coins/Amulets: 0

Total Damage: 0 Dmg/sec: 0.00 Total Time spent (sec): 0.00 Last Monster took (sec): 0.00 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::::::::::::::::::config.txt::::::::::::::::::::::::::::::::::::::::::::::: buyAuto Fly Wing { minAmount 2 maxAmount 50 npc izlude_in 115 61 zeny > 3000 npc_steps b e distance 8 disabled 0 label BuyWing passive } :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

Henrybk commented 7 years ago

Would you please try the code in this pull request? #672

It might fix your problem and for everyone who might have it.

Glikadin commented 7 years ago

Not work. Spam in console message: Trying to auto close the conversation due to error.

Bot are stuck

Glikadin commented 7 years ago

NPC Tool Dealer (0): Initiating the talk Sent talk: 49 C7 00 00 Received packet: 007F Handler: received_sync Received Sync Received packet: 00C4 Handler: npc_store_begin Received packet: 09DC Handler: actor_connected Received packet: 09DC Handler: actor_connected AI: NPC buyAuto route | 4 Sent get sell list to NPC: 49 C7 00 00 Received packet: 00C6 Handler: npc_store_info Item added to Store: Magnifier - 40 z Item added to Store: Red Potion - 50 z Item added to Store: Orange Potion - 200 z Item added to Store: Yellow potion - 550 z Item added to Store: White Potion - 1200 z Item added to Store: Green Potion - 40 z Item added to Store: Concentration Potion - 800 z Item added to Store: Awakening Potion - 1500 z Item added to Store: Fly Wing - 60 z Item added to Store: Butterfly Wing - 300 z Item added to Store: Trap - 100 z Item added to Store: Arrow - 1 z ---------------- Store List (Unknown) ----------------

Name Type Price

0 Magnifier Usable Special 40z 1 Red Potion Usable Heal 50z 2 Orange Potion Usable Heal 200z 3 Yellow potion Usable Heal 550z 4 White Potion Usable Heal 1200z 5 Green Potion Usable Heal 40z 6 Concentration Potion Usable Special 800z 7 Awakening Potion Usable Special 1500z 8 Fly Wing Usable Special 60z 9 Butterfly Wing Usable Special 300z 10 Trap Event 100z 11 Arrow Arrow 1z

Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Vegetable (3) Girl Thief (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 09DB Handler: actor_moved Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Aragornito (1) Boy Thief (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Utaha (2) Girl Assassin (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared AI: NPC buyAuto route | 4 Done talking with NPC Tool Dealer (0). NPC Tool Dealer (0): Task::TalkNPC::DESTROY was called Received packet: 09DC Handler: actor_connected Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Slootbag (4) Girl Swordsman (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared AI: buyAuto route | 3 Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Conga (1) Girl Assassin (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared AI: buyAuto route | 3 Received packet: 09DC Handler: actor_connected Received packet: 043F Handler: actor_status_active AI: buyAuto route | 3 Received packet: 09DB Handler: actor_moved Received packet: 043F Handler: actor_status_active Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Tool (1) Girl Merchant (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Sent Sync AI: buyAuto route | 3 Received packet: 007F Handler: received_sync Received Sync Received packet: 09DC Handler: actor_connected Calculating auto-storage route to: Izlude Town(izlude): 134, 88 You on route to: Izlude Town(izlude): 134, 88 AI: NPC buyAuto route storageAuto route | 6 Received packet: 09DC Handler: actor_connected Received packet: 09DC Handler: actor_connected Talking with NPC Tool Dealer (0) at (115,61), ID 49 C7 00 00 Sent look: 6 NPC Tool Dealer (0): Initiating the talk Sent talk: 49 C7 00 00 Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Vegetable (2) Girl Thief (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 09DC Handler: actor_connected Wiped old AI: NPC buyAuto route storageAuto route | 6 Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Utaha (1) Girl Assassin (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared autoBreakTime: tue 3:9 Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Slootbag (2) Girl Swordsman (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared AI: NPC buyAuto route storageAuto route | 6 Received packet: 09DC Handler: actor_connected Received packet: 09DB Handler: actor_moved Trying to auto close the conversation due to error. AI: NPC buyAuto route storageAuto route | 6 Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Conga (1) Girl Assassin (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Received packet: 09DC Handler: actor_connected Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Received packet: 043F Handler: actor_status_active Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Received packet: 09DB Handler: actor_moved Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Trying to auto close the conversation due to error. Received packet: 043F Handler: actor_status_active Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Aragornito (3) Boy Thief (116, 46) Received packet: 0229 Handler: character_status

Glikadin commented 7 years ago

This bot have 5k zeny =\ , but he cant buy 50 Fly Wings for 3k

Henrybk commented 7 years ago

Oh I forgot to say, remove the line npc_steps b e or just set it to npc_steps b and test with the pull request I pointed.

Sorry for the inconvenience.

Glikadin commented 7 years ago

NPC Tool Dealer (0): Initiating the talk Sent talk: 49 C7 00 00 Received packet: 09DC Handler: actor_connected Received packet: 043F Handler: actor_status_active AI: NPC buyAuto route | 4 Sent get player info: ID - 07 E0 01 00 Sent Sync Sent get player info: ID - B2 E3 01 00 Received packet: 00C4 Handler: npc_store_begin Received packet: 0095 Handler: actor_info Received object info: Aragornito Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Rolinha (1) Girl Thief (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 007F Handler: received_sync Received Sync Received packet: 0095 Handler: actor_info Received object info: Tool AI: NPC buyAuto route | 4 Received packet: 09DB Handler: actor_moved Sent get sell list to NPC: 49 C7 00 00 Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Utaha (2) Girl Assassin (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 00C6 Handler: npc_store_info Item added to Store: Magnifier - 40 z Item added to Store: Red Potion - 50 z Item added to Store: Orange Potion - 200 z Item added to Store: Yellow potion - 550 z Item added to Store: White Potion - 1200 z Item added to Store: Green Potion - 40 z Item added to Store: Concentration Potion - 800 z Item added to Store: Awakening Potion - 1500 z Item added to Store: Fly Wing - 60 z Item added to Store: Butterfly Wing - 300 z Item added to Store: Trap - 100 z Item added to Store: Arrow - 1 z ---------------- Store List (Unknown) ----------------

Name Type Price

0 Magnifier Usable Special 40z 1 Red Potion Usable Heal 50z 2 Orange Potion Usable Heal 200z 3 Yellow potion Usable Heal 550z 4 White Potion Usable Heal 1200z 5 Green Potion Usable Heal 40z 6 Concentration Potion Usable Special 800z 7 Awakening Potion Usable Special 1500z 8 Fly Wing Usable Special 60z 9 Butterfly Wing Usable Special 300z 10 Trap Event 100z 11 Arrow Arrow 1z

Received packet: 09DB Handler: actor_moved Received packet: 043F Handler: actor_status_active Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Tool (4) Girl Merchant (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Done talking with NPC Tool Dealer (0). NPC Tool Dealer (0): Task::TalkNPC::DESTROY was called Sent bulk buy: 656 x 10 Received packet: 00B1 Handler: stat_info Stat: 20 => 5654 Received packet: 00CA Handler: buy_result Buy failed (insufficient zeny). AI: buyAuto route | 3 AI: buyAuto route | 3 Received packet: 09DC Handler: actor_connected Sent get player info: ID - FF FB 01 00 Received packet: 0095 Handler: actor_info Received object info: Slootbag Received packet: 09DC Handler: actor_connected Received packet: 043F Handler: actor_status_active AI: buyAuto route | 3 Sent bulk buy: 656 x 10 Received packet: 09DC Handler: actor_connected autoBreakTime: tue 3:30 Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Aragornito (3) Boy Thief (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Slootbag (1) Girl Swordsman (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared AI: buyAuto route | 3 AI: buyAuto route | 3 Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Conga (4) Girl Assassin (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Sent Sync Sent bulk buy: 656 x 10 Received packet: 007F Handler: received_sync Received Sync Received packet: 09DC Handler: actor_connected Received packet: 09DB Handler: actor_moved Received packet: 043F Handler: actor_status_active AI: buyAuto route | 3 Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: DOMOH (2) Boy Blacksmith (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 09DC Handler: actor_connected Received packet: 09DB Handler: actor_moved Received packet: 09DC Handler: actor_connected Received packet: 043F Handler: actor_status_active AI: buyAuto route | 3 Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: MemeKnight (0) Boy Novice (117, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 09DB Handler: actor_moved Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Rolinha (1) Girl Thief (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 09DB Handler: actor_moved AI: buyAuto route | 3 Calculating auto-storage route to: Izlude Town(izlude): 134, 88 You on route to: Izlude Town(izlude): 134, 88 Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Utaha (2) Girl Assassin (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Talking with NPC Tool Dealer (0) at (115,61), ID 49 C7 00 00 Sent look: 6 NPC Tool Dealer (0): Initiating the talk Sent talk: 49 C7 00 00 Received packet: 09DB Handler: actor_moved Received packet: 043F Handler: actor_status_active Received packet: 0080 Handler: actor_died_or_disappeared Player Disappeared: Tool (3) Girl Merchant (116, 46) Received packet: 0229 Handler: character_status Received packet: 0080 Handler: actor_died_or_disappeared Received packet: 00C4 Handler: npc_store_begin AI: NPC buyAuto route storageAuto route | 6 Sent get sell list to NPC: 49 C7 00 00

Henrybk commented 7 years ago

Okay, sorry again for the inconvenience, many updates were made on openkore i the last day regarding this problem, would you please update your openkore to the last version, set logConsole 1 and debug 3 in config.txt and reproduce the error and after give me the console.txt generated in your logs folder.

and use your code in your config.txt, with npc_steps b

This time if it isn't fixed at least I'll be able to take a closer look at the problem.

Glikadin commented 7 years ago

All is well work