Openkore.com

OpenKore Forums
It is currently 15 Nov 2018, 18:47

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: impossible to use drop command
PostPosted: 19 Oct 2018, 15:35 
Offline
Noob
Noob

Joined: 29 Mar 2014, 09:42
Posts: 6
Hello, i'm boting on GGamerz-RO and i have aprobleme with the use of drop command...

When i try to drop an item like

drop item ID or drop item ID number

There is no reaction if the item exist, if not an error message appear correctly...

I searched a solution in the .pm files... the Sub cmdDrop in Command.pm has well processed, sub ai_drop too... it appear that the sub processDrop is not running well

Quote:
sub processDrop {
message TF("sub processDrop Done");
if (AI::action eq "drop" && timeOut(AI::args)) {
message TF("AI::action eq "drop" && timeOut(AI::args");
my $item = AI::args->{'items'}[0];
my $amount = AI::args->{max};

drop($item, $amount);
shift @{AI::args->{items}};
AI::args->{time} = time;
AI::dequeue if (@{AI::args->{'items'}} <= 0);
}
}


I added some spy in the code to understand where is the probleme (the line with "message TF()"), when i let the blue line in code, Core is spamming the message so the process is weel called, but when I try to drop my item, there is no alert... the problem is in the AI::action eq "drop" && timeOut(AI::args) condition...

If i use other process, like cart get command wich trigger when AI::action eq "cartAdd" && timeOut(AI::args) all is good, so the probleme is in the AI::action... but i can't go further


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group