Need help with my script [lua] menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Satzen's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help with my script [lua]

    Whats wrong with this lua script?He doesnt spawn the npc's and he doesnt say "Come my minions!!!!!"

    function Enixxus_OnCombat(Unit, Event)
    Unit:SendChatMessage(12, 0, "How do you dare to come to my lair!!!!!")
    Unit:RegisterEvent("Enixxusspell1_Doom", 1000, 12)
    Unit:RegisterEvent("Enixxusspell2_Destruction", 1000, 15)
    Unit:RegisterEvent("Enixxusspell3_ImpendingDeath", 1000, 20)
    Unit:RegisterEvent("EnixxusSpawn_spawn",1000,10)
    Unit:RegisterEvent("Enixxusspell4_WrathOfEnixxus", 1000, 6)
    Unit:RegisterEvent("Enixxusspell1_Doom", 1000, 12)
    Unit:RegisterEvent("Enixxusspell2_Destruction", 1000, 15)
    Unit:RegisterEvent("Enixxusspell3_ImpendingDeath", 1000, 20)
    Unit:RegisterEvent("Enixxusspell4_WrathOfEnixxus", 1000, 6)
    Unit:RegisterEvent("EnixxusSpawn_spawn",1000000,2)
    Unit:RegisterEvent("EnixxusSpawn_spawn",1000000,2)
    Unit:RegisterEvent("EnixxusSpawn_spawn",1000000,2)
    Unit:RegisterEvent("Enixxusspell4_WrathOfEnixxus", 1000, 6)
    Unit:RegisterEvent("EnixxusSpawn_spawn",1000000,2)
    Unit:RegisterEvent("EnixxusSpawn_spawn",1000000,2)
    end

    function Enixxusspell1_Doom(pUnit, Event)
    pUnit:FullCastSpellOnTarget(30910, pUnit:GetRandomPlayer(4))
    end

    function Enixxusspell2_Destruction(pUnit, Event)
    pUnit:FullCastSpellOnTarget(38533, pUnit:GetRandomPlayer())
    end

    function Enixxusspell3_ImpendingDeath(pUnit, Event)
    pUnit:FullCastSpellOnTarget(19702, pUnit:GetRandomPlayer(4))
    end

    function Enixxusspell4_WrathOfEnixxus(pUnit, Event)
    pUnit:FullCastSpellOnTarget(20566, pUnit:GetRandomPlayer(4))
    end

    function EnixxusSpawn_Spawn(pUnit, Event)
    pUnit:SpawnCreature(99998, -20.268818, -214.022720, -88.957336, 3.194836, 14, 100000)
    end

    function EnixxusBoom_Boom(pUnit, Event)
    pUnit:CastSpell(38197, pUnit:GetMainTank())
    end

    function EnixxusSpawn_spawn(pUnit, Event)
    if pUnit:GetHealthPct() < 30 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Come my minions!!!!!")
    pUnit:RegisterEvent("Enixxusspawn_Spawn",1000000,2)
    end
    end

    function Enixxus_OnLeaveCombat(Unit, Event)
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Death!")
    end

    function Enixxus_OnDied(Unit, Event)
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "NOOOO!YOU CAN'T KILL THE GOD OF DEATH!!!!")
    end

    function Enixxus_OnKilledTarget(Unit, Event)
    Unit:SendChatMessage(12, 0, "DEATH!")
    end

    RegisterUnitEvent(99999, 1, "Enixxus_OnCombat")
    RegisterUnitEvent(99999, 2, "Enixxus_OnLeaveCombat")
    RegisterUnitEvent(99999, 3, "Enixxus_OnKilledTarget")
    RegisterUnitEvent(99999, 4, "Enixxus_OnDied")

    Need help with my script [lua]
  2. #2
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check ascent-world.exe when it loads the lua scripts, it will show you the error.
    Life Puzzler WoW - Website | Forums

  3. #3
    Bapesy's Avatar Banned
    Reputation
    35
    Join Date
    May 2008
    Posts
    126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't see any errors, my lua checker didn't error either. You may not have lua enabled or are putting in wrong older.

    Five Gum!

  4. #4
    Satzen's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i have lua enabled and im putting this in script folder-_- I'm not getting any errors in
    ascent-world.exe,checked the npc gps 8times but its still bugged this is sick -_-

  5. #5
    Sumner97's Avatar Member
    Reputation
    1
    Join Date
    May 2008
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Make sure you folder is called "scripts".
    Also the time you have set before the spawns occur is about 1000 seconds. That seems like a really long time. Remember that the time is in milliseconds. So if you put the number 1000 in there it would wait 1 second then run the function. With the script you have posted it will wait 1000 seconds then run the function and spawn your additional units.

  6. #6
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you have a LUA DLL, most cores come with this by default.

    And why are your registering things before they are declared? That might be the error.

Similar Threads

  1. [Lua Script] need help with boss script
    By bellios in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 12-09-2010, 03:10 PM
  2. [Lua Script] Need help with 2 Scripts (One Boss, One Gauntlet)
    By controlsx2 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 07-22-2010, 02:42 AM
  3. need help with npc script
    By bitty in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-16-2008, 06:21 AM
  4. Needs Help with Warp Npc Lua
    By Lytle69 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-03-2008, 02:39 AM
  5. [C++]Need help with my Scripted Item
    By freezer1012 in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 01-13-2008, 05:55 PM
All times are GMT -5. The time now is 04:19 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search