RO Empire ForumsRO Empire Forums  
UK Web Hosting


Go Back   RO Empire Forums > Jobs > Merchant/Blacksmith/Alchemist > Merchant/Alchemist
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 08-17-2006, 04:03 AM   #1
M.Blade
Sonic Bunny
 
M.Blade's Avatar
 
Join Date: Sep 2004
Location: euRO

Smile Mir AI

Mir AI
Download page: http://www.mirandablade.altervista.o...g=mirai&lng=en

I wrote this custom AI with the feedbacks and requests from my friends and guild mates. Maybe Mir AI could be intersting for you too.
I tried to make the scripts as simple and as easy as possible to undestand. I tried to comment them as better as possible (I'm sorry for the bad english, but this is not my mother language).

In the download page you can also find this additional utility (Mir AI Control Panel), that makes it very easy to configure Mir AI. Here there are some screenshots:

On the left: homunculus skill controls. On the right: a sample tactic list

You may install both Mir AI and the control panel in the usual \AI\USER_AI folder.

Features
I'm still adding new features, so please check the above site for the most updated information.
  • Anti KS (the AI checks for both monster and other player targets)
  • Friend List: Anti-KS is disabled for player in the friend list, so the homunculus can cooperate with party members or he/she can be tanked by a friend. To add or to remove someone from the friend list is very simple: move the homunculus (alt+right click) to the cell right on the north or the south from that player, and your homunculus will confirm the operation with a special movement (he/she circles around the new friend, or he/she does an "erase" movement when you remove someone from the list). This friend list is saved in Friends.txt (in the USER_AI folder).
  • Auto Aid Potion: you can choose when to throw potions to your homunculus (when attacking, when escaping or both, and the minimum HP percentage)
  • Alchemist auto-attacks: Cart Revolution for multiple targets and weapon-based single-target skills when there is only one enemy (Bash with a Cultus, Fire Bolt with a Fireblend sword, or Cold Bolt with an Ice Falchion)
  • Tact List: for each monster you can choose a different behaviours and how your homunculus will use his/her aggressive skills (no skill for some monsters, only one shot for others, and so on), so that your homunculus can attack some monster (with different priorities) or he/she can react only to an aggression. The AI can also avoid to engage in combat with some monsters (avoid mode) or (in coward mode) can attack some monsters only when they are "tanked".
  • Recharge and patrol: the AI waits until HPs are fully recharged, then it starts to patrol around the owner
  • Obstacle detection: the AI move in small spaces, and archers or walls don't stop her
  • Escaping mode: if the humunculus is under attack and his/her HPs are under the secure level, the AI starts evasive manouvres, also AI goes in passive mode if his/her HPs are low.
  • There is an option that limits the interception range of your homunculus so he/she doesn't go too far
  • If the owner is under attack, the homunculus comes to help (if homuculus HPs > 20%)
  • If the owner attack a monster, the homunculus comes to cooperate
__________________

Love does not consist of gazing at each other, but in looking together in the same direction. (Antoine de Saint - Exupèry)

Last edited by M.Blade : 08-17-2006 at 04:07 AM.
M.Blade is offline   Reply With Quote
Old 08-17-2006, 04:14 AM   #2
Eiro
i'm a sexy noob >_<
 
Eiro's Avatar
 
Join Date: Jan 2006
Location: Toronto, i'm canadian ;D
Character(s):
1. Eastan
2. Airro
3. Westan
4. Kunn
5. Eiro

Default

sounds interesting i may try it :3
__________________
*actually making a signature, not fcking lazy*
Eiro is offline   Reply With Quote
Old 08-17-2006, 05:26 AM   #3
Phoenix Guardian
No more RO
 
Phoenix Guardian's Avatar
 
Join Date: May 2004

Default

Whoa, this is very nice, I'll be using it. It has so much stuff for dummies like me who can't program an AI... >.>


Does this count as a Third-party program though?

Last edited by Phoenix Guardian : 08-17-2006 at 05:41 AM.
Phoenix Guardian is offline   Reply With Quote
Old 08-17-2006, 05:36 AM   #4
wanglover
Eargon The Boerdom
 
wanglover's Avatar
 
Join Date: Jul 2006
Location: Mars
Character(s):
1. Garrow-7X-Priest
2. BS~Pete~ -5X- Seller Slave
3. Earagon Rider -7X- Falcon
4. *~Numair~* - Monk Want to Be
5. ~Xu Shu~ - Fight To Death Wiz

Send a message via MSN to wanglover Send a message via Skype™ to wanglover
Default

Quote:
Originally Posted by Phoenix Guardian
Whoa, this is very nice, I'll be using it. It has so much stuff for dummies like me who can't program an AI... >.>

Same Same here :P
I wish I can dowload on my computer :P
__________________
Proud Member of Unforgiven
Selling HS(79 FS) & Leech(72 Hunter)(71 Wiz)
wanglover is offline   Reply With Quote
Old 08-17-2006, 03:29 PM   #5
Valura
Novice
 
Join Date: Aug 2006

Thumbs up

It is indeed very nice AI for all people who knows nothing/less about programming. My appreciation to you for this, Blade.

Please consider these things for your future update:
- Add the ability to use blue pot in the config, with certain SP condition. This is for people who enjoys going to pvp a lot like me
- Add the option to enable Kill Steal from the config. This is great to use in areas which are highly invested with bot
- Add more option to alchemist/biochemist attacking skill to your config, such as: Acid Demo to non friend list. This will be great in PVP/WOE zone.

Hope to see more of this AI in the future. Good luck and thanks for the hard work.
Valura is offline   Reply With Quote
Old 08-18-2006, 04:31 AM   #6
alea iacta est
Fabre
 
Join Date: Jun 2006

Default

Is Urgent Escape from Lif with time? So the skill go on when the buff go off?
alea iacta est is offline   Reply With Quote
Old 08-19-2006, 04:43 PM   #7
xanst
Torn from Kafka!
 
xanst's Avatar
 
Join Date: Oct 2004
Location: Prontera

Default

Quote:
It is indeed very nice AI for all people who knows nothing/less about programming. My appreciation to you for this, Blade.

Please consider these things for your future update:
- Add the ability to use blue pot in the config, with certain SP condition. This is for people who enjoys going to pvp a lot like me
- Add the option to enable Kill Steal from the config. This is great to use in areas which are highly invested with bot
- Add more option to alchemist/biochemist attacking skill to your config, such as: Acid Demo to non friend list. This will be great in PVP/WOE zone.
You really shouldn't be auto-aiding in a pvp zone, the animation delay would ness you up in pvp, and alot in woe. (imagines not being able to move from auto aiding a homun trapped in SG)
xanst is offline   Reply With Quote
Old 08-20-2006, 10:49 AM   #8
FullSmile
Scorpion
 
FullSmile's Avatar
 
Join Date: Sep 2005
Location: RI
Character(s):
1. FullSmile FS High Priestess
2. Sakura Chan` Stalker
3. ~*FullSmile*~ Biochemist

Default

Well I tried this out for a few days..
and though its easy to use, I noticed my
pet glitches up alot and just decides to not
attack anything for no reason. Maybe i have some
setting wrong, or its a glitch or soemthing.
I guess for now i'll be going back to my old
AI unless someone can help me? Anyone else
have a glitch problem or maybe can tell me
what settings to change so it will always attack.
This is what i have my settings at, i thought at first
the evade thing was the problem but then I turned it
off and left it off.. so now i have no idea why my pet
just randomly stops attacking anything and leaves me to
die.. which I have about 8 times. =/
I really love the no KS function on this, my Pet
wont even KS if I tell it too.. lol
Any help? Would love to be able to switch back to this.
__________________

This sig and avatar by Akari Valore



Curiosity Killed the Cat, but hey, It's Not My Cat!
FullSmile is offline   Reply With Quote
Old 08-23-2006, 11:18 PM   #9
M.Blade
Sonic Bunny
 
M.Blade's Avatar
 
Join Date: Sep 2004
Location: euRO

Default

Please download the beta 4, it should fix it
__________________

Love does not consist of gazing at each other, but in looking together in the same direction. (Antoine de Saint - Exupèry)
M.Blade is offline   Reply With Quote
Old 08-24-2006, 02:08 AM   #10
FullSmile
Scorpion
 
FullSmile's Avatar
 
Join Date: Sep 2005
Location: RI
Character(s):
1. FullSmile FS High Priestess
2. Sakura Chan` Stalker
3. ~*FullSmile*~ Biochemist

Default

I did download it yesterday as a matter of fact..
must say, I love that freinds list you've added.
Makes things alot easier when partying with another
alchem and their pet. So far so good, just havent had
enough time using it yet to see if it still "evades" and
runs around endlessly without attacking.
All in all though, you've done an awesome job
with this AI and myself and alot of my friends have
been testing it out and hope to be using it full time in the
near future.
Thank you for all your hard work. ^_^
__________________

This sig and avatar by Akari Valore



Curiosity Killed the Cat, but hey, It's Not My Cat!
FullSmile is offline   Reply With Quote
Old 08-27-2006, 10:39 AM   #11
Raven Kanashimi
Evil Kitty
 
Raven Kanashimi's Avatar
 
Join Date: Feb 2005
Character(s):
1. Meow?

Default

could you tell me how to add the follow at once function to a different AI?
thats what i liked most about this AI
but the rest confuses me too much
my usual ai is simple and cute xD
so it does the job
the one thing that bothers me with mine is that it wont disengage from an enemy to follow me
and your "follow at once" option does just that
could you tell me what i need to do to use that with mine?
Raven Kanashimi is offline   Reply With Quote
Old 08-29-2006, 10:34 AM   #12
Cult of Personality
BOOMKIN
 
Join Date: Oct 2005
Location: Florida
Character(s):
1. Droodman - 57 Balance Druid

Default

Ick...

While your script has all the things one would normally put in a script, its layout is incredibly poor. It's common programming practice nowadays to break apart what you call your AI file and to put several cohesive functions into their own files. It will only impact your performance upfront (and only slightly at that) and it makes it a lot easier to read and modify later on.

Also, you might want to consider using a table for looking up the tact values you have in your many lists. I don't think that will impact performance for either better or worse, it's just... you know... it's a lookup table, so it should look like a lookup table... That's just me tho, your call.

I urge everyone who uses these AIs to actually learn how to write their own. If you know what you're doing, you can write more effective and efficient scripts than any shown on these forums. After all, Lua wasn't designed for programmers, it was designed for an average user to interface to a program.
__________________
In every game except RO, the primary healing classes are not tanks.
Cult of Personality is offline   Reply With Quote
Old 08-30-2006, 11:46 AM   #13
Joe-chan
Marine Sphere
 
Joe-chan's Avatar
 
Join Date: Dec 2005
Location: Iris
Character(s):
1. Joe-san (80/37 Biochem) - 99 Lif Hom
2. Joe-han (GC Crusader-95/50)
3. Joe-chan (Wizard, 6X/2X- no FireWall)
4. Joe-sempai (ME priest, 80/50)
5. Joe-sama (Shield-sader, frozen at 79)

Default

does anyone know if this AI can make Lif aggressive? I know some of them can but i didnt see that option listed in the features.
__________________
Joe-san (82/38 Biochemist)
Ephemera (99 Lif Homunculus)

Let's have fun playing fairly and working together.
Joe-chan is offline   Reply With Quote
Old 08-30-2006, 11:51 AM   #14
FullSmile
Scorpion
 
FullSmile's Avatar
 
Join Date: Sep 2005
Location: RI
Character(s):
1. FullSmile FS High Priestess
2. Sakura Chan` Stalker
3. ~*FullSmile*~ Biochemist

Default

It should automatically set your pet to aggro,
but it wont KS. So it should no matter what type,
go after monsters for you. I'd give it a shot.
__________________

This sig and avatar by Akari Valore



Curiosity Killed the Cat, but hey, It's Not My Cat!
FullSmile is offline   Reply With Quote
Old 08-30-2006, 11:58 AM   #15
Joe-chan
Marine Sphere
 
Joe-chan's Avatar
 
Join Date: Dec 2005
Location: Iris
Character(s):
1. Joe-san (80/37 Biochem) - 99 Lif Hom
2. Joe-han (GC Crusader-95/50)
3. Joe-chan (Wizard, 6X/2X- no FireWall)
4. Joe-sempai (ME priest, 80/50)
5. Joe-sama (Shield-sader, frozen at 79)

Default

Quote:
Originally Posted by FullSmile
It should automatically set your pet to aggro,
but it wont KS. So it should no matter what type,
go after monsters for you. I'd give it a shot.
Thanks for the reply. I've tried two AI so far...one worked kinda glitcy and the RampageAI one gave me errors. I'm just hoping to find the right one for me, have you tried any other AIs?
__________________
Joe-san (82/38 Biochemist)
Ephemera (99 Lif Homunculus)

Let's have fun playing fairly and working together.
Joe-chan is offline   Reply With Quote
Old 08-30-2006, 12:08 PM   #16
FullSmile
Scorpion
 
FullSmile's Avatar
 
Join Date: Sep 2005
Location: RI
Character(s):
1. FullSmile FS High Priestess
2. Sakura Chan` Stalker
3. ~*FullSmile*~ Biochemist

Default

Yep I tried a freinds AI, i've tried Rampage, which is very good,
but its not for me. So far i've liked this one here, the Mir the best,
and seems it only keeps getting better. You've just got to try out
different ones and see which best suits you. ^_^
__________________

This sig and avatar by Akari Valore



Curiosity Killed the Cat, but hey, It's Not My Cat!
FullSmile is offline   Reply With Quote
Old 08-30-2006, 12:35 PM   #17
Joe-chan
Marine Sphere
 
Joe-chan's Avatar
 
Join Date: Dec 2005
Location: Iris
Character(s):
1. Joe-san (80/37 Biochem) - 99 Lif Hom
2. Joe-han (GC Crusader-95/50)
3. Joe-chan (Wizard, 6X/2X- no FireWall)
4. Joe-sempai (ME priest, 80/50)
5. Joe-sama (Shield-sader, frozen at 79)

Default

Quote:
Originally Posted by FullSmile
Yep I tried a freinds AI, i've tried Rampage, which is very good,
but its not for me. So far i've liked this one here, the Mir the best,
and seems it only keeps getting better. You've just got to try out
different ones and see which best suits you. ^_^
I agree, thanks for the help.
__________________
Joe-san (82/38 Biochemist)
Ephemera (99 Lif Homunculus)

Let's have fun playing fairly and working together.
Joe-chan is offline   Reply With Quote
Old 09-05-2006, 02:56 AM   #18
FullSmile
Scorpion
 
FullSmile's Avatar
 
Join Date: Sep 2005
Location: RI
Character(s):
1. FullSmile FS High Priestess
2. Sakura Chan` Stalker
3. ~*FullSmile*~ Biochemist

Default

Currently i'm using the Mir AI as I really like its NO KS
system, and its easy for me to use. I'm not very
knowlegeable when it comes to scripting.
One thing i've notice with all AI's that i've tried is,
that my pet filir still has one issue with KSing.
Is there a way for a pet to be able to tell,
weather or not a vani has casted magic onto a monster?
I've noticed no matter what I use, my filir only
notices a vani on a monster first if it uses mele atk.
If the vani casts caprice on a monster from a distance
then my bird doesnt see the monster as being taken.
Any way to fix this sort of a problem?
I usually have to stick around and ATL T alot
if I know a vani is around so I dont KS them.
If its a vani in my party then i'm usually set to KS it
anyway, and its set to KS me.
__________________

This sig and avatar by Akari Valore



Curiosity Killed the Cat, but hey, It's Not My Cat!
FullSmile is offline   Reply With Quote
Old 09-19-2006, 07:44 AM   #19
FullSmile
Scorpion
 
FullSmile's Avatar
 
Join Date: Sep 2005
Location: RI
Character(s):
1. FullSmile FS High Priestess
2. Sakura Chan` Stalker
3. ~*FullSmile*~ Biochemist

Unhappy

Is there anyway to turn off the patrol.lua file?

This is the coding: but there is no Off feature.
--------------------------------------------------
-- Mir AI Patrol/Evade Movements
--------------------------------------------------
-- You can setup your own movements: please change the steps
-- (AAI_CIRC_Y and AAI_CIRC_X array) and don't forget to update
-- AAI_CIRC_MAXSTEP if you add or remove a step!

AAI_CIRC_RADIUS = 4
AAI_NORTH = AAI_CIRC_RADIUS
AAI_SOUTH = -AAI_CIRC_RADIUS
AAI_EAST = -AAI_CIRC_RADIUS
AAI_WEST = AAI_CIRC_RADIUS
AAI_NORTH2 = AAI_CIRC_RADIUS / 2 + 1
AAI_SOUTH2 = -(AAI_CIRC_RADIUS / 2 + 1)
AAI_EAST2 = -(AAI_CIRC_RADIUS / 2 + 1)
AAI_WEST2 = AAI_CIRC_RADIUS /2 + 1

-- Circle Steps --------
-- 6
-- 5 7
--
-- 4 TARGET 8
--
-- 3 1
-- 2
-------------------------

-- direction: SE S SW W NW N NE E
AAI_CIRC_Y = {AAI_SOUTH2, AAI_SOUTH, AAI_SOUTH2, 0, AAI_NORTH2, AAI_NORTH, AAI_NORTH2, 0}
AAI_CIRC_X = {AAI_EAST2, 0, AAI_WEST2, AAI_WEST, AAI_WEST2, 0, AAI_EAST2, AAI_EAST}
AAI_CIRC_MAXSTEP = 8

Also I dont see an off function for it here either:
-- from default AI
IDLE_ST = 0
FOLLOW_ST = 1
CHASE_ST = 2
ATTACK_ST = 3
MOVE_CMD_ST = 4
STOP_CMD_ST = 5
ATTACK_OBJECT_CMD_ST = 6
ATTACK_AREA_CMD_ST = 7
PATROL_CMD_ST = 8
HOLD_CMD_ST = 9
SKILL_OBJECT_CMD_ST = 10
SKILL_AREA_CMD_ST = 11
FOLLOW_CMD_ST = 12

Patrol glitches up for some reason and the pet will
continue to circle around instead of defending itself or
the alchemist. In the extras tab I do have partoling the alchemist
turned off but for some reason, it will still on ocassion move around
me in small circles and wont atk or defend.
__________________

This sig and avatar by Akari Valore



Curiosity Killed the Cat, but hey, It's Not My Cat!
FullSmile is offline   Reply With Quote
Old 09-20-2006, 10:39 AM   #20
death sin
The Presence
 
death sin's Avatar
 
Join Date: Mar 2005
Location: Over There
Character(s):
1. I Like Pie~!! [9x/50 priest]
2. I Like Pots~!! [6x 20 Alchemist]
3. Billyblob [3x Vani]

Send a message via AIM to death sin
Default

i saved it to my documents, put it in the suggested file, set up the settings i wanted, went to play and nothing worked. not one part of this. what am i doing wrong?
__________________


Quote:
iRO GM02 : Not all transfers are here to destroy the iris economy or make drama.
Even GMs Can Tell Lies


*change it if you want just don't be a dick with flashing ones, k?

(kewl im a dick)
death sin is offline   Reply With Quote
Old 09-20-2006, 12:59 PM   #21
FullSmile
Scorpion
 
FullSmile's Avatar
 
Join Date: Sep 2005
Location: RI
Character(s):
1. FullSmile FS High Priestess
2. Sakura Chan` Stalker
3. ~*FullSmile*~ Biochemist

Default

Ingame did you type /hoai to make sure
your homunculus has been customized?
__________________

This sig and avatar by Akari Valore



Curiosity Killed the Cat, but hey, It's Not My Cat!
FullSmile is offline   Reply With Quote
Old 09-20-2006, 02:52 PM   #22
death sin
The Presence
 
death sin's Avatar
 
Join Date: Mar 2005
Location: Over There
Character(s):
1. I Like Pie~!! [9x/50 priest]
2. I Like Pots~!! [6x 20 Alchemist]
3. Billyblob [3x Vani]

Send a message via AIM to death sin
Default

no, may l have full instructions on how to do it and how to make sure it is working?
__________________


Quote:
iRO GM02 : Not all transfers are here to destroy the iris economy or make drama.
Even GMs Can Tell Lies


*change it if you want just don't be a dick with flashing ones, k?

(kewl im a dick)
death sin is offline   Reply With Quote
Old 09-20-2006, 05:08 PM   #23
FullSmile
Scorpion
 
FullSmile's Avatar
 
Join Date: Sep 2005
Location: RI
Character(s):
1. FullSmile FS High Priestess
2. Sakura Chan` Stalker
3. ~*FullSmile*~ Biochemist

Default

First copy all the files from MirAI V1_0_0 and
paste them all into your user AI folder.
Then install the control panel into your user AI folder.
Then customize the settings using the config exe file,
not the config.lua, then start RO and type /hoai in game
to make sure the bottom screen says something like Your
homunculus has been customized. Then it should be ready to go.
If you want to make changes to the config while your in-game,
just make changes, save changes then vaporize and call again
and your changes will take affect.
__________________

This sig and avatar by Akari Valore



Curiosity Killed the Cat, but hey, It's Not My Cat!
FullSmile is offline   Reply With Quote
Old 09-24-2006, 06:27 AM   #24
MisterPresidente
Novice
 
Join Date: Jul 2006

Default Great Ai would be nice...

Thanks for this config u made it made my life easy coz im noob in programing stuff it's a great tool it would be nice too if you can add auto casting of summon flora since i dont have much int i dont use fireblend/icefalchion i depend on my floras to get my job lvl up i can afford flora bottles anyways dont want to waste stats on int since im making woe build pure vit/dex only thanks.
MisterPresidente is offline   Reply With Quote
Old 09-24-2006, 08:04 AM   #25
FullSmile
Scorpion
 
FullSmile's Avatar
 
Join Date: Sep 2005
Location: RI
Character(s):
1. FullSmile FS High Priestess
2. Sakura Chan` Stalker
3. ~*FullSmile*~ Biochemist

Default

I dont believe you can auto cast floras,
I dont think thats something Legal.
__________________

This sig and avatar by Akari Valore



Curiosity Killed the Cat, but hey, It's Not My Cat!
FullSmile is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +13. The time now is 08:27 AM.
UK Web Hosting By Krystal


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.