First Attempt | Lua - Karazhan - Spectral Trash menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    Stridharn's Avatar Member
    Reputation
    4
    Join Date
    Jul 2007
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    First Attempt | Lua - Karazhan - Spectral Trash

    Hello.
    This is my very first self-scripted Lua - It's all the Spectral Mobs in Karazhan Scripted to give it a more "Alive" -Feeling

    Tell me what you think about it, I'm very grateful for any tips of which I can use in the future scripts!

    Thanks Garoboldy, For the help!


    Code:
    ----Scripted Entirerly by Stridharn----
    ----There are a few spells of which I chose not to include in the script----
    ----This Script is mainly to give the trash-mobs a more legit feeling----
    
    
    function SpectralCharger(Unit, Event)
    Unit:FullCastSpellOnTarget(29320, Unit:GetRandomPlayer(0))
    end
    RegisterUnitEvent(15547, 1, "SpectralCharger")
    
    function SpectralStallion(Unit, Event)
    Unit:FullCastSpellOnTarget(29320, Unit:GetRandomPlayer(0))
    end
    RegisterUnitEvent(15548, 1, "SpectralStallion")
    
    function SpectralHand(Unit, Event)
    local Choice=math.random(1, 3)
    		if Choice==1 then
    			Unit:SendChatMessage(14, 0, "Who brought theese foul creatures inside?")
    		elseif Choice==2 then
    			Unit:SendChatMessage(14, 0, "Who let you inside of Karazhan?")
    		elseif Choice==3 then
    			Unit:SendChatMessage(14, 0, "Where did You come from?")
    Unit:FullCastSpellOnTarget(18812, Unit:GetRandomPlayer(0))
    end
    end
    
    function SpectralHand_Die(Unit, Event)
    Unit:SendChatMessage(14, 0, "Please, Don't - Ahhhh!")
    end
    RegisterUnitEvent(15551, 4, "SpectralHand_Die")
    RegisterUnitEvent(15551, 1, "SpectralHand")
    
    function SpectralApp(Unit, Event)
    		if Choice==1 then
    			Unit:SendChatMessage(14, 0, "I will defeat you!")
    		elseif Choice==2 then
    			Unit:SendChatMessage(14, 0, "I didn't know we had visitors!")
    		elseif Choice==3 then
    			Unit:SendChatMessage(14, 0, "You will not last long!")
    Unit:FullCastSpellOnTarget(29618, Unit:GetRandomPlayer(4))
    end
    end
    RegisterUnitEvent(16389, 1, "SpectralApp")
    
    function SpectralChef(Unit, Event)
    		if Choice==1 then
    			Unit:SendChatMessage(14, 0, "On today's menu, Foul Mortals!")
    		elseif Choice==2 then
    			Unit:SendChatMessage(14, 0, "Who are you?! ")
    		elseif Choice==3 then
    			Unit:SendChatMessage(14, 0, "Ah, Visitors!")
    Unit:FullCastSpellOnTarget(29665, Unit:GetMainTank())
    end
    end
    RegisterUnitEvent(16411, 1, "SpectralChef")
    
    function SpectralPatron(Unit, Event)
    Unit:FullCastSpellOnTarget(29555, Unit:GetMainTank())
    end
    RegisterUnitEvent(16468, 1, "SpectralPatron")
    
    function SpectralPerformer(Unit, Event)
    Unit:FullCastSpellOnTarget(29679, Unit:GetRandomPlayer(4))
    if Unit:GetHealthPct() < 99 then
    Unit:RegisterEvent(Curtain, 1000, 1)
    end
    end
    
    function Curtain(Unit, Event)
    Unit:FullCastSpellOnTarget(29680, Unit:GetRandomPlayer(4))
    end
    RegisterUnitEvent(16473, 1, "SpectralPerformer")
    RegisterUnitEvent(16473, 1, "Curatin")
    
    function SpectralRetainer(Unit, Event)
    Unit:SendChatMessage(14, 0, "Bleed!")
    Unit:FullCastSpellOnTarget(29578, Unit:GetRandomPlayer(0))
    end
    RegisterUnitEvent(16410, 1, "SpectralRetainer")
    
    function SpectralSentry(Unit, Event)
    Unit:FullCastSpellOnTarget(29576, Unit:GetRandomPlayer(0))
    end
    RegisterUnitEvent(16424, 1, "SpectralSentry")
    
    function SpectralServant(Unit, Event)
    Unit:FullCastSpellOnTarget(29540, Unit:GetMainTank())
    end
    RegisterUnitEvent(16407, 1, "SpectralServant")
    
    function PhantomGuest(Unit, Event)
    Unit:FullCastSpellOnTarget(29930, Unit:GetRandomPlayer(0))
    Unit:RegisterEvent(Immolate, 1000, 1)
    end
    
    function Immolate(Unit, Event)
    Unit:FullCastSpellOnTarget(29928, Unit:GetRandomPlayer(0))
    end
    RegisterUnitEvent(16409, 1, "PhantomGuest")
    RegisterUnitEvent(16409, 1, "Immolate")
    Last edited by Stridharn; 06-30-2010 at 11:34 PM.

    First Attempt | Lua - Karazhan - Spectral Trash
  2. #2
    Ground Zero's Avatar ★ Elder ★
    Reputation
    1132
    Join Date
    Aug 2008
    Posts
    3,504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Approved, but don't post more than one thread next time.

  3. #3
    Kirsebaer's Avatar Banned
    Reputation
    6
    Join Date
    Nov 2008
    Posts
    156
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Uhm, you got help on WoW-V.
    So this ain't "first try".

  4. #4
    Scelero's Avatar Member
    Reputation
    1
    Join Date
    Oct 2009
    Posts
    34
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kirsebaer View Post
    Uhm, you got help on WoW-V.
    So this ain't "first try".
    Get over yourself. He is saying it's his first attempt at making a script. Who cares if he got help with the coding, he still did it himself and can take credit as such.

  5. #5
    Stridharn's Avatar Member
    Reputation
    4
    Join Date
    Jul 2007
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I actually found my help here on MMOwned, but that doesn't matter.

  6. #6
    I Hypnotoad I's Avatar Contributor
    Reputation
    147
    Join Date
    Aug 2007
    Posts
    873
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kirsebaer View Post
    Uhm, you got help on WoW-V.
    So this ain't "first try".

    /facepalm

    Who gives a flying flak if it's his first script, or his thousandth. A Script is a script.

    ON TOPIC: Nice job on this. It seems to make Karazhan seem a LOT more professional. As if Karazhan was released in WOTLK, when Blizz cared about scripting. :P
    +rep



    Dragon[Sky] can get into our signatures, AND our pants.



  7. #7
    Stridharn's Avatar Member
    Reputation
    4
    Join Date
    Jul 2007
    Posts
    32
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cheers Mate :-)

Similar Threads

  1. First Attempt AT Photoshop
    By Synyster in forum Art & Graphic Design
    Replies: 7
    Last Post: 08-05-2007, 04:33 PM
  2. Karazhan: Curator Trash.
    By Tipsy. in forum World of Warcraft Exploits
    Replies: 10
    Last Post: 06-26-2007, 01:06 PM
  3. First Attempt
    By Fault in forum Art & Graphic Design
    Replies: 6
    Last Post: 06-05-2007, 02:37 PM
  4. a first attempt
    By MechaAngelus in forum WoW ME Questions and Requests
    Replies: 10
    Last Post: 08-21-2006, 03:30 PM
  5. a first attempt
    By MechaAngelus in forum World of Warcraft Model Editing
    Replies: 3
    Last Post: 08-17-2006, 03:13 PM
All times are GMT -5. The time now is 09:51 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search