Network: WoW Gold | WoW Accounts | MPS Games | FPSowned
MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides
Homepage »      Register »      Hall of Fame »      Ranks And Awards »      Advertise »      Marketplace »
 
Sign up



Do you like this excellent information? Then Donate HERE to remove ads and support the MMOwned community.


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > WoW Emulator Server > Emulator Server Guides

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
  #31  
Old 08-13-2009
-Jebus Fist-'s Avatar
-Jebus Fist- is online.
Contributor
  
 
Join Date: Mar 2008
Location: On uranus
Posts: 797
Reputation: 237
Points: 5,467, Level: 8
Points: 5,467, Level: 8 Points: 5,467, Level: 8 Points: 5,467, Level: 8
Level up: 7%, 1,033 Points needed
Level up: 7% Level up: 7% Level up: 7%
Activity: 20.1%
Activity: 20.1% Activity: 20.1% Activity: 20.1%

Extreme bumpage.
__________________
Reply With Quote


Donate to remove ads, get your "DONATOR title, and get access to the MMOwned community's elite Shoutbawx.

  #32  
Old 08-13-2009
~Keric Vi Britannia~'s Avatar
~Keric Vi Britannia~ is offline.
Master Sergeant
  
 
Join Date: Oct 2007
Location: In the U.S. of A!
Posts: 91
Reputation: 11
Points: 529, Level: 1
Points: 529, Level: 1 Points: 529, Level: 1 Points: 529, Level: 1
Level up: 26%, 371 Points needed
Level up: 26% Level up: 26% Level up: 26%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
This thread does need some epic bumpage... It's one of the most fluent, well-thought, written out, and explained guides I have seen. Not compared to those crappy "How to script a boss!" guides, which are oh so horrible, even if done by a high ranking person on MMOwned. I'm still re-reading this for the fifth time, to try and learn Lua on my own. x) I still need help though..
__________________
Motivational Posters. Why do they exist?
Reply With Quote
  #33  
Old 09-05-2009
shadowstep0705 is offline.
Corporal
  
 
Join Date: Aug 2009
Posts: 17
Reputation: 9
Points: 78, Level: 1
Points: 78, Level: 1 Points: 78, Level: 1 Points: 78, Level: 1
Level up: 20%, 322 Points needed
Level up: 20% Level up: 20% Level up: 20%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
i got a question: can i use a flag a text message, like when i type something in, the script will get activated
Reply With Quote
  #34  
Old 09-05-2009
WargRider's Avatar
WargRider is offline.
Master Sergeant
  
 
Join Date: Oct 2007
Location: South Park
Posts: 109
Reputation: 20
Points: 975, Level: 2
Points: 975, Level: 2 Points: 975, Level: 2 Points: 975, Level: 2
Level up: 15%, 425 Points needed
Level up: 15% Level up: 15% Level up: 15%
Activity: 0.7%
Activity: 0.7% Activity: 0.7% Activity: 0.7%

When your doing the part with the teleporting only GMS, I dont know if this works with LUA but I am pro C so instead of all the elseifs, try something like

elseif(playername != "GM n1" && playername != "GM n2") then

the && signifies an "and" statement instead of all the ifs, so basically what your syaing if the player here is NOT a GM and if you want ONLY gms, then based on the name change the && to || which is an "or" statement and change the != to == which is obvious what it means . IK if ti will work or not I dont really script too much in LUA but it might work give it a try.
Reply With Quote
  #35  
Old 09-07-2009
L0st's Avatar
L0st is offline.
Sergeant Major
  
 
Join Date: Mar 2009
Location: Ohio
Posts: 147
Reputation: 69
Points: 1,312, Level: 2
Points: 1,312, Level: 2 Points: 1,312, Level: 2 Points: 1,312, Level: 2
Level up: 83%, 88 Points needed
Level up: 83% Level up: 83% Level up: 83%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%

but seriously stop with the LUA tuts.
__________________
Need help with your PS (private server) well PM me and I'll do the best I can to help you out.

~-L0sT-~
Reply With Quote
  #36  
Old 09-11-2009
digger514 is offline.
New User
  
 
Join Date: Jun 2009
Posts: 4
Reputation: 1
Points: 80, Level: 1
Points: 80, Level: 1 Points: 80, Level: 1 Points: 80, Level: 1
Level up: 20%, 320 Points needed
Level up: 20% Level up: 20% Level up: 20%
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
help

ok i read the variables but i don't really get what the variable does/is. Is it just there? please help
Reply With Quote
  #37  
Old 10-17-2009
Seethe's Avatar
Seethe is offline.
Contributor
  
 
Join Date: Nov 2007
Location: Darkspear
Posts: 446
Reputation: 116
Points: 2,233, Level: 4
Points: 2,233, Level: 4 Points: 2,233, Level: 4 Points: 2,233, Level: 4
Level up: 19%, 567 Points needed
Level up: 19% Level up: 19% Level up: 19%
Activity: 3.3%
Activity: 3.3% Activity: 3.3% Activity: 3.3%

Bumpification/Nomination.
__________________


The Cake is a Paradox '09


Last edited by Seethe; 10-17-2009 at 12:38 AM.
Reply With Quote
  #38  
Old 10-17-2009
kiev's Avatar
kiev is offline.
Knight-Lieutenant
  
 
Join Date: Nov 2007
Location: Mmowned.com
Posts: 275
Reputation: 43
Points: 1,663, Level: 3
Points: 1,663, Level: 3 Points: 1,663, Level: 3 Points: 1,663, Level: 3
Level up: 38%, 437 Points needed
Level up: 38% Level up: 38% Level up: 38%
Activity: 9.1%
Activity: 9.1% Activity: 9.1% Activity: 9.1%

Amazing. Simply Amazing, Use to be into .Lua alot, This might be what it takes to get me back into trying again.

Thank you!


Reply With Quote
  #39  
Old 4 Weeks Ago
xgamer08 is offline.
New User
  
 
Join Date: Jul 2009
Posts: 3
Reputation: 1
Points: 54, Level: 1
Points: 54, Level: 1 Points: 54, Level: 1 Points: 54, Level: 1
Level up: 14%, 346 Points needed
Level up: 14% Level up: 14% Level up: 14%
Activity: 2.5%
Activity: 2.5% Activity: 2.5% Activity: 2.5%

problem....

this is my first script and i have it in my script folder and lua is enabled but it still wnt work. is there something wrong with my script? i made the boss from wow-v btw if that is any help.
Reply With Quote
  #40  
Old 4 Weeks Ago
xgamer08 is offline.
New User
  
 
Join Date: Jul 2009
Posts: 3
Reputation: 1
Points: 54, Level: 1
Points: 54, Level: 1 Points: 54, Level: 1 Points: 54, Level: 1
Level up: 14%, 346 Points needed
Level up: 14% Level up: 14% Level up: 14%
Activity: 2.5%
Activity: 2.5% Activity: 2.5% Activity: 2.5%

here is the script:

function Deathwing_OnCombat (Unit, Event)
pUnit:SendChatMessage (12, 0, "You will burn by the fires of the Black Dragon Flight!")
pUnit:RegisterEvent ("Deathwing_Boulder", 5000, 5)
pUnit:RegisterEvent ("Deathwing_Armageddon", 10000, 0)
end

function Deathwing_Boulder (pUnit, Event)
pUnit:CastSpellOnTarget (59732, pUnit:GetRandomPlayer (0))
end

function Deathwing_Armageddon (pUnit, Event)
pUnit:CastSpell (45915)
end

function Deathwing_OnDied (Unit, Event)
pUnit:SendChatMessage (12, 0, "No........This cannot be.....I promise all of you will burn!")
pUnit:RemoveEvents()
end

function Deathwing_OnKilledTarget (Unit, Event)
pUnit:SendChatMessage (12, 0, "HAHAHAHA. Yet another incinerated soul!")
end

function Deathwing_OnLeaveCombat (Unit, Event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(50, 1, "Deathwing_OnCombat")
RegisterUnitEvent(50, 4, "Deathwing_OnDied")
RegisterUnitEvent(50, 3, "Deathwing_OnKilledTarget")
RegisterUnitEvent(50, 2, "Deathwing_OnLeaveCombat")
Reply With Quote
  #41  
Old 4 Weeks Ago
kiev's Avatar
kiev is offline.
Knight-Lieutenant
  
 
Join Date: Nov 2007
Location: Mmowned.com
Posts: 275
Reputation: 43
Points: 1,663, Level: 3
Points: 1,663, Level: 3 Points: 1,663, Level: 3 Points: 1,663, Level: 3
Level up: 38%, 437 Points needed
Level up: 38% Level up: 38% Level up: 38%
Activity: 9.1%
Activity: 9.1% Activity: 9.1% Activity: 9.1%

Quote:
Originally Posted by xgamer08 View Post
here is the script:

function Deathwing_OnCombat (Unit, Event)
pUnit:SendChatMessage (12, 0, "You will burn by the fires of the Black Dragon Flight!")
pUnit:RegisterEvent ("Deathwing_Boulder", 5000, 5)
pUnit:RegisterEvent ("Deathwing_Armageddon", 10000, 0)
end

function Deathwing_Boulder (pUnit, Event)
pUnit:CastSpellOnTarget (59732, pUnit:GetRandomPlayer (0))
end

function Deathwing_Armageddon (pUnit, Event)
pUnit:CastSpell (45915)
end

function Deathwing_OnDied (Unit, Event)
pUnit:SendChatMessage (12, 0, "No........This cannot be.....I promise all of you will burn!")
pUnit:RemoveEvents()
end

function Deathwing_OnKilledTarget (Unit, Event)
pUnit:SendChatMessage (12, 0, "HAHAHAHA. Yet another incinerated soul!")
end

function Deathwing_OnLeaveCombat (Unit, Event)
pUnit:RemoveEvents()
end

RegisterUnitEvent(50, 1, "Deathwing_OnCombat")
RegisterUnitEvent(50, 4, "Deathwing_OnDied")
RegisterUnitEvent(50, 3, "Deathwing_OnKilledTarget")
RegisterUnitEvent(50, 2, "Deathwing_OnLeaveCombat")
Well, First off all it would be nice if you was to put it into [code] boxes, but none the less i will help you out, what you have done is placed a " " after each of the commands, which in call is probably not making them be called to work. So let me fix it up for you!

Code:
function Deathwing_OnCombat(Unit, Event)
    Unit:SendChatMessage(12, 0, "You will burn by the fires of the Black Dragon Flight!")
    Unit:RegisterEvent("Deathwing_Boulder", 5000, 5)
    Unit:RegisterEvent("Deathwing_Armageddon", 10000, 0)
end

function Deathwing_Boulder(Unit, Event)
    Unit:CastSpellOnTarget(59732, Unit:GetRandomPlayer (0))
end

function Deathwing_Armageddon(Unit, Event)
    Unit:CastSpell(45915)
end

function Deathwing_OnDied(Unit, Event)
    Unit:SendChatMessage(12, 0, "No........This cannot be.....I promise all of you will burn!")
    Unit:RemoveEvents()
end

function Deathwing_OnKilledTarget(Unit, Event)
    Unit:SendChatMessage(12, 0, "HAHAHAHA. Yet another incinerated soul!")
end

function Deathwing_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents()
end

RegisterUnitEvent(50, 1, "Deathwing_OnCombat")
RegisterUnitEvent(50, 4, "Deathwing_OnDied")
RegisterUnitEvent(50, 3, "Deathwing_OnKilledTarget")
RegisterUnitEvent(50, 2, "Deathwing_OnLeaveCombat")
Now that is just from what i can quickly see, there seems to be no noticable errors so try that one. Thanks for posting

EDIT:Aha even noticed another one, you have a mix of "pUnit" and "Unit", which im guessing could also be clashing, and the fact you are sometimes calling on "Unit" and using "pUnit" instead. So, One sec ill fix it again.

There you go, that one should work.

Last edited by kiev; 4 Weeks Ago at 03:56 PM. Reason: Correction
Reply With Quote
  #42  
Old 4 Weeks Ago
xgamer08 is offline.
New User
  
 
Join Date: Jul 2009
Posts: 3
Reputation: 1
Points: 54, Level: 1
Points: 54, Level: 1 Points: 54, Level: 1 Points: 54, Level: 1
Level up: 14%, 346 Points needed
Level up: 14% Level up: 14% Level up: 14%
Activity: 2.5%
Activity: 2.5% Activity: 2.5% Activity: 2.5%

ok ive fixed wat u said was wrong but it still isnt working. ive tried making the id my entry id and the npc that i used id but neither of them works. any ideas?
Reply With Quote
  #43  
Old 4 Weeks Ago
-Jebus Fist-'s Avatar
-Jebus Fist- is online.
Contributor
  
 
Join Date: Mar 2008
Location: On uranus
Posts: 797
Reputation: 237
Points: 5,467, Level: 8
Points: 5,467, Level: 8 Points: 5,467, Level: 8 Points: 5,467, Level: 8
Level up: 7%, 1,033 Points needed
Level up: 7% Level up: 7% Level up: 7%
Activity: 20.1%
Activity: 20.1% Activity: 20.1% Activity: 20.1%

I found a "error".
Here you state this:
Code:
Unit:SendChatMessage(language, channeltype, "Message")
However, here, you clearly ment to broadcast a message in universal, but you put it wrong.

Code:
Unit:SendChatMessage(41, 0, "Creature begins to transform!, and his minion appears!")
__________________
Reply With Quote
  #44  
Old 3 Weeks Ago
Valmere's Avatar
Valmere is offline.
Master Sergeant
  
 
Join Date: Apr 2007
Location: Florida
Posts: 89
Reputation: 25
Points: 770, Level: 1
Points: 770, Level: 1 Points: 770, Level: 1 Points: 770, Level: 1
Level up: 74%, 130 Points needed
Level up: 74% Level up: 74% Level up: 74%
Activity: 1.3%
Activity: 1.3% Activity: 1.3% Activity: 1.3%

Just was I was looking for, nice guide! when I can.
__________________
professional lurker

Last edited by Valmere; 3 Weeks Ago at 12:44 PM.
Reply With Quote
  #45  
Old 1 Week Ago
Gooze's Avatar
Gooze is offline.
New User
  
 
Join Date: Oct 2008
Posts: 7
Reputation: 1
Points: 228, Level: 1
Points: 228, Level: 1 Points: 228, Level: 1 Points: 228, Level: 1
Level up: 57%, 172 Points needed
Level up: 57% Level up: 57% Level up: 57%
Activity: 2.5%
Activity: 2.5% Activity: 2.5% Activity: 2.5%

After reading this through a couple of times i'm starting to get a sense of lua scripting, this guide just rock!
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



All times are GMT -4. The time now is 04:40 PM.




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.1

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 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493