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 Scripting LUA 101
Ascent Guides This section is for WoW emulated server, Ascent guides.
[NO QUESTIONS HERE]

Reply
 
LinkBack Thread Tools
(#121)
Old
virgil85 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
virgil85 is an unknown quantity at this point
 
Posts: 8
Join Date: Feb 2008
07-13-2008

Me again !
I looked over my lua script a copule of times and can't figure it out ( Btw It's a script from another guide - Modified it a little .. )

Code:
function phase_1(pUnit, Event)
 if pUnit:GetHealthPct() < 99 then
  pUnit:RemoveEvents();
  pUnit:SendChatMessage(14, 0, "This is just the beggining FOOLS!")
  pUnit:FullCastSpellOnTarget(47248,Unit:GetMainTank())
  pUnit:PlaySoundToSet(11803)
  pUnit:RegisterEvent("phase_2",1000, 0)
 end
end

function phase_2(pUnit, Event)
 if pUnit:GetHealthPct() < 98 then
  pUnit:RemoveEvents();
  pUnit:SendChatMessage(14, 0, "You wish you can defeat me!!!")
  pUnit:FullCastSpellOnTarget(39023,Unit:GetMainTank())
  pUnit:PlaySoundToSet(11803)
  pUnit:RegisterEvent("phase_3",1000, 0)
 end
end
 
function phase_3(pUnit, Event)
 if pUnit:GetHealthPct() < 97 then
  pUnit:RemoveEvents();
  pUnit:SendChatMessage(14, 0, "Hahaha!")
  pUnit:PlaySoundToSet(11803)
  pUnit:FullCastSpellOnTarget(28627,Unit:GetMainTank())
  pUnit:FullCastSpellOnTarget(38533,Unit:GetMainTank())
  pUnit:FullCastSpellOnTarget(38533,Unit:GetMainTank())
  pUnit:FullCastSpellOnTarget(38533,Unit:GetMainTank())
  pUnit:RegisterEvent("phase_4",1000, 0)
 end
end
 
function phase_4(pUnit, Event)
 if pUnit:GetHealthPct() < 50 then
  pUnit:RemoveEvents();
  pUnit:SendChatMessage(14, 0, "This isn't THE end!!")
  pUnit:PlaySoundToSet(11803)
  pUnit:FullCastSpellOnTarget(45664,Unit:GetMainTank())
  pUnit:RegisterEvent("phase_5",1000, 0)
 end
end
 
function phase_5(pUnit, Event)
 if pUnit:GetHealthPct() < 20 then
  pUnit:RemoveEvents();
  pUnit:SendChatMessage(14, 0, "You CANNOT Defeat me!")
  pUnit:PlaySoundToSet(11803)
  pUnit:FullCastSpellOnTarget(40343,Unit:GetMainTank())
  pUnit:FullCastSpellOnTarget(48441,Unit:GetMainTank())
  pUnit:FullCastSpellOnTarget(512,Unit:GetMainTank())
  pUnit:FullCastSpellOnTarget(25442,Unit:GetMainTank())
  pUnit:FullCastSpellOnTarget(17668,Unit:GetMainTank())
  pUnit:FullCastSpellOnTarget(40876,Unit:GetMainTank())
  pUnit:RegisterEvent("phase_6",1000, 0)
 end
end


function phase_6(pUnit, Event)
 if pUnit:GetHealthPct() < 01 then
  pUnit:RemoveEvents();
  pUnit:SendChatMessage(14, 0, "No no no no ... This can't be happening!")
  pUnit:PlaySoundToSet(11803)
  pUnit:FullCastSpellOnTarget(44998,Unit:GetMainTank())
  pUnit:RegisterEvent("phase_7",1000, 0)
 end
end

function phase_7(pUnit, Event)
 if pUnit:GetHealthPct() < 100 then
  pUnit:RemoveEvents();        
  pUnit:CastSpell(46474)
 end
end

-- The OnKill and OnCombat stuff... Emerge is with this to...
function Kil_OnKill (pUnit, Event)
	pUnit:PlaySoundToSet(11803)
end

function Kil_EnterCombat (pUnit, Event)
	pUnit:PlaySoundToSet(11803)
	pUnit:CastSpell(35177)
end

function boss_start(pUnit, Event)
 pUnit:RegisterEvent("phase_1",1000, 0)
 end


