killSteal bot in openkore 2.0.7

11/03/2010 12:37 orangedan#106
Quote:
Originally Posted by dumbidumdum View Post
uhmm my bot won't run after i replaced the misc.pm sir.

failed compilation something

reply asap pls

look at screenshot

[Only registered and activated users can see links. Click Here To Register...]
Same here.. :(
using Openkore-what-will-become-2.1 r7549 right?? :mofo:
11/03/2010 14:42 dumbidumdum#107
@orange dan! yup! :( HELP ASAP PLEASE
11/03/2010 19:38 Moshikko#108
After making a couple edits to the file, it worked for me.

If you have the problem shown in the screenshot, please replace your Misc.pm with the one I've attached. That should fix it.
11/04/2010 10:12 malcolm04006#109
[Only registered and activated users can see links. Click Here To Register...] po sir..thanks
11/05/2010 13:31 dumbidumdum#110
@topic starter

help please :)
11/06/2010 10:17 kcirned03#111
download the latest openkore... it should work~
11/06/2010 12:20 aba01#112
Quote:
Originally Posted by jhincen View Post
Openkore/control/config.txt
from your config.txt add this line

killSteal 1

-------------------------------------
=====================================
-------------------------------------

openkore/control/timeouts.txt
from your timeouts.txt change this ai_attack_waitAfterKill 0.7 to ai_attack_waitAfterKill 0.1

-------------------------------------
=====================================
-------------------------------------

openkore/src/Misc.pm
edit your MIsc.pm

add this line
"return 0 if ($config{'rabidDog'} || $config{'killSteal'});"


the line must look like

sub objectInsideSpell {
return 0 if ($config{'rabidDog'} || $config{'killSteal'});
my $object = shift;
my ($x, $y) = ($object->{pos_to}{x}, $object->{pos_to}{y});
foreach (@spellsID) {
my $spell = $spells{$_};
if ($spell->{sourceID} ne $accountID && $spell->{pos}{x} == $x && $spell->{pos}{y} == $y) {
return 1;
}
}

====================================

sub objectIsMovingTowardsPlayer {
return 0 if ($config{'rabidDog'} || $config{'killSteal'});
my $obj = shift;
my $ignore_party_members = shift;
$ignore_party_members = 1 if (!defined $ignore_party_members);

if (!timeOut($obj->{time_move}, $obj->{time_move_calc}) && @playersID) {
# Monster is still moving, and there are players on screen
my %vec;
getVector(\%vec, $obj->{pos_to}, $obj->{pos});

foreach (@playersID) {
next if (!$_ || ($ignore_party_members &&
($char->{party} && $char->{party}{users}{$_}) ||
(existsInList($config{tankersList}, $players{$_}{name}) &&
$players{$_}{name} ne 'Unknown')) ||
$players{$_}{statuses}{"GM Perfect Hide"});
if (checkMovementDirection($obj->{pos}, \%vec, $players{$_}{pos}, 15)) {
return 1;
}
}
}

====================================
sub checkMonsterCleanness {
return 1 if ($config{'rabidDog'} || $config{'killSteal'});
return 1 if (!$config{attackAuto});
my $ID = shift;
return 1 if ($players{$ID});
my $monster = $monsters{$ID};

# If party attacked monster, or if monster attacked/missed party
if ($monster->{'dmgFromParty'} > 0 || $monster->{'dmgToParty'} > 0 || $monster->{'missedToParty'} > 0) {
return 1;
}

====================================

sub positionNearPlayer {
return 0 if ($config{'rabidDog'} || $config{'killSteal'});
my $r_hash = shift;
my $dist = shift;

foreach (@playersID) {
next unless defined $_;
next if $char->{party} && $char->{party}{users} &&
$char->{party}{users}{$_};
next if existsInList($config{tankersList}, $players{$_}{name});
return 1 if (distance($r_hash, $players{$_}{pos_to}) <= $dist);
}


make sure you have a copy of your misc.pm in case theres a problem
credit goes to ragna016 on mpc forum.
I got the point, thanks! :)
11/08/2010 06:04 playingsafe#113
salamat dito try ko ito after my seminar sana matapos agad ^_^
11/10/2010 07:38 j0wjen#114
rabidDog? do we need to change this into the monsters that we need to KS?
because my character doesnt attack the monsters
11/11/2010 06:30 elmo66666#115
thank you it works on me.. ^_^
11/12/2010 01:25 dumbidumdum#116
Quote:
Originally Posted by kcirned03 View Post
download the latest openkore... it should work~
i downloaded the latest openkore ready from collectskin but still it has that error from the screenshot i posted :(
11/13/2010 04:15 scribblez123#117
para san yung timeouts mo?
11/13/2010 04:31 D2_Pvp#118
pretty nice ;)
11/19/2010 23:29 asa1234asa#119
aus! KS n ulit! haha
11/20/2010 08:47 hisokajin#120
it works... thanks!! use the TS misc.. ^_^