Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement