PDA

View Full Version : help me correct my errors!


botro
6th July 2005, 10:02
My bot sometimes experience error. could somene please help me avoid my bot from having errors. like this one.



@ai_seq = items_take

Can't use an undefined value as a HASH reference at C:/botfolder/src/Interface/Wx/ItemList.pm line 119.
at C:/botfolder/src/Interface/Wx/ItemList.pm line 119
Interface::Wx::ItemList::set('Interface::Wx::ItemL ist=HASH(0x23a0f68)', 'ARRAY(0xcda350)', 'HASH(0xcda398)', 'ARRAY(0xcda230)', 'HASH(0xcda278)', 'ARRAY(0xcda1a0)', 'HASH(0xcda1e8)', 'ARRAY(0xcda2c0)', 'HASH(0xcda308)', ...) called at C:/botfolder/src/Interface/Wx.pm line 607
Interface::Wx::updateItemList('Interface::Wx=HASH( 0x1749a34)') called at C:/botfolder/src/Interface/Wx.pm line 98
Interface::Wx::__ANON__('Interface::Wx=HASH(0x1749 a34)', 'Wx::TimerEvent=SCALAR(0x3161250)') called at C:/botfolder/src/Interface/Wx.pm line 145
Interface::Wx::mainLoop('Interface::Wx=HASH(0x1749 a34)') called at openkore.pl line 406
main::__start() called at start.pl line 93


Died at this line:
push @objectsID, $_;
* $objects{$_} = {%{$monsters->{$_}}};
$objects{$_}{type} = 'm';

please help. i would like to leave my bot working without any fear of it to stop.