Пытался настроить do-коммандер, но он походу не понимает параметр zeny.
Код: Выделить всё
doCommand conf storageAuto 0 {
zeny < 40
timeout 10
}
doCommand conf storageAuto 1 {
zeny > 39
timeout 10
}
Модератор: 4epT
Код: Выделить всё
doCommand conf storageAuto 0 {
zeny < 40
timeout 10
}
doCommand conf storageAuto 1 {
zeny > 39
timeout 10
}
Код: Выделить всё
$messageSender->sendStorageClose() unless $config{storageAuto_keepOpen};
if (percent_weight($char) >= $config{'itemsMaxWeight_sellOrStore'} && ai_storageAutoCheck()) {
error T("Character is still overweight after storageAuto (storage is full?)\n");
if ($config{dcOnStorageFull}) {
error T("Disconnecting on storage full!\n");
chatLog("k", T("Disconnecting on storage full!\n"));
quit();
}
}
а в файл config.txt добавить строчку:sub ai_storageAutoCheck {
return 0 if ($char->{skills}{NV_BASIC}{lv} < 6);
return 0 if ($char->{zenny} < $config{StorageZeny});
for (my $i = 0; $i < @{$char->{inventory}}; $i++) {
my $item = $char->{inventory}[$i];
next if (!$item || !%{$item} || $item->{equipped});
my $control = Misc::items_control($item->{name});
if ($control->{'storage'} && $item->{amount} > $control->{'keep'}) {
return 1;
}
}
return 0;
}
Код: Выделить всё
StorageZeny 40
sub ai_storageAutoCheck {
return 0 if ($char->getSkillLevel(new Skill(handle => 'NV_BASIC')) < 6);
return 0 if ($char->{zenny} < $config{StorageZeny});
foreach my $item (@{$char->inventory->getItems()}) {
next if ($item->{equipped});
my $control = Misc::items_control($item->{name});
if ($control->{storage} && $item->{amount} > $control->{keep}) {
return 1;
}
}
return 0;
}
Код: Выделить всё
+ if ($config{$prefix."_zeny"}) {
+ return 0 if (!inRange($char->{zenny}, $config{$prefix."_zeny"}));
+ }
my %hookArgs;
$hookArgs{prefix} = $prefix;
$hookArgs{return} = 1;
Plugins::callHook("checkSelfCondition", \%hookArgs);
return 0 if (!$hookArgs{return});
return 1;
}
sub checkPlayerCondition {
Код: Выделить всё
doCommand c Бугога - йа багатый Буратын! { zeny > 1000000 timeout 99999 }