Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 7 of 7
  1. #1
    Grunt
    BrantX's Avatar
    Join Date
    Jul 2008
    Location
    In your hardrive.
    Posts
    48
    Post Thanks / Like
    Rep Power
    17
    Reputation
    64

    Post How to script in AI_Agents


    Register to remove this ad
    Welcome to BrantX's Guide on Scripting in AI_Agents!

    AI_Agents is kinda like LUA except you can do alittle "less features" on it but it is more advanced for the NPC's not encounter(you can do encounters in C++) AI_Agents was Burlex's main way to script, He dislike LUA from the beginning but what do you think he runs Summitt off of? SQL Scripting. AI_Agents can be found in the database all you have to do is look for a table named "ai_agents", After that it should show all the data input stuff. This is where we begin.

    First of all you'd probably be eyeing up this table


    Code:
    Entry
    This is where you add the NPC ID.(You can add as many ai_agent fields as possible, ai_agents allows you to add and keep on adding in the entry fields incase you want to do multi-spells)

    Now you should see this on the next table.

    Code:
    Type

    Type is for what the creature will do on what the event is doing.(Event is one step down)
    There are 5 codes that i know so far.
    and these "codes" are

    Code:
    1 = Melee
    2 = Ranged
    3 = Flee
    4 = Spell
    5 = Call for Help

    Next on the table you should see


    Code:
    Event
    Event is what the creature will do during something that happens
    For instance, If you made the above step(type) 4(spell) in your table You would want to make the event be 0. So what i just said is that he'll cast a spell when he enters combat. Or you can make him cast a spell when he gets hit. by making Event's table 2.
    Here is a full list of Events.


    Code:
    0 = Enter Combat
    1 = Leave Combat
    2 = Damage Taken
    3 = if Target Cast's Spell
    4 = if Target Parried
    5 = if Target Dodged
    6 = if Target Blocked
    7 = if Target Spell Critted
    8 = if Target Died
    9 = ????
    10 = Unit Parried(if caster parries)
    11 = UnitDodged(if caster dodges)
    12 = Unit Blocked(if caster blocks)
    13 = Unit Critted(if caster critted)
    14 = Unit Died(if casterdied)
    15 = Assists' Target Dies(multi-people)
    16 = Follow-Owner(pets)

    Next table should say


    Code:
    Chance
    Chance is the probability on the creature's spells(etc).
    Example = Change is 100. Caster will cast it either way.
    Example2 = Chance is 10. Caster will cast it on a 10% probability.
    Pretty self explanitory.

    Now on to


    Code:
    Maxcount
    Pretty self explanitory also,
    If you put 100 in the table the caster will cast it 100 times.
    If you put 0 in the table the caster will cast it infinite times.

    After that you'll see


    Code:
    Spell

    This is also self explanitory,
    Just put the spell ID.

    Next you'll see


    Code:
    SpellType

    How the spell is casted.


    Code:
    1 = Root
    2 = Heal
    3 = Stun
    4 = Fear
    5 = Silence
    6 = Curse
    7 = AoE-Damage
    8 = Damage
    9 = Summon
    10 = Buff
    11 = DeBuff

    Next onto,


    Code:
    TargetType
    TargetType is what the caster will cast on.

    Code:
    0 = Null
    1 = Random Target
    2 = Target Location
    3 = Creature Location
    4 = Self
    5 = Owner (Hunter's and Warlock's Minions cast spells on their owner)
    Moving on to



    Code:
    Cooldown
    This is how long the spell will have a cooldown, or how long the caster will have til he can re-cast the spell.
    This is in Miliseconds so...


    Code:
    1 Second = 1000
    2 seconds = 2000
    5 Seconds = 5000
    10 Seconds = 10000
    20 Seconds = 20000
    60 Seconds(min) = 60000

    Next on to


    Code:
    FloatMisc1
    Don't know this one yet, Will update as soon as i figure it out.

    and finally


    Code:
    Misc2
    Don't know this one either.

    There you are! How to script in AI_Agents in ArcEmu.
    I am pretty sure you guys can get the basics on how to do this and will probably get pro at it. I am not sure if Ascent is the same AI_Agent Structure as Arc but...If not i will update this and will try to merge Ascent into it. This is for ai_agents in ArcEmu.

    Please give me feedback, Is it good? Was it helpful? Easy to read? Etc etc.

    - BrantX



    › See More: How to script in AI_Agents



  2. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

  3. #2
    Scout

    Join Date
    Aug 2008
    Posts
    24
    Post Thanks / Like
    Rep Power
    17
    Reputation
    13
    Yeah! Clap Clap BrantX Good Tutorial

  4. #3
    Contributor
    runiker's Avatar
    Join Date
    Jul 2008
    Posts
    170
    Post Thanks / Like
    Rep Power
    18
    Reputation
    113
    Great Tut never really knew too much about this table thank you for your help

  5. #4
    Grunt
    BrantX's Avatar
    Join Date
    Jul 2008
    Location
    In your hardrive.
    Posts
    48
    Post Thanks / Like
    Rep Power
    17
    Reputation
    64
    Yup, NP Guys. Glad i could help!

  6. #5
    Grunt
    BrantX's Avatar
    Join Date
    Jul 2008
    Location
    In your hardrive.
    Posts
    48
    Post Thanks / Like
    Rep Power
    17
    Reputation
    64
    Bawmp.

  7. #6
    Beginner

    Join Date
    Dec 2008
    Location
    Ac-Web.org!!
    Posts
    12
    Post Thanks / Like
    Rep Power
    16
    Reputation
    1
    wow i learnt something new LOL

  8. #7
    Grunt
    BrantX's Avatar
    Join Date
    Jul 2008
    Location
    In your hardrive.
    Posts
    48
    Post Thanks / Like
    Rep Power
    17
    Reputation
    64

    Register to remove this ad
    Quote Originally Posted by Banidictor View Post
    wow i learnt something new LOL
    lol? good for you?

 

 

Visitors found this page by searching for:

ai_agents

warlock gets a spell C scriptai_agent scripts wowfollow owner trinity scriptai_agents tablehttp:burlex.netai.net
SEO Blog

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 08:33 AM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org