First Lua Boss Script menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    Confucius's Avatar Super Moderator Don't Look Back in Anger

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1414
    Join Date
    Oct 2007
    Posts
    2,793
    Thanks G/R
    298/307
    Trade Feedback
    7 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    First Lua Boss Script

    Well, I made a Lua teleporter to all world locations with ease, but I can't seem to get my boss script to work... I'm bad at this stuff so here it is, I know it looks wrong but I can't seem to fix it, the NPC attacks but does not say anything or cast any spells... anyway here is the Lua:

    Code:
    function Hapkidomaster_OnCombat(pUnit, event)
    
    pUnit:SendChatMessage(42, 0, “You dare think you can defeat Hapkidomaster?! Ruler of everything!)
    end
    
    RegisterUnitEvent(100000, 1, “SendChatMessage_OnCombat”)
    
    
    pUnit:FullCastSpellOnTarget(59971, pUnit:GetClosestPlayer())
    end
    
    pUnit:RegisterEvent(“FullCastSpellOnTarget”, 10000)
    
    
    pUnit:SpawnCreature(100001, 4650.192383, -3716.066895, 950.015442)
    end
    pUnit:SpawnCreature(100002, 4661.782227, -3716.640137, 949.540527)
    end
    pUnit:SpawnCreature(100006, 4659.094727, -3720.939453, 949.002991)
    end
    
    RegisterUnitEvent(100000, 1, “Hapkidomaster_OnCombat”)
    
    function Hapkidomaster_OnDeath(pUnit, event)
    pUnit:SendChatMessage(42, 0, “How...how..c...can...this...be?!)
    end
    
    RegisterUnitEvent(100000, 4, “Hapkidomaster_OnDeath”)


    If you help +Repz and thanks!!!:wave:

    First Lua Boss Script
  2. #2
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The script is... very odd. Here try this one.

    Code:
    function Hapkidomaster_OnCombat(pUnit, Event)
    	pUnit:SendChatMessage(14, 0, "You dare think you can defeat Hapkidomaster?! Ruler of everything!")
    	pUnit:SpawnCreature(100001, 4650.192383, -3716.066895, 950.015442)
    	pUnit:SpawnCreature(100002, 4661.782227, -3716.640137, 949.540527)
    	pUnit:SpawnCreature(100006, 4659.094727, -3720.939453, 949.002991)
    	pUnit:RegisterEvent(“Hapkidomaster_Spell1”, 10000, 0) 
    end
    
    function Hapkidomaster_Spell1(pUnit, Event)
    	pUnit:FullCastSpellOnTarget(59971, pUnit:GetClosestPlayer())
    end
    
    function Hapkidomaster_OnDeath(pUnit, Event)
    	pUnit:RemoveEvents()
    	pUnit:SendChatMessage(14, 0, "How...how..c...can...this...be?!")
    end
    
    function Hapkidomaster_OnLeaveCombat(pUnit, Event)
    	pUnit:RemoveEvents() 
    end
    
    function Hapkidomaster_OnKilledTarget(pUnit, Event)
    end
    
    RegisterUnitEvent(100000, 1, “Hapkidomaster_OnCombat”)
    RegisterUnitEvent(100000, 2, "Hapkidomaster_OnLeaveCombat")
    RegisterUnitEvent(100000, 3, "Hapkidomaster_OnKilledTarget")
    RegisterUnitEvent(100000, 4, “Hapkidomaster_OnDeath”)
    Last edited by Linkn; 06-02-2009 at 09:23 PM.

  3. #3
    Confucius's Avatar Super Moderator Don't Look Back in Anger

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1414
    Join Date
    Oct 2007
    Posts
    2,793
    Thanks G/R
    298/307
    Trade Feedback
    7 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    hehe ty... I know i'm very odd also +repz

  4. #4
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I edited it again, sorry, forgot a register. But it was fine except you were registering the wrong functions and just in the wrong places

  5. #5
    Confucius's Avatar Super Moderator Don't Look Back in Anger

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1414
    Join Date
    Oct 2007
    Posts
    2,793
    Thanks G/R
    298/307
    Trade Feedback
    7 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    didn't work... he didn't even talk maybe I need to remake npc? or something


    Edit: oh XD kk ty

    Edit2: didn't work... maybe I need to remake npc not on WoW V but inside database?
    Last edited by Confucius; 06-02-2009 at 08:51 PM.

  6. #6
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay if it doesnt work the next time make sure the registers match the npcs ID.


    EDIT:

    RegisterUnitEvent(100000, 1, “Hapkidomaster_OnCombat”)
    RegisterUnitEvent(100000, 2, "Hapkidomaster_OnLeaveCombat")
    RegisterUnitEvent(100000, 3, "Hapkidomaster_OnKilledTarget")
    RegisterUnitEvent(100000, 4, “Hapkidomaster_OnDeath”)

    Make sure that number is correct and corresponds to your NPC's ID.
    Last edited by Linkn; 06-02-2009 at 08:52 PM.

  7. #7
    Confucius's Avatar Super Moderator Don't Look Back in Anger

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1414
    Join Date
    Oct 2007
    Posts
    2,793
    Thanks G/R
    298/307
    Trade Feedback
    7 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    IDs do match

    they do, could it be because I made him as a mob on WoW V? it didn't affect my teleporter...
    Last edited by Confucius; 06-02-2009 at 08:54 PM.

  8. #8
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright what emu are you using?


    EDIT: I don't think it matters that its wow-v, I use wow-v for most of my Lua stuff.

  9. #9
    Confucius's Avatar Super Moderator Don't Look Back in Anger

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1414
    Join Date
    Oct 2007
    Posts
    2,793
    Thanks G/R
    298/307
    Trade Feedback
    7 (100%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    arcemu, do u have msn or something we could talk on easier?

  10. #10
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Edited out. Don't want spam
    Last edited by Linkn; 06-02-2009 at 09:03 PM.

  11. #11
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Hapkidomaster_OnCombat(pUnit, event)
        pUnit:SendChatMessage(42, 0, “You dare think you can defeat Hapkidomaster?! Ruler of everything!")
        pUnit:SpawnCreature(100001, 4650.192383, -3716.066895, 950.015442)
        pUnit:SpawnCreature(100002, 4661.782227, -3716.640137, 949.540527)
        pUnit:SpawnCreature(100006, 4659.094727, -3720.939453, 949.002991)
        pUnit:RegisterEvent(“Hapkidomaster_Spell1”, 10000)
    end
    
    function Hapkidomaster_Spell1(pUnit, event)
        pUnit:FullCastSpellOnTarget(59971, pUnit:GetClosestPlayer())
    end
    
    function Hapkidomaster_OnDeath(pUnit, event)
        pUnit:RemoveEvents()
        pUnit:SendChatMessage(42, 0, “How...how..c...can...this...be?!")
    end
    
    function Hapkidomaster_OnLeaveCombat(pUnit, Event)
        pUnit:RemoveEvents() 
    end
    
    RegisterUnitEvent(100000, 1, “Hapkidomaster_OnCombat”)
    RegisterUnitEvent(100000, 2, "Hapkidomaster_OnLeaveCombat")
    RegisterUnitEvent(100000, 4, “Hapkidomaster_OnDeath”)
    You were missing ' " ' at the end of your strings. And I'm not sure why you would register a OnKilledTarget function that doesn't do anything..

    I live in a shoe

  12. #12
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Whatcha do soundead? Looks the same.

    EDIT: Forgot the ending quotes.

  13. #13
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I said what I did :P

    I live in a shoe

  14. #14
    Linkn's Avatar Contributor
    Reputation
    90
    Join Date
    Mar 2009
    Posts
    296
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Damn, i'm tired, missed that completely. I just put it there to be safe so he could improve upon if he wanted.

  15. #15
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah ok, well don't give him the wrong idea that he 'needs' to have it there, because there really isn't any point of an empty function. :P

    I live in a shoe

Page 1 of 2 12 LastLast

Similar Threads

  1. [Lua] My first own Boss Script does not work...
    By Dark Guild in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 04-11-2010, 09:53 PM
  2. [Release] First LUA boss
    By Spartansp in forum World of Warcraft Emulator Servers
    Replies: 37
    Last Post: 02-25-2008, 08:27 PM
  3. LUA Boss Script Help
    By neurothymia in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 02-05-2008, 02:57 PM
  4. [RELEASE] My First Lua Boss xD
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 01-25-2008, 01:38 PM
  5. Lua Boss Script Problems!!
    By blah7 in forum World of Warcraft Emulator Servers
    Replies: 14
    Last Post: 01-22-2008, 08:59 PM
All times are GMT -5. The time now is 02:27 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