Need help scripting menu

User Tag List

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

    Need help scripting

    Well I just set up my private server a few days ago. I have followed the guides on how to script LUA and looked at my friends scripts and basically copied them but replaced them with my IDs. Yet still it seems my scripts still refuse to work :confused:

    function HordeDefender_EnterCombat(Unit,event)
    Unit:SendChatMessage(11,0,"For the Horde!")
    end

    function HordeDefenderCombat(Unit,event)
    Unit:RegisterEvent("HordeDefenderWhirlWind",20000,0)
    Unit:RegisterEvent("HordeDefenderBattleShout",100000,0)
    end

    function HordeDefenderWhirlWind(Unit,Event)
    Unit:CastSpell(15576)
    end

    function HordeDefenderBattleShout(Unit,event)
    Unit:CastSpell(6673)
    end


    function HordeDefender_LeaveCombat(Unit,event)
    Unit:RemoveEvents()
    end

    RegisterUnitEvent(9457,1,"HordeDefender_EnterCombat")
    RegisterUnitEvent(9457,2,"HordeDefender_LeaveCombat")



    That is a example of one of my scripts. If anyone can help me fix this one I could probably go back and just fix other ones without a problem. Any help will be greatly appreciated! Thanks!

    Need help scripting
  2. #2
    Blackboy0's Avatar Member
    Reputation
    70
    Join Date
    Nov 2007
    Posts
    377
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function HordeDefender_Combat(Unit, event)
     	Unit:SendChatMessage(12, 0, "For the Horde!")
    	Unit:RegisterEvent("HordeDefenderWhirlWind", 20000, 0)
    	Unit:RegisterEvent("HordeDefenderBattleShout", 100000, 0)
     end
     
     function HordeDefenderWhirlWind(Unit, event)
    	Unit:CastSpell(15576)
     end
     
     function HordeDefenderBattleShout(Unit, event)
    	Unit:CastSpell(6673)
     end
     
    function HordeDefender_LeaveCombat(Unit, event)
    	Unit:RemoveEvents()
    end
     
    RegisterUnitEvent(9457, 1, "HordeDefender_Combat")
    RegisterUnitEvent(9457, 2, "HordeDefender_LeaveCombat")
    Just some 'lil things I saw like spaces & everything And you had to OnCombats :P

  3. #3
    Gosko's Avatar Member
    Reputation
    3
    Join Date
    Mar 2008
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm I had the spacing in my script but I guess it didn't come up in the post I'll try this script out when I get home thanks!

  4. #4
    Gosko's Avatar Member
    Reputation
    3
    Join Date
    Mar 2008
    Posts
    53
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep It worked Now only if I could get the other ones to work They cast disarm but it seems to cast it on them selves

Similar Threads

  1. [Help] I need help creating a script.
    By jokerjokes in forum World of Warcraft Emulator Servers
    Replies: 23
    Last Post: 01-10-2008, 10:06 PM
  2. Simple Lua Script , not working need help!
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 12-30-2007, 02:06 PM
  3. Booty bay - Scripting **Need help**
    By Ganoran in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 11-05-2007, 04:26 PM
  4. GM - Command scripts -need help-
    By Ganoran in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 11-03-2007, 02:32 PM
  5. i need help with script, im a noob
    By orangegold in forum WoW UI, Macros and Talent Specs
    Replies: 2
    Last Post: 10-27-2007, 05:47 PM
All times are GMT -5. The time now is 03:45 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