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
Reload this Page LuA Script Template! HighLighTed included
Emulator Server Guides Guides for working with World of Warcraft Emulator servers. Learn how to create a WoW Server here.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
LuA Script Template! HighLighTed included
(#1)
Old
Strupantwn's Avatar
Strupantwn is Offline
Site Donator
Rep Power: 2
Reputation: 96
Strupantwn will become famous soon enough
 
Posts: 754
Join Date: Apr 2007
LuA Script Template! HighLighTed included - 06-24-2008

Intro ::

This is just a quick template on how to make a lua boss script which
uses spells of your own choice in a certain time. Does not have phases
This guide is just for lazy people who does not wish to read Text of walls from
LuA guides.





___________________________________________________________________________



function Boss_ChaosBlast(pUnit, Event) Ex. Bossname_spellname no name!
pUnit:FullCastSpellOnTarget(37675, target) The number is the spell id, you put in
pUnit:SendChatMessage(12, 0, "Feel the Chaos!") What the boss says when he casts the spell.
end function Boss_ShadowBurst(pUnit, Event)
pUnit:CastSpell(34436)
pUnit:SendChatMessage(12, 0, "Hmm, I can feel the power!") <same as above
end
function Boss_Flamebreak(pUnit, Event)
pUnit:CastSpell(16785)
pUnit:SendChatMessage(12, 0, "Don't run away from me!") <same as above
end
function Boss_DarkBarrage(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:CastSpellOnTarget(40585, plr) <same as above
end
end
function Boss_VileBeam(pUnit, Event)
local plr = pUnit:GetMainTank()
if (plr ~= nil) then
pUnit:FullCastSpellOnTarget(40860, plr) <same as above
end
end
function Engar_OnEnterCombat(pUnit, Event) <-enter boss name in red.
pUnit:SendChatMessage(12, 0, "I am Legend's Top Offcier, you think you will have a chance?")
pUnit:RegisterEvent("Boss_ChaosBlast",22000, 0)
pUnit:RegisterEvent("Boss_VileBeam",20000, 0)
pUnit:RegisterEvent("Boss_ShadowBurst",10000, 0)
pUnit:RegisterEvent("Boss_Flamebreak",15000, 0)
pUnit:RegisterEvent("Boss_DarkBarrage",19000, 0) <the 19000 etc is when does he cast it, ex. 1000 = 1 sec
end
function Engar_OnLeaveCombat(pUnit, Event)
pUnit:RemoveEvents()
end
functionEngar_KilledTarget(pUnit, Event)
pUnit:SendChatMessage(12, 0, "Hahaha, fools, Engar loses to no one!") <-what he say when he kill player
pUnit:RemoveEvents()
end
function Engar_OnDied(pUnit, Event)
pUnit:SendChatMessage(12, 0, "Legend . . . will . . . not be . . . defeated . . .") <-what he say when dead.
pUnit:RemoveEvents()
end
RegisterUnitEvent(444010, 1, "Engar_OnEnterCombat")
RegisterUnitEvent(444010, 2, "Engar_OnLeaveCombat")
RegisterUnitEvent(444010, 3, "Engar_OnKilledTarget")
RegisterUnitEvent(444010, 4, "Engar_onDied")



__________________________________________________________________________
yellow = just example and what each function do. so dont put them in the script.

afterwards, save it in notepad, save it as BOSS_name.lua
and put it in your scripts folder in your ascent folder.





I kinda rushed through this teaching one of my friend.
Engar is just a example boss.


[Only registered and activated users can see links. ][Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]

Last edited by Strupantwn; 06-24-2008 at 03:20 AM.
Reply With Quote

Donate to remove ads.
(#2)
Old
runiker's Avatar
runiker is Offline
Contributor
Rep Power: 1
Reputation: 90
runiker will become famous soon enough
 
Posts: 419
Join Date: Nov 2007
06-24-2008

again with the lua guide / templates ..... am i supposed to woot? well at least your not leaching i guess.


Reply With Quote
(#3)
Old
Strupantwn's Avatar
Strupantwn is Offline
Site Donator
Rep Power: 2
Reputation: 96
Strupantwn will become famous soon enough
 
Posts: 754
Join Date: Apr 2007
06-24-2008

All I found was one template for LUA in this whole entire forum. Just though that the
Lazy guys would want to use Templates instead of reading hours and hours learning
LuA from your guide just to make one boss.

Like I said, this is for lazy people who does not like text of walls.
and the other Template I found was kinda bad and had lots of errors with
[color/] added into it by accident.

I am not saying that your guide sucks, but instead I think your guide is amazing.
I am just saying that most people don't like reading text of walls.


[Only registered and activated users can see links. ][Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]
Reply With Quote
(#4)
Old
runiker's Avatar
runiker is Offline
Contributor
Rep Power: 1
Reputation: 90
runiker will become famous soon enough
 
Posts: 419
Join Date: Nov 2007
06-24-2008

Ahh well yeah thats a good point sorry about the flame im half dead atm due to overdoing it on devloping for people!


Reply With Quote
(#5)
Old
technique!'s Avatar
technique! 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: 1
technique! is an unknown quantity at this point
 
Posts: 6
Join Date: Jun 2008
06-24-2008

Cheers! There's some great stuff. I haven't taken anytime to learn LUA yet :/

thanks,
technique!
Reply With Quote
(#6)
Old
Skype's Avatar
Skype is Offline
Contributor
Rep Power: 1
Reputation: 110
Skype will become famous soon enoughSkype will become famous soon enough
 
Posts: 106
Join Date: Dec 2007
06-24-2008

An interesting Tactic there, But i think if people wanted to learn LUA they wont do it in just one glance. If someone wants to learn LUA they need to be seriosu.
That template may really only help a few people that can learn like that, the rest of us cant possibly learn LUA on just a template.
=S

Also [Only registered and activated users can see links. ] was a bit angry because he posted a LUA guide himself a while back, and it was a good one, only that this site has a tendancy to swollow up any guide weather good or bad and no one will ever remember, so its kinda a slap in the face for him to have another guide out there when his really was a wall ot text with effort behind it.
Same thing with sectorSeven's guide.
I whould be ticked off if someone posted a skimpier guide to GMing while mine is floating around here somewhere.

xD

If you can recreatre a LUA guide that tops this one you have my rep cookie =D
[Only registered and activated users can see links. ]
Or this one
[Only registered and activated users can see links. ]
I have a knack for knowing where guides are hiding in MMOwned =P

Like i said there is a reason lazy people dont know LUA =P




Last edited by Skype; 07-24-2008 at 05:20 PM.
Reply With Quote
(#7)
Old
Strupantwn's Avatar
Strupantwn is Offline
Site Donator
Rep Power: 2
Reputation: 96
Strupantwn will become famous soon enough
 
Posts: 754
Join Date: Apr 2007
06-24-2008

Alright, let me tell you how much people you can find that do not understand nothing of
those LuA Guides even though they are very detailed and a lot of effort, but some
(Lazy guys) would not understand and will not be able to know where to put each
function and line etc. If his angry then pretty much everybody in this whole forum is
also, like you just linked, Sector7 made a LuA guide which provided very detailed of
LuA and then Rudik made another LuA guide for LuA, I don't see why I can't put
this here.

Also, I am not doing this for ReP, I was just giing a template to aother person on AiM so I
though I would'e just drop one down here helping the leechers easier with a template
which takes them about 3 min to make a quick and easy boss script.
If Rudik made his guide just for ReP then I have nothing to do with it, I don't see why
I can't POST something easier to follow real quick even though it's just a template to
help leechers with the scripting. If his angry about me posting this here because
he does not want to waste his effort on his guide for ReP then I have no power over that.

If people really want to read a DETAILED guide on LuA, I am SURE they will click on
Rudiks LuA Guide because his title explains it well that it's a text of wall.

If people really don't want to read that much and is in a hurry kind of guy, then
he will read MY guide that saids TEMPLATE in the title.


[Only registered and activated users can see links. ][Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]
[Only registered and activated users can see links. ]
Reply With Quote
(#8)
Old
mager1794's Avatar
mager1794 is Offline
Contributor
Rep Power: 1
Reputation: 125
mager1794 will become famous soon enoughmager1794 will become famous soon enough
 
Posts: 313
Join Date: Feb 2008
06-25-2008

Quote:
Like i said there is a reason lazy people dont know LUA =P
that is friggen offensive im lazy as crap and i know LUA get oyur facts strait lolol : )


Reply With Quote
Uhh
(#9)
Old
Rudik is Offline
Site n00b.. (A leecher if I've been here for more than a month and can't earn 5 rep)
Rep Power: 0
Reputation: 1
Rudik is an unknown quantity at this point
 
Posts: 2
Join Date: Jun 2008
Uhh - 07-23-2008

Why is everyone saying my name, i did something?
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