LUA Script menu

Shout-Out

User Tag List

Thread: LUA Script

Results 1 to 2 of 2
  1. #1
    Dynamo's Avatar Member
    Reputation
    1
    Join Date
    May 2009
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Script

    Hey guys I know I havent posted at all, I have been more of learning LUA then anything else over the years. But I used to script LUA for a server and now I scripted a few bosses and the scripts are not loading/ not working. The owner says the console gives an error saying Symbol and greek letters. I found this was from Notepad so i reconverted it properly but it still is not loading. Below is the script, any help would be greatly appreciated.

    function Vulcan_onSpawn(pUnit,event)
    pUnit:CastSpell(3868
    pUnit:RemoveEvents()
    end

    function Vulcan_onCombat(pUnit,event)
    pUnit:CastSpell(40594)
    pUnit:SendChatMessage(14,0,"Feel my Wrath!")
    pUnit:RemoveEvents()
    pUnit:RegisterEvent(“Vulcan_onCombat”, 1000, 1)
    end

    function Vulcan_80(pUnit,event)
    if pUnit:GetHealth() <=80 then
    pUnit:FullCastSpellOnTarget(29973,pUnit:GetRandomPlayer(4))
    pUnit:FullCastSpellOnTarget(65262,pUnit:GetClosestPlayer(4) )
    pUnit:CastSpell(50009)
    pUnit:SendChatMessage(14,0,"You honestly think you stand a chance?")
    pUnit:RemoveEvents()
    pUnit:RegisterEvent(“Vulcan_80”, 1000000, 3)
    end

    function Vulcan_50(pUnit,event)
    if pUnit:GetHealth() <=50 then
    pUnit:FullCastSpellOnTarget(63934,pUnit:GetMainTank())
    pUnit:FullCastSpellOnTarget(29964,pUnit:GetMainTank())
    pUnit:CastSpell(38373)
    pUnit:SendChatMessage(14,0,"I shall Avenge my brothers!")
    pUnit:RemoveEvents()
    pUnit:RegisterEvent(“Vulcan_50”, 352000, 3)
    end

    function Vulcan_30(pUnit,event)
    if pUnit:GetHealth() <=30 then
    pUnit:CastSpell(16421)
    pUnit:FullCastSpellOnTarget(19821,pUnit:GetRandomPlayer(4))
    pUnit:FullCastSpellOnTarget(64663,pUnit:GetMainTank())
    pUnit_SendChatMessage(14,0,"")
    pUnit:RemoveEvents()
    pUnit:RegisterEvent(“Vulcan_30”, 14520120, 4)
    end

    function Vulcan_10(pUnit,event)
    if pUnit:GetHealth() <=10 then
    pUnit:FullCastSpellOnTarget(47346,pUnit:GetClosestPlayer() )
    pUnit:FullCastSpellOnTarget(51609,pUnit:GetClosestPlayer() )
    pUnit:FullCastSpellOnTarget(57912,pUnit:GetRandomPlayer(4))
    pUnit_SendChatMessage(14,0,"Need more POWER!")
    pUnit:RemoveEvents()
    pUnit:RegisterEvent(“Vulcan”, 540000, 3)
    end

    function Vulcan_onDeath(pUnit,event)
    pUnit:CastSpell(60072)
    pUnit:SendChatMessage(14,0,"I have Fallen, But I shall return!")
    pUnit:RemoveEvents()
    pUnit:RemoveAuras()
    end

    RegisterUnitEvent(820562, 1, “Vulcan_onCombat”)
    RegisterUnitEvent(820562, 6, “Vulcan_onSpawn”)
    RegisterUnitEvent(820562, 4, “Vulcan_onDeath”)
    Last edited by Dynamo; 05-26-2009 at 04:01 AM.

    LUA Script
  2. #2
    svedin's Avatar Contributor
    Reputation
    124
    Join Date
    Jun 2008
    Posts
    557
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I saw some thing but i dunno if it why it don't load.

    pUnit:RegisterEvent(Vulcan, 540000, 3)
    Change them to
    pUnit:RegisterEvent("Vulcan", 540000, 3)

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. [GUIDE] How to activate LUA scripts
    By ~SaiLyn~ in forum WoW EMU Guides & Tutorials
    Replies: 3
    Last Post: 12-25-2007, 11:52 AM
  3. Lua Scripts!
    By danis in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 12-15-2007, 03:16 PM
  4. How To LUA Script
    By Skuxta in forum WoW EMU Guides & Tutorials
    Replies: 1
    Last Post: 12-13-2007, 04:24 AM
  5. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
All times are GMT -5. The time now is 08:21 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