Openkore.com

OpenKore Forums
It is currently 19 Jun 2018, 21:43

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Can anyone help me with bot how to avoid fire pillars @.@?
PostPosted: 28 Nov 2017, 14:42 
Offline
Noob
Noob

Joined: 28 Nov 2017, 14:40
Posts: 3
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 :)


Top
 Profile  
 
 Post subject: Re: Can anyone help me with bot how to avoid fire pillars @.@?
PostPosted: 28 Nov 2017, 23:13 
Offline
Cybernatic Entity
Cybernatic Entity
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 287
Location: Malaysia
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

_________________

Wiki & Google are your best allies.
iRO server supporter.
Image


Top
 Profile  
 
 Post subject: Re: Can anyone help me with bot how to avoid fire pillars @.@?
PostPosted: 28 Nov 2017, 23:42 
Offline
Noob
Noob

Joined: 28 Nov 2017, 14:40
Posts: 3
I wish you could give me examples or simply help me out with the macro... I'm not a programmer, could you please help?


Top
 Profile  
 
 Post subject: Re: Can anyone help me with bot how to avoid fire pillars @.@?
PostPosted: 29 Nov 2017, 01:57 
Offline
Cybernatic Entity
Cybernatic Entity
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 287
Location: Malaysia
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:

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:

_________________

Wiki & Google are your best allies.
iRO server supporter.
Image


Top
 Profile  
 
 Post subject: Re: Can anyone help me with bot how to avoid fire pillars @.@?
PostPosted: 29 Nov 2017, 08:16 
Offline
Noob
Noob

Joined: 28 Nov 2017, 14:40
Posts: 3
Code:
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.


Top
 Profile  
 
 Post subject: Re: Can anyone help me with bot how to avoid fire pillars @.@?
PostPosted: 29 Nov 2017, 09:56 
Offline
Cybernatic Entity
Cybernatic Entity
User avatar

Joined: 17 Nov 2017, 23:32
Posts: 287
Location: Malaysia
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:
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.

_________________

Wiki & Google are your best allies.
iRO server supporter.
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group