Simple LUA Help. menu

Shout-Out

User Tag List

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

    Simple LUA Help.

    Hey there, I was wondering if anyone can help me with the LUA Script I've been working on, it's small and very simple but it's my first one appart from editing a teleporter.
    Thanks.

    Code:
    local mob = 87979
    
    function Mannoroth_OnEnterCombat(Unit, Event)
    	Unit:SendChatMessage(11, 0, "Who do you think you are? You come into my sanctuary, thinking you can destroy all that I am? I shall destroy you like that orc fool, Grom!")
    end
    
    function Mannoroth_OnLeaveCombat(Unit, Event)
            Unit:SendChatMessage(11, 0, "Flee! Feed me with your shame!")
    end
    
    function Mannoroth_OnKilledTarget(Unit, Event)
            Unit:SendChatMessage(11, 0, "DIE! Maggot, I'll kill you all with the power of the Legion!")
    end
    
    function Mannoroth_OnDied(Unit, Event)
            Unit:SendChatMessage(11, 0, "I cannot die, I shall not die! Avenge.. me... master!")
    end
    
    Unit:RegisterUnitEvent(mob, 1, "Mannoroth_OnCombat")
    Unit:RegisterUnitEvent(mob, 2, "Mannoroth_OnLeaveCombat")
    Unit:RegisterUnitEvent(mob, 3, "Mannoroth_OnKilledTarget")
    Unit:RegisterUnitEvent(mob, 4, "Mannoroth_OnDied")
    If anyone's a Lore Junky, I realise Mannoroth was killed, I couldn't resist adding him though.

    For some reason, when I attack the boss he doesn't say anything.
    Last edited by Omie; 04-10-2009 at 04:55 AM. Reason: Didn't actually tell people what I needed help with.

    Simple LUA Help.
  2. #2
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what do you need help with, i know i haven't touched LUA in a while but it doesn't look like there are any errors in that script
    Lunar Gaming - Reaching For The Stars

  3. #3
    Omie's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nothing happens on attacking the boss, it's like the script was never there.

  4. #4
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Look in the console of your arcemu-world.exe Does it say it loaded successfully? Also where you put "mob" in the registering the events. You need to put the NPCID there.

  5. #5
    Omie's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Waiting on the Admin to come back to me with an answer, I'm just the head dev.

  6. #6
    Padlockcode's Avatar Active Member
    Reputation
    44
    Join Date
    Dec 2006
    Posts
    116
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    make surre the npcid is correct

  7. #7
    finmere's Avatar Member
    Reputation
    3
    Join Date
    Jun 2007
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    dont you have to but it in the script folder as well for it to work and reset the server sorry if you have done that you never no ppl do miss stuff like this

  8. #8
    Omie's Avatar Member
    Reputation
    1
    Join Date
    Mar 2009
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The ID Is correct, it's in the script's folder, the server has been restart numerous of times, I just can't see what's going wrong.
    Last edited by Omie; 04-10-2009 at 06:24 AM. Reason: Typo

  9. #9
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    are you positive you have the Lua dll file? and did you figure out if its saying its loading correctly or not
    Lunar Gaming - Reaching For The Stars

  10. #10
    Dr. Livingstone's Avatar Member
    Reputation
    113
    Join Date
    Mar 2008
    Posts
    290
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    And you also need to make sure you config folder has Lua = 1

  11. #11
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Dr. Livingstone View Post
    And you also need to make sure you config folder has Lua = 1
    huh, didn't think about that one, nice catch Dr. Livingstone
    Lunar Gaming - Reaching For The Stars

  12. #12
    skidsh's Avatar Contributor
    Reputation
    220
    Join Date
    Aug 2006
    Posts
    147
    Thanks G/R
    25/136
    Trade Feedback
    0 (0%)
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Omie View Post

    Code:
    local mob = 87979
    
    function Mannoroth_OnEnterCombat(Unit, Event)
    	Unit:SendChatMessage(11, 0, "Who do you think you are? You come into my sanctuary, thinking you can destroy all that I am? I shall destroy you like that orc fool, Grom!")
    end
    
    function Mannoroth_OnLeaveCombat(Unit, Event)
            Unit:SendChatMessage(11, 0, "Flee! Feed me with your shame!")
    end
    
    function Mannoroth_OnKilledTarget(Unit, Event)
            Unit:SendChatMessage(11, 0, "DIE! Maggot, I'll kill you all with the power of the Legion!")
    end
    
    function Mannoroth_OnDied(Unit, Event)
            Unit:SendChatMessage(11, 0, "I cannot die, I shall not die! Avenge.. me... master!")
    end
    
    Unit:RegisterUnitEvent(mob, 1, "Mannoroth_OnCombat")
    Unit:RegisterUnitEvent(mob, 2, "Mannoroth_OnLeaveCombat")
    Unit:RegisterUnitEvent(mob, 3, "Mannoroth_OnKilledTarget")
    Unit:RegisterUnitEvent(mob, 4, "Mannoroth_OnDied")
    In the function declaration you call it "Mannoroth_OnEnterCombat" and when you register it you call it "Mannoroth_OnCombat"!

    :P I do that all the time to lol

    [P.S this is my first post and I joined in 2006 rofl!]
    Last edited by skidsh; 04-10-2009 at 06:50 PM.

  13. #13
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    +Rep skidsh

    you caught an error no one else was even thinking about when they were reviewing this : )
    Lunar Gaming - Reaching For The Stars

Similar Threads

  1. Need simple LUA Help
    By Chas3down in forum World of Warcraft General
    Replies: 0
    Last Post: 09-23-2016, 11:36 AM
  2. [Request or Help] Simple LUA Item
    By freeride474 in forum WoW EMU Questions & Requests
    Replies: 9
    Last Post: 04-11-2010, 10:06 AM
  3. Need help fixing some simple lua scripts :-)
    By kaato in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 04-10-2009, 06:11 PM
  4. Simple LUA Script Help
    By Wolfly in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 09-02-2008, 04:22 PM
  5. 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
All times are GMT -5. The time now is 12:01 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