can some check my lua script over menu

User Tag List

Results 1 to 2 of 2
  1. #1
    towaly's Avatar Corporal
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    19
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    can some check my lua script over

    This is my first lua script its simple and I'm not done with it yet and I was wondering if some pne could check it over and give me some feed back or corrections on it.( also 99909 is the entry id of my lich ling)

    Function The_Lich_King_OnEnterCombat(pUnit, Event)
    pUnit:SendChatMessage(14, 7, "Who dares oppose The Lich King!")
    end

    Function The_Lich_King_MirrorImage(pUnit, Event)
    pUnit:FullCastSpell(55342, pUnit: GetRandomPlayer, (0))
    PUnit:RegisterEvent("The_Lich_King_MirrorImage", 10000, 0)
    pUnit:SendChatMessage(14, 7, "The end is near!")
    end

    Function The_Lich_King_Death(pUnit, Event)
    pUnit:SendChatMessage(14, 0, "Someone must sit upon the throne.")
    end

    RegisterUnitEvent(99909, 1, "The_Lich_King_OnEnterCombat")
    RegisterUnitEvent(99909, 2, "The_Lich_King_MirrorImage")
    RegisterUnitEvent(99909, 3, "The_Lich_King_Death")

    can some check my lua script over
  2. #2
    marcelo_20xx's Avatar Active Member
    Reputation
    25
    Join Date
    Sep 2008
    Posts
    165
    Thanks G/R
    2/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Function The_Lich_King_OnEnterCombat(pUnit, Event)
    pUnit:SendChatMessage(14, 7, "Who dares oppose The Lich King!")
    end
    
    Function The_Lich_King_MirrorImage(pUnit, Event)
    pUnit:FullCastSpell(55342, pUnit: GetRandomPlayer (0))
    PUnit:RegisterEvent("The_Lich_King_MirrorImage", 10000, 0)
    pUnit:SendChatMessage(14, 7, "The end is near!")
    end
    
    Function The_Lich_King_Death(pUnit, Event)
    pUnit:SendChatMessage(14, 0, "Someone must sit upon the throne.")
    end
    
    RegisterUnitEvent(99909, 1, "The_Lich_King_OnEnterCombat")
    RegisterUnitEvent(99909, 2, "The_Lich_King_MirrorImage")
    RegisterUnitEvent(99909, 3, "The_Lich_King_Death")
    Also change the spell 55342 to another one, the spell is selfcast and in your script you are trying to cast on a random player. You need to check other Lua Scripts too, to understand the syntax better.
    Last edited by marcelo_20xx; 08-06-2010 at 10:44 AM.

Similar Threads

  1. How can i revert this Lua script ?
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-11-2009, 03:04 PM
  2. Need some help with LUA script
    By SupernovaHH in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-22-2009, 07:25 AM
  3. Noob LUA script, need some help.
    By pancakebuddy in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 05-14-2008, 08:33 AM
  4. [Request] I need some help with lua script (boss on death)
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 03-03-2008, 03:47 PM
  5. [Request]Some lua scripts
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 12-28-2007, 11:59 PM
All times are GMT -5. The time now is 06:32 PM. 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