PDA

View Full Version : help cart bug


austin1415
3rd October 2005, 12:19
pls help i keep on disconnecting when using autocart, i've searched it in this forum
about the cart bug fix chinito have posted, my only question is where will i put this

##### AUTO-CART #####
if ($chars[$config{'char'}]{'cart'} && timeOut(\%{$timeout{'ai_cartAuto'}})) {
foreach my $key (keys %cart_control) {
my $invIndex = findIndexString_lc(\@{$chars[$config{'char'}]{'inventory'}}, "name", $key);
next if ($invIndex eq "" && !$cart_control{$key}{'getAuto'} && !$cart_control{$key}{'keep'});
my $cartIndex = findIndexString_lc(\@{$cart{'inventory'}}, "name", $key);
if ($cartIndex ne "") {
my $amount;
if ($invIndex ne "" && $chars[$config{'char'}]{'inventory'}[$invIndex]{'amount'} < $cart_control{$key}{'keep'}) {
$amount = $cart_control{$key}{'keep'} - $chars[$config{'char'}]{'inventory'}[$invIndex]{'amount'};
}elsif ($invIndex eq ""){
$amount = $cart_control{$key}{'keep'};
}
if ($amount > $cart{'inventory'}[$cartIndex]{'amount'}) {
$amount = $cart{'inventory'}[$cartIndex]{'amount'};
}
sendCartGetToInv(\$remote_socket, $cartIndex, $amount);
}
}
$timeout{'ai_cartAuto'}{'time'} = time;
}




Then change the red code's into this:


Quote:
f ($amount > 0) {
sendCartGetToInv(\$remote_socket, $cartIndex, $amount);
}




thx in advance, sorry for posting anoter thread because i'm really confused..

sorry for the bad english

Lafara
3rd October 2005, 13:01
Sorry to Interupted .
But this Code is not for Openkore , right ?
I think this Bug-fix Code was made for modKore-Hybrid-Rebirth (MKHR).

... I looked in my src\function.pl
and search for Cart autoadd/get code

.... those're totally difference

*********************
Another Question out of this topic !

for a bot Priest do ... Resurrection on Wraith Dead in Geffen Guild Dungeon
EXP Rate 1.1 +- 0.07 M per hour
do this EXP rate Moderate ? High ? or Low ?

I just need an Advice ... thank you