RegisterUnitEvent(25320, 1, "Kil_EnterCombat")
RegisterUnitEvent(25320, 1, "boss_start")
RegisterUnitEvent(25320, 3, "Kil_OnKill")
If you could tell me what's wrong with it ..
Well I know there's no name of the boss but no idea where to put it ...
Reply With Quote

Donate to remove ads.
(#122)
Old
AixCrasher 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
AixCrasher is an unknown quantity at this point
 
Posts: 6
Join Date: Jun 2008
07-13-2008

???????? man, can u plz answer all the questions?

Tank u so much!
Reply With Quote
(#123)
Old
SectorSeven's Avatar
SectorSeven is Offline
Banned
Rep Power: 0
Reputation: 444
SectorSeven is just really niceSectorSeven is just really niceSectorSeven is just really niceSectorSeven is just really niceSectorSeven is just really nice
 
Posts: 1,965
Join Date: Oct 2007
07-14-2008

I've been outta town... anyways, your not registering the correct events virgil85.
Reply With Quote
(#124)
Old
Redfalcon's Avatar
Redfalcon is Offline
Sergeant
Rep Power: 1
Reputation: 5
Redfalcon is an unknown quantity at this point
 
Posts: 52
Join Date: May 2008
Location: Bay Area
07-15-2008

Woah. Amazing guide. Very helpful. Only one question... Is there anyway you can do a file type, for example: pUnit:PlaySoundFile("Sound\Creature\Kelthuzad\KelthuzadDeath.wav") . Would that work or do I have to find the ID? Great guide!
Reply With Quote
(#125)
Old
SectorSeven's Avatar
SectorSeven is Offline
Banned
Rep Power: 0
Reputation: 444
SectorSeven is just really niceSectorSeven is just really niceSectorSeven is just really niceSectorSeven is just really niceSectorSeven is just really nice
 
Posts: 1,965
Join Date: Oct 2007
07-15-2008

No, haha that wouldn't work. Thats addons, something totally different on the lua scale.
Reply With Quote
(#126)
Old
Redfalcon's Avatar
Redfalcon is Offline
Sergeant
Rep Power: 1
Reputation: 5
Redfalcon is an unknown quantity at this point
 
Posts: 52
Join Date: May 2008
Location: Bay Area
07-15-2008

Oh lol... Darn... Hmm... Do you know how I would find the ID if I found the Sound using MyWarcraftStudios? Sorry for the trouble.
Reply With Quote
(#127)
Old
Scripted 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
Scripted is an unknown quantity at this point
 
Posts: 2
Join Date: Jul 2008
07-15-2008

Thanks man
Reply With Quote
(#128)
Old
Scripted 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
Scripted is an unknown quantity at this point
 
Posts: 2
Join Date: Jul 2008
07-15-2008

Thanks man
Reply With Quote
(#129)
Old
Myzt is Offline
Master Sergeant
Rep Power: 1
Reputation: 10
Myzt is on a distinguished road
 
Posts: 68
Join Date: Jun 2008
Location: Sweden!
07-18-2008

Totally epic guide.
This got me started
Reply With Quote
(#130)
Old
DudeWheresMYEmu is Offline
Knight
Rep Power: 1
Reputation: 74
DudeWheresMYEmu will become famous soon enough
 
Posts: 183
Join Date: Aug 2008
08-19-2008

Nice guide mate


Matt 16:24 Then Jesus said to his disciples, "If anyone would come after me, he must deny himself and take up his cross and follow me."
Reply With Quote
(#131)
Old
spollock's Avatar
spollock is Offline
Sergeant
Rep Power: 1
Reputation: 5
spollock is an unknown quantity at this point
 
Posts: 30
Join Date: Jan 2008
09-10-2008

Quick Question, How does the script know what creature to add it too? I am sorry if it's a retarded question, but I am a complete noob
Reply With Quote
(#132)
Old
mamemu28's Avatar
mamemu28 is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 30
mamemu28 is on a distinguished road
 
Posts: 306
Join Date: Aug 2007
4 Weeks Ago

Quote:
Originally Posted by DudeWheresMYEmu View Post
Nice guide mate
Arent you SectorSeven? lol


100 posts on mmowned at 18/07/08 3:38 GMT +2
200 posts on mmowned at 10/10/08 12:22 GMT +2
Reply With Quote
Reply

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.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.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 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361