MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides

Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides > Ascent Guides
Reload this Page [Guide] How to make a NPC cast spells. NO LUA!
Ascent Guides This section is for WoW emulated server, Ascent guides.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
[Guide] How to make a NPC cast spells. NO LUA!
(#1)
Old
Power of Illuminati's Avatar
Power of Illuminati is Offline
Contributor
Rep Power: 2
Reputation: 170
Power of Illuminati has a spectacular aura aboutPower of Illuminati has a spectacular aura about
 
Posts: 1,367
Join Date: May 2008
Location: Pyramid of Anubis
[Guide] How to make a NPC cast spells. NO LUA! - 05-18-2008

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 - [Only registered and activated users can see links. ]
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
[Only registered and activated users can see links. ]



Last edited by Power of Illuminati; 06-06-2008 at 02:32 PM.
Reply With Quote

Donate to remove ads.
(#2)
Old
Exona is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 1
Exona is an unknown quantity at this point
 
Posts: 11
Join Date: Jan 2007
Location: Norway
05-18-2008

Awesome guide! Definately !
Will try this out once I start setting up my own server again.
Reply With Quote
(#3)
Old
Power of Illuminati's Avatar
Power of Illuminati is Offline
Contributor
Rep Power: 2
Reputation: 170
Power of Illuminati has a spectacular aura aboutPower of Illuminati has a spectacular aura about
 
Posts: 1,367
Join Date: May 2008
Location: Pyramid of Anubis
05-18-2008

Thanks for supporting me. I will write more guides soon, that I havn't seen here yet.


Reply With Quote
(#4)
Old
Aircon's Avatar
Aircon is Offline
Knight
Rep Power: 3
Reputation: 33
Aircon is on a distinguished road
 
Posts: 188
Join Date: Jul 2006
Location: WoWScape
05-18-2008

great help!


Reply With Quote
(#5)
Old
BrantX's Avatar
BrantX is Offline
Contributor
Rep Power: 3
Reputation: 168
BrantX has a spectacular aura aboutBrantX has a spectacular aura about
 
Posts: 782
Join Date: Jul 2007
05-18-2008

wow... it actually worked lol +rep


Main Leader of Blua. Scripter of Blua.
C++ and LUA Scripters wanted! PM me for more info.

Reply With Quote
(#6)
Old
joestyle2's Avatar
joestyle2 is Offline
Sergeant
Rep Power: 1
Reputation: 5
joestyle2 is an unknown quantity at this point
 
Posts: 45
Join Date: Jan 2008
Location: Canada
05-18-2008

Nice guide and great job you helped me alot! +rep of course!


Reply With Quote
(#7)
Old
Power of Illuminati's Avatar
Power of Illuminati is Offline
Contributor
Rep Power: 2
Reputation: 170
Power of Illuminati has a spectacular aura aboutPower of Illuminati has a spectacular aura about
 
Posts: 1,367
Join Date: May 2008
Location: Pyramid of Anubis
05-19-2008

Thanks guys! It's alot easier then lua scripting if you only going to need few spells

Quote:
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?


Reply With Quote
(#8)
Old
xaverz is Offline
Banned
Rep Power: 0
Reputation: 8
xaverz is an unknown quantity at this point
 
Posts: 113
Join Date: May 2008
Location: |Fury Wow Funserver|
05-19-2008

OOM , thanks alot dude! I will try this!!
Reply With Quote
(#9)
Old
xaverz is Offline
Banned
Rep Power: 0
Reputation: 8
xaverz is an unknown quantity at this point
 
Posts: 113
Join Date: May 2008
Location: |Fury Wow Funserver|
05-19-2008

Any way, also looking for some1 to help me,. i need a video guide how to compile stuff with c++! please i will +rep!
Reply With Quote
(#10)
Old
Dragonshadow's Avatar
Dragonshadow is Online
Tinky Ftw
Legendary User
Rep Power: 7
Reputation: 819
Dragonshadow is a splendid one to beholdDragonshadow is a splendid one to beholdDragonshadow is a splendid one to beholdDragonshadow is a splendid one to beholdDragonshadow is a splendid one to beholdDragonshadow is a splendid one to beholdDragonshadow is a splendid one to behold
 
Posts: 1,760
Join Date: Apr 2007
Location: Why would I know?
05-20-2008

This Is Epic!



Reply With Quote
(#11)
Old
kevinno's Avatar
kevinno is Offline
Master Sergeant
Rep Power: 2
Reputation: 46
kevinno is on a distinguished road
 
Posts: 89
Join Date: Oct 2007
05-25-2008

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
Reply With Quote
(#12)
Old
Tornad0z's Avatar
Tornad0z is Offline
Sergeant
Rep Power: 2
Reputation: 6
Tornad0z is an unknown quantity at this point
 
Posts: 61
Join Date: Aug 2007
05-25-2008

great tut, easy to understand
Reply With Quote
(#13)
Old
rancor26's Avatar
rancor26 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 1
Reputation: 2
rancor26 is an unknown quantity at this point
 
Posts: 20
Join Date: Mar 2008
05-26-2008

great guide if it works for me (and if i can give rep)
Reply With Quote
(#14)
Old
Presto12 is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 2
Reputation: 3
Presto12 is an unknown quantity at this point
 
Posts: 27
Join Date: Mar 2007
05-26-2008

Thanks !
Reply With Quote
(#15)
Old
Power of Illuminati's Avatar
Power of Illuminati is Offline
Contributor
Rep Power: 2
Reputation: 170
Power of Illuminati has a spectacular aura aboutPower of Illuminati has a spectacular aura about
 
Posts: 1,367
Join Date: May 2008
Location: Pyramid of Anubis
05-26-2008

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


Reply With Quote
Reply

Donate to remove ads.

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On




Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342