[Guide] How to make a NPC cast spells. NO LUA! menu

User Tag List

Page 1 of 4 1234 LastLast
Results 1 to 15 of 53
  1. #1
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Guide] How to make a NPC cast spells. NO LUA!

    Okej. Just to start with. Credits goes to Ascent Wiki for all information that has helped me to learn this.

    But have you ever wanted to make a NPC (trash mob) cast different spells? And you can't make lua scripts. There is an easy way to do this with your database. And the table we are going to work with is called
    Ai_Agents

    It's real easy, and I'm are going to show you how to make a mob cast frost nova with a cooldown.

    First you need a NPC, I wont tell you how to make one as I suppose you already know that - Else there are alot of guides on how to make NPCs.

    When you open up your table Ai_Agents it will look like this, atleast have these colums.


    I'm now going to explain each and one of them, and tell you what I'm going to add when I'm doing my frostnova.

    Entry: There isn't so much to say about this. This is the ID number of your NPC that you are going to use - Mine here are 1992043

    Type: This is what kind of type your attack are.
    Code:
    1 = MELEE
    2 = RANGED
    3 = FLEE
    4 = SPELL
    5 = CALLFORHELP
    And Frost Nova, thats a spell. Spell is what you most will use. Atleast what I use in everyone of mine. So for my NPC I will put 4 here.

    Event: This colum is the most compicated one. This explain when you NPC will do the spell you will give him.

    Here is a list of all events.

    Code:
    0 = ENTERCOMBAT
    1 = LEAVECOMBAT
    2 = DAMAGETAKEN
    3 = TARGETCASTSPELL
    4 = TARGETPARRYED
    5 = TARGETDODGED
    6 = TARGETBLOCKED
    7 = TARGETCRITHIT
    8 = TARGETDIED
    9 = TARGETDIED
    10 = UNITPARRYED
    11 = UNITDODGED
    12 = UNITBLOCKED
    13 = UNITCRITHIT
    14 = UNITDIED
    15 = ASSISTTARGETDIED
    16 = FOLLOWOWNER
    My NPC will make frostnova when he takes damage on himself. Therefor I'm going to put a 2 here.

    If you want him to cast a spell when he enters combat, just put 0 here. Most of the events are self explaining.

    Chance: This is how much many times he will do it. This is in percent. So if you want him to cast the spell for 100%, you put 100 in this colum.

    But if you are gonna use a cooldown to the spell later, you must think double on this. If you want to have 100% chance to cast a spell, that has a cooldown. You will need to put 200 here. If you want him to have 50% chance to cast the spell with a cooldown. You need to put 150 here. Understand?

    1-100 -> Percent chance WITHOUT cooldown
    101 - 200 -> Percent chance WITH cooldown. (101 = 1 and 200 = 100)

    I want my mob to have a cooldown, but only 50% to cast my spell. Therefor I put 150 here.

    Maxcount: This colum decide how many of this spell the mob will cast in a fight. If you don't have any max number, just put 0 here. But you maybe got one powerful spell that you only want to be casted 3 times? But 3 here then. I'm gonna use 0 here for the frostnova.

    Spell: Self explaning, put your spell ID here, can be found on wowhead.com or any other WoW database sites.

    Spelltype: This colum descripes what kind of spell this is. Here is a list of what spell types it can be, the most is selfexplained. Just look on the spell you are using, is it a damage spell? Or a buff? Maybe a stun or root?
    Code:
    1 = ROOT
    2 = HEAL
    3 = STUN
    4 = FEAR
    5 = SILENCE
    6 = CURSE
    7 = AOEDAMAGE
    8 = DAMAGE
    9 = SUMMON
    10 = BUFF
    11 = DEBUFF
    The most common spelltype to use is 8 (damage). But for me that is going to use frostnova, and that is a root spell, I will use 1 here.

    Targettype: This decide on what target your NPC he will cast it on. I give you first a list and then explain some.
    Code:
    0 = Null
    1 = Random Target
    2 = Target Location
    3 = Creature Location
    4 = Self
    5 = Owner - (Pets / Slave cast on their Owner)
    Null target -> I suppose this cast on the target he got marked for the moment (main tank usual)
    Random target -> He just picks a random target. Threat doesn't matter at all
    Target Location -> The location of the marked target. Like if you are gonna use Rain of Fire.
    Creature Location -> Most used for AoE spells. The middle of the radio is where the NPC stands
    Self -> Cast the spell on himself.
    Owner -> Not realy a clue, but this seems to be used for pets =(

    And for my frost nova, I'm going to use creature location -> number 3.

    Cooldown: Now we comes to the part that is connected to the chance colum. This can only be used if you got it between 101 and 200.

    It's a simple cooldown in miliseconds.
    1 sec -> 1000 ms
    10 sec -> 10000 ms

    Simple, seconds * 1000


    The last to colums is normaly just to put 1 in. Worked for me, and even not Ascent Wiki explains what its for You maybe know?

    When it's done, for me atleast. It should look like this.


    This is tested ingame and it works without any problem!
    -------------------------------------------------------------------------------------------------
    Credits:
    Ascent Wiki - Ai agents - Ascent Wiki
    Myself - That wrote this guide and trying to learn out to all people on mmowned.

    A program to make SQL codes is created by myself now!
    Thread about it
    http://www.mmowned.com/forums/progra...tml#post856020
    Last edited by Power of Illuminati; 06-06-2008 at 01:32 PM.

    [Guide] How to make a NPC cast spells. NO LUA!
  2. #2
    Exona's Avatar Member
    Reputation
    1
    Join Date
    Jan 2007
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Awesome guide! Definately +Rep!
    Will try this out once I start setting up my own server again.

  3. #3
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for supporting me. I will write more guides soon, that I havn't seen here yet.

  4. #4
    Aircon's Avatar Active Member
    Reputation
    35
    Join Date
    Jul 2006
    Posts
    209
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great help! +Rep+Rep+Rep

  5. #5
    BrantX's Avatar Contributor
    Reputation
    205
    Join Date
    Jul 2007
    Posts
    899
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    wow... it actually worked lol +rep



  6. #6
    joestyle2's Avatar Member
    Reputation
    5
    Join Date
    Jan 2008
    Posts
    58
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice guide and great job you helped me alot! +rep of course!

  7. #7
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys! It's alot easier then lua scripting if you only going to need few spells

    Originally Posted by BrantX View Post
    wow... it actually worked lol +rep
    Ofc it working! You think I would post a guide that didn't work?

  8. #8
    xaverz's Avatar Banned
    Reputation
    8
    Join Date
    May 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OOM , thanks alot dude! I will try this!!

  9. #9
    xaverz's Avatar Banned
    Reputation
    8
    Join Date
    May 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Any way, also looking for some1 to help me,. i need a video guide how to compile stuff with c++! please i will +rep!

  10. #10
    Dragonshadow's Avatar ★ Elder ★
    Reputation
    1170
    Join Date
    Apr 2007
    Posts
    3,858
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This Is Epic!
    Look at your post, now back to mine; Now back to your post, now back to mine. Sadly, it isn't mine, but if you stopped trolling and started posting legitimate content, it could look like mine. Look down, backup, where are you? You're scrolling through threads, reading the post your post could look like. What did you post? Back at mine; It's a reply saying something you want to hear. Look again and the reply is now diamonds.

    Anything is possible when you think before you post. The moon is shrinking.

  11. #11
    kevinno's Avatar Member
    Reputation
    46
    Join Date
    Oct 2007
    Posts
    92
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well... I did
    Entry, Type, Event, Chance, Maxcount, Spell, Spelltype, Targettype, Cooldown, FloatMisc1, Misc2
    14720, 4, 13, 100, 0, 26339, 8, 0, 0, 0, 0
    Entry of Saurfang, 4= A Spell, 13=UnitCrit(when he is critted), 100=100% chance to proc when critted, 0 can proc infinite times, 26339=Spell that will be used when critted, 8= It's a damage spell, 0=A null target-The one who crits them?, 0= No cooldown on the proc.

    What's the solution? The mob now doesnt even perform fighting, he runs to the target when aggroed and then stands there.
    /help x1000

  12. #12
    Tornad0z's Avatar Member
    Reputation
    7
    Join Date
    Aug 2007
    Posts
    154
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great tut, easy to understand

  13. #13
    rancor26's Avatar Member
    Reputation
    6
    Join Date
    Mar 2008
    Posts
    44
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    great guide if it works for me +Rep (and if i can give rep)

  14. #14
    Presto12's Avatar Member
    Reputation
    5
    Join Date
    Mar 2007
    Posts
    96
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks +Rep!

  15. #15
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the good words.

    And Kevinno, I just tested the same, and it's just weird for me too. I mostly only use 0 or 2 as event, and null in target has never worked for me, randomtarget is good enough

Page 1 of 4 1234 LastLast

Similar Threads

  1. [Trinity] How do I make a NPC cast some spell on his Summoner
    By chaplisimo in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 08-29-2014, 05:48 PM
  2. [Guide]How to make NPC casting spells(LUA)
    By paulbechtold in forum WoW EMU Guides & Tutorials
    Replies: 2
    Last Post: 12-30-2009, 07:44 PM
  3. How to make npc cast spell[HELP!]
    By Flake0207 in forum WoW EMU Questions & Requests
    Replies: 10
    Last Post: 12-15-2008, 09:58 AM
  4. [Guide] How to make custom npcs,quests,etc
    By c0ddingt0n in forum WoW EMU Guides & Tutorials
    Replies: 26
    Last Post: 10-01-2008, 07:01 AM
  5. [question] how to make an custom npc cast spells?
    By INS4N3K1LL in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-18-2008, 07:45 AM
All times are GMT -5. The time now is 05:55 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search