Bug in Item selling [Trading Macro]

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

zhebby27
Noob
Noob
Posts: 16
Joined: 13 Oct 2009, 09:27
Noob?: Yes

Bug in Item selling [Trading Macro]

#1 Post by zhebby27 »

I have made my own macro thats sells items, ive been playing pRO server i have made a macro that sells items above the vending shop can hold for example im vending an raydric card which cost 500m but in pRO vend shop can only be 99.90m so ived created a macro, its working alright but its getting error and all my raydric card is gone and dont have any zeny, please help


this is the error ive been getting im using the newest SVN

The SVN Snapshot was last updated on : Wed Jan 25 14:02:44 UTC 2012 .
r7935 | fr3dbr | 2012-01-24 20:31:57 +0000 (Tue, 24 Jan 2012) | 1 line - Latest Fixes for bRO Update 24/01/2012, have fun ! :D

thats the SVN ive been using

Code: Select all

OpenKore version what-will-become-2.1
@ai_seq = deal macro deal deal deal deal deal deal deal deal deal deal deal deal deal deal deal deal deal deal deal sitting
Network state = 5
Network handler = Network::DirectConnection
SVN revision: 7933
Loaded plugins:
  plugins/macro.pl (macro)

Error message:
Assertion failed!
 at D:/BOT/NEW_BOT/home/src/deps/Carp/Assert.pm line 271
	Carp::Assert::assert('') called at src/Utils/ObjectList.pm line 165
	ObjectList::get('InventoryList=HASH(0x5d97b9c)', -1) called at (eval 204) line 5
	InventoryList::get('InventoryList=HASH(0x5d97b9c)', -1) called at src/Commands.pm line 1258
	Commands::cmdDeal('deal', 'add -1') called at src/Commands.pm line 286
	Commands::run('deal add -1') called at plugins/Macro/Utilities.pm line 463
	Macro::Utilities::processCmd('deal add -1') called at plugins/Macro/Utilities.pm line 517
	Macro::Utilities::callMacro('mainLoop_pre', undef, undef) called at src/Plugins.pm line 431
	Plugins::callHook('mainLoop_pre') called at src/functions.pl line 69
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x2c3b04)') called at openkore.pl line 97
	main::__start() called at start.pl line 136

Stack trace:
Assertion failed!
 at D:/BOT/NEW_BOT/home/src/deps/Carp/Assert.pm line 271
	Carp::Assert::assert('') called at src/Utils/ObjectList.pm line 165
	ObjectList::get('InventoryList=HASH(0x5d97b9c)', -1) called at (eval 204) line 5
	InventoryList::get('InventoryList=HASH(0x5d97b9c)', -1) called at src/Commands.pm line 1258
	Commands::cmdDeal('deal', 'add -1') called at src/Commands.pm line 286
	Commands::run('deal add -1') called at plugins/Macro/Utilities.pm line 463
	Macro::Utilities::processCmd('deal add -1') called at plugins/Macro/Utilities.pm line 517
	Macro::Utilities::callMacro('mainLoop_pre', undef, undef) called at src/Plugins.pm line 431
	Plugins::callHook('mainLoop_pre') called at src/functions.pl line 69
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x2c3b04)') called at openkore.pl line 97
	main::__start() called at start.pl line 136
 at D:/BOT/NEW_BOT/home/src/deps/Carp/Assert.pm line 271
	Carp::Assert::assert('') called at src/Utils/ObjectList.pm line 165
	ObjectList::get('InventoryList=HASH(0x5d97b9c)', -1) called at (eval 204) line 5
	InventoryList::get('InventoryList=HASH(0x5d97b9c)', -1) called at src/Commands.pm line 1258
	Commands::cmdDeal('deal', 'add -1') called at src/Commands.pm line 286
	Commands::run('deal add -1') called at plugins/Macro/Utilities.pm line 463
	Macro::Utilities::processCmd('deal add -1') called at plugins/Macro/Utilities.pm line 517
	Macro::Utilities::callMacro('mainLoop_pre', undef, undef) called at src/Plugins.pm line 431
	Plugins::callHook('mainLoop_pre') called at src/functions.pl line 69
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x2c3b04)') called at openkore.pl line 97
	main::__start() called at start.pl line 136

if u need the code here ill PM it to u coz only few of the player knows how to create i dont want to spoon feed them my own macro
EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Bug in Item selling [Trading Macro]

#2 Post by EternalHarvest »

It's not a very good idea to do an important interaction with other players with macro plugin, since it's not designed to be secure or suitable for serious stuff. Even if somebody looks at your code, he probably won't guarantee that there's no problems left after that.