Code: Select all
OpenKore version what-will-become-2.0.6 (SVN version)
Network state = 4
Network handler = Network::DirectConnection
SVN revision: 6451
Loaded plugins:
  plugins/alertSoundSVN.pl (alertsound)
  plugins/autotalk.pl (autotalk)
  plugins/botBebado.pl (botBebado)
  plugins/burlabr.pl (burlabr)
  plugins/comboSpam.pl (comboSpam)
  plugins/macro.pl (macro)
  plugins/playerRecorder.pl (prec)
  plugins/reactOnKillSteal.pl (reactOnKillSteal)
  plugins/reactOnNPC.pl (reactOnNPC)
  plugins/recorder.pl (recorder)
  plugins/tele-search-v2.pl (Tele-Search v2)
  plugins/waitForParty.pl (waitParty)
  plugins/snapshot/snapshot.pl (snapshot)
Error message:
Can't call method "inventory" on an undefined value at plugins/Macro/Utilities.pm line 248.
Stack trace:
Can't call method "inventory" on an undefined value at plugins/Macro/Utilities.pm line 248.
 at plugins/Macro/Utilities.pm line 248
	Macro::Utilities::getInventoryAmount('Great Nature') called at plugins/Macro/Automacro.pm line 146
	Macro::Automacro::checkItem('inv', '"Great Nature" >= 1') called at plugins/Macro/Automacro.pm line 513
	Macro::Automacro::automacroCheck('Network::serverConnect/mapserver', 'undef', 'undef') called at src/Plugins.pm line 440
	Plugins::callHook('Network::serverConnect/mapserver') called at src/Network/DirectConnection.pm line 558
	Network::DirectConnection::checkConnection('Network::DirectConnection=HASH(0x2e91808)') called at src/functions.pl line 535
	main::mainLoop_initialized() called at src/functions.pl line 70
	main::mainLoop() called at src/Interface.pm line 75
	Interface::mainLoop('Interface::Console::Win32=HASH(0x2282830)') called at openkore.pl line 96
	main::__start() called at start.pl line 119
Died at this line:
  	my $amount = 0;
* 	foreach my $item (@{$char->inventory->getItems}) {
  		if (lc($item->name) eq $arg) {$amount += $item->{amount}}
Code: Select all
automacro quebrar {
  delay 2
  inventory "Apple" >= 1
  call {
  log --- It worked ---
		}
}



