Can anyone help me with bot how to avoid fire pillars @.@?

International

Moderator: Moderators

Message
Author
ragnarokbotz123
Noob
Noob
Posts: 3
Joined: 28 Nov 2017, 14:40
Noob?: Yes

Can anyone help me with bot how to avoid fire pillars @.@?

#1 Post 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 :)

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Can anyone help me with bot how to avoid fire pillars @.@?

#2 Post 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

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

ragnarokbotz123
Noob
Noob
Posts: 3
Joined: 28 Nov 2017, 14:40
Noob?: Yes

Re: Can anyone help me with bot how to avoid fire pillars @.@?

#3 Post 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?

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Can anyone help me with bot how to avoid fire pillars @.@?

#4 Post 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. 8-)
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? :D (Unless you are mentally deformed with some serious illness :lol: )


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. :lol: :lol: :lol:

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

ragnarokbotz123
Noob
Noob
Posts: 3
Joined: 28 Nov 2017, 14:40
Noob?: Yes

Re: Can anyone help me with bot how to avoid fire pillars @.@?

#5 Post 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.

User avatar
fadreus
The Kore Devil
The Kore Devil
Posts: 708
Joined: 17 Nov 2017, 23:32
Noob?: No
Location: Genting Highland, Malaysia
Contact:

Re: Can anyone help me with bot how to avoid fire pillars @.@?

#6 Post 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.

iRO Supporter.
Read before you ask is the wisest thing human can do.
Unless you're a cat.
Image

Post Reply