Page 1 of 1
Can anyone help me with bot how to avoid fire pillars @.@?
Posted: 28 Nov 2017, 14:42
by ragnarokbotz123
My bot cant seem to detect fire pillars, and dies like 5 times within an hour. Would really appreciate it if someone could help me with this. I tried searching for it, but i dont know how to code. Please help a noob out
Re: Can anyone help me with bot how to avoid fire pillars @.@?
Posted: 28 Nov 2017, 23:13
by fadreus
Try with macro yet?
http://openkore.com/index.php/Macro_plugin
areaSpell <spell> [<distance>]
Triggers when someone starts casting a ground-targeted skill (centre) that is in the scope of the distance condition from you. If <distance> is not defined, it will consider clientSight value.
Comma-separated arguments are treated as OR conditions.
Set variables:
$.areaName - return the spell area effect name
$.areaActor - return source actor(Player, Monster and etc etc)
$.areaSourceName - return the name of the actor
$.areaSourceID - return the binID of the actor
$.areaPos - return the centre position/location of the area spell (ex: 123 123 payon)
$.areaDist - return the distance of the spell area (centre) to your char
Re: Can anyone help me with bot how to avoid fire pillars @.@?
Posted: 28 Nov 2017, 23:42
by ragnarokbotz123
I wish you could give me examples or simply help me out with the macro... I'm not a programmer, could you please help?
Re: Can anyone help me with bot how to avoid fire pillars @.@?
Posted: 29 Nov 2017, 01:57
by fadreus
I'm not a legit programmer too..
At high school I took science course. I took my diploma in Culinary Arts and going to cont bachelor in Graphic Design. Totally unrelated to computing.
I took few years learning kore and macros back in high school during my free time with learning method of comparison, trial and error.
It was just out of curiosity back than & just doing for fun.
If I can, why can't you?
(Unless you are mentally deformed with some serious illness )
Here's some example:
Code: Select all
automacro Run {
areaSpell Fire Pillar
timeout 2
call {
do is @inventory (Fly Wing)
}
}
Whenever ground spell Fire Pillar in on screen, use Fly Wing.
If you need more example for each usage, I could give some.
I can give my collection of macros for my studies before.
Though I found it all from forum and google.
Re: Can anyone help me with bot how to avoid fire pillars @.@?
Posted: 29 Nov 2017, 08:16
by ragnarokbotz123
Code: Select all
automacro Run {
areaSpell Fire Pillar
timeout 2
call {
do is @inventory (Fly Wing)
}
}
This make sense, but what about just moving away from that spot? how to use $.areaDist? It's for my priest slave, so can't really have her teleport away and die on the way walking back to the master.
Re: Can anyone help me with bot how to avoid fire pillars @.@?
Posted: 29 Nov 2017, 09:56
by fadreus
Hmm.. That's complicated.
I read somewhere some variable to avoid route from using X Y coordinate but can't recall where.
But you can try something similar like this one I had
Code: Select all
automacro evitarmvp {
#list of monsters to avoid:
monster Dark Lord
timeout 3
exclusive 1
call caifora
}
macro caifora {
$Move = 10
$myPos = $.pos
$myPosX = @arg ("$myPos", 1)
$myPosY = @arg ("$myPos", 2)
$monPos = $.lastMonsterPos
$monPosX = @arg ("$monPos", 1)
$monPosY = @arg ("$monPos", 2)
if ($myPosX >= $monPosX) goto leste
if ($myPosX < $monPosX) goto oeste
:leste
if ($myPosY <= $monPosY) goto sudeste
if ($myPosY > $monPosY) goto nordeste
:sudeste
do southeast $Move
do move stop
stop
#do conf follow 1
:nordeste
do northeast $Move
do move stop
stop
#do conf follow 1
:oeste
if ($myPosY <= $monPosY) goto sudoeste
if ($myPosY > $monPosY) goto noroeste
:sudoeste
do southwest $Move
do move stop
stop
#do conf follow 1
:noroeste
do northwest $Move
do move stop
stop
#do conf follow 1
}
This macro triggered when MVP is on sight, thus it will move further away from it and calculate new route to destination.
You can test it 1st, and see how it move and then try adjust it accordingly.