Modcraft - The community dedicated to quality WoW modding!

Community => Showoff - what you are working on => Topic started by: Chronic on February 03, 2013, 03:06:24 am

Title: [LUA[Chronic Boss/Mics Scripts --
Post by: Chronic on February 03, 2013, 03:06:24 am
Hello Everyone.

In this thread you`ll find some basic boss fights and even a MISC but still LUA related Hangman script
I have been doing this roughly about a month so i would appreciate for Constructive Critics as i know with  great CC you can improve alot.
On a side note this thread will be updated weekly or 2nd weekly with all my scripts i create and finish

Here they are and we start first with a

#1---Magnus The Destroyer
Quote
Magnus The Destroyer Boss Fight is done as one of my first ever scripts when starting with the programming language of LUA.And i know there might be a few flaws but i guess im just lazy to go and fix them  

 =========   PasteBin Link  =========
  ******        http://pastebin.com/gjbJ9Nne (http://pastebin.com/gjbJ9Nne" onclick="window.open(this.href);return false;)        ******

#2---Sindragosa Boss Fight
Quote
This fight was scripted by me with a help from a friend ,and i really appreciate his help as if it wasn`t for him  I doubt I would finish this
Kind Regards

  =========   PasteBin Link  =========
   *********    http://pastebin.com/p5X4crY2 (http://pastebin.com/p5X4crY2" onclick="window.open(this.href);return false;)    *********

#3-- HangMan

Quote
This is a basic script of hangman and yes its non-wow related so don`t hate :)
  =========   PasteBin Link  =========
               ********     http://pastebin.com/CHk4wFtZ (http://pastebin.com/CHk4wFtZ" onclick="window.open(this.href);return false;)     ********


Thank you for having the time to read through my annoying post and leave a comment bellow with any flaws or anything other related with CC.
I appreciate this

Kind Regards
Title: Re: [LUA[Chronic Boss/Mics Scripts --
Post by: Ascathos on April 14, 2013, 09:54:22 pm
For the completition of the information, there is a LUA engine for TrinityCore (as sort of an addon) in work:

https://github.com/ElunaLuaEngine/Source (https://github.com/ElunaLuaEngine/Source" onclick="window.open(this.href);return false;)
Title: Re: [LUA[Chronic Boss/Mics Scripts --
Post by: stoneharry on April 15, 2013, 11:02:15 am
You go from a script that doesn't even work to one that uses a lot of tables and correct indentation.
Title: Re: [LUA[Chronic Boss/Mics Scripts --
Post by: schlumpf on April 15, 2013, 11:35:06 am
Code: [Select]
pUnit:SendChatMessage(42, 0, "Sindragosa says: Kelus is gay!") --Original Message is "Sindragosa calls forth two frost wyrms!"
My biggest hope is that Blizzard's scripts don't look anywhere like this -- oh, wait, they are a huge hack as well. At least they got event handling better and no hardcoded strings.
Title: Re: [LUA[Chronic Boss/Mics Scripts --
Post by: iindigo on April 15, 2013, 05:58:57 pm
Quote from: "schlumpf"
Code: [Select]
pUnit:SendChatMessage(42, 0, "Sindragosa says: Kelus is gay!") --Original Message is "Sindragosa calls forth two frost wyrms!"
My biggest hope is that Blizzard's scripts don't look anywhere like this -- oh, wait, they are a huge hack as well. At least they got event handling better and no hardcoded strings.

I'm guessing Blizzard's scripts pull localized strings from the DBCs?
Title: Re: [LUA[Chronic Boss/Mics Scripts --
Post by: schlumpf on April 15, 2013, 06:17:42 pm
Yes, the scripts reference an id which is resolved from a database.