REGARDING PKS

All about the macro plugin can be found in this forum. This forum is intended for the macro plugin only.

Moderator: Moderators

misa150
Noob
Noob
Posts: 3
Joined: 11 Aug 2012, 03:18
Noob?: Yes

REGARDING PKS

#1 Post by misa150 »

currently im using this macro on my assassin

Code: Select all

automacro kill {
exclusive 1
player /(.*)/i
location not prontera
timeout 5
call {
$player = @player ($.lastMatch1)
do kill $player
do sp 136 $player

}
}
it spams normal attacks and sometimes it uses sonic blow...

but what i want is that my bot will only use sonic blow and not spam normal attacks.

so i deleted this line:

Code: Select all

do kill $player
but what happens is that my bot does not go to its target, instead it just stands at a random spot and waits for the player to go near him before using sonic blow.

any ideas on how my bot will go after its target and only use sonic blow?
dracus_loki
Human
Human
Posts: 29
Joined: 13 Jul 2012, 06:32
Noob?: Yes

Re: REGARDING PKS

#2 Post by dracus_loki »

Hi ,, well that's a very trick problem hahahahah ,,i had the same problem with my bots ,i had made them for pvp , so they would fight with me and gang on layers who tried to get to me ,, and it was awesome ,, until i got reported ,, ;) ... but heres how u do it ,

u have to keep the "do kill player " command -- as this will make ur bot walk to the player and attack him

now he will keep attacking him ,, so now the solution to this is open ur timeouts.txt

and make this changes


ai_move_retry 0.25
ai_move_giveup 1.5

# Send the attack packet every x seconds, if it hasn't been send already
ai_attack 1
ai_homunculus_attack 1

# Check for monsters to attack every x seconds
ai_attack_auto 0.5

# Give up attacking a monster if it can't be reached within x seconds
ai_attack_giveup 1


this will work wonderfully for your bot ,,,,
rocknroll
Been there done that!
Been there done that!
Posts: 118
Joined: 19 Sep 2011, 07:30
Noob?: Yes

Re: REGARDING PKS

#3 Post by rocknroll »

hmmm... why u using macro if config can solve it??

Code: Select all

partySkill Sonic Blow {
	lvl 10
	sp > 10%
	notPartyOnly 1
	notInTown 1
	timeout 5
}
Sorry, my english is very bad !
dracus_loki
Human
Human
Posts: 29
Joined: 13 Jul 2012, 06:32
Noob?: Yes

Re: REGARDING PKS

#4 Post by dracus_loki »

oO I dint know it could be achieved via config.... U sure it works. ..??.. Nyways I used to use that with events like if someone attacks me then the bot attacks the one person who attacked me ... It worked good
rocknroll
Been there done that!
Been there done that!
Posts: 118
Joined: 19 Sep 2011, 07:30
Noob?: Yes

Re: REGARDING PKS

#5 Post by rocknroll »

dracus_loki wrote:oO I dint know it could be achieved via config.... U sure it works. ..??.. Nyways I used to use that with events like if someone attacks me then the bot attacks the one person who attacked me ... It worked good
yeah config could do anything 85% :D
well if you want to attack when someone attacks you, using macro is good. but i like the aggressives mode (with partySkill block) so the kore always attack the player who's approached it (generally partySkill range is 0..8) :lol:
Sorry, my english is very bad !