LUA Help menu

User Tag List

Thread: LUA Help

Results 1 to 5 of 5
  1. #1
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    LUA Help

    function boc_phase1 (pUnit, Event)
    pUnit:GetHealthPct() <= 60 then
    pUnit:SendChatMessage (0, 0, "Haha! You think you can beat me, You scrub!")
    end
    RegisterUnitEvent (90003, 1, "boc_phase1")
    function boc_phase2 (pUnit, Event)
    if pUnit:GetHealthPct() <= 30
    pUnit:SendChatMessage (0, 0, "You may have severely damaged me, but I will not fail!")
    end
    RegisterUnitEvent (90003, 1, "boc_phase2")

    function boc_spell1 (pUnit, Event)
    if pUnit:GetHealthPct() <= 25
    pUnit:CastSpell(11)
    end
    RegisterUnitEvent (90003, 1, "boc_spell1")
    function boc_model (pUnit, Event)
    pUnit:GetHealthPct() <= 15
    pUnit:SetModel(13210)
    end
    RegisterUnitEvent (90003, 1, "boc_model")
    function boc_OnKilled (pUnit, Event)
    pUnit:SendChatMessage(0, 0, "You have somehow defeated me! How could of this happened? The FireMane's will keep coming even with my death!")
    end
    RegisterUnitEvent (90003, 4, "boc_OnKilled")


    What is wrong with this script? there were a couple errors.
    Database Evolved Developer:wave:

    LUA Help
  2. #2
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no ideas?=\
    Database Evolved Developer:wave:

  3. #3
    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)
    Heres some that I can find just from looking at it. Care to give me the actual error?

    Code:
    function boc_phase1 (pUnit, Event)
          if pUnit:GetHealthPct() <= 60 then
          pUnit:SendChatMessage (0, 0, "Haha! You think you can beat me, You scrub!")
    end
    RegisterUnitEvent (90003, 1, "boc_phase1")
    
    function boc_phase2 (pUnit, Event)
          if pUnit:GetHealthPct() <= 30
          pUnit:SendChatMessage (0, 0, "You may have severely damaged me, but I will not fail!")
    end
    RegisterUnitEvent (90003, 1, "boc_phase2")
     
    function boc_spell1 (pUnit, Event)
       if pUnit:GetHealthPct() <= 25
       pUnit:CastSpell(11)
    end
    RegisterUnitEvent (90003, 1, "boc_spell1")
    
    function boc_model (pUnit, Event)
      if pUnit:GetHealthPct() <= 15
         pUnit:SetModel(13210)
    end
    RegisterUnitEvent (90003, 1, "boc_model")
    
    function boc_OnKilled (pUnit, Event)
         pUnit:SendChatMessage(0, 0, "You have somehow defeated me! How could of this happened? The FireMane's will keep coming even with my death!")
    end
    RegisterUnitEvent (90003, 4, "boc_OnKilled")

    I live in a shoe

  4. #4
    nickelo's Avatar Active Member
    Reputation
    56
    Join Date
    Aug 2007
    Posts
    463
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It said expected <= at ()
    Database Evolved Developer:wave:

  5. #5
    kreegoth's Avatar Contributor
    Reputation
    122
    Join Date
    Jun 2008
    Posts
    810
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Take out the = signs.. leave it like this

    if pUnit:GetHealthPct() < 15

Similar Threads

  1. [Help] Need LUA help? Post here!
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 10-03-2010, 01:18 PM
  2. [Help] i need Lua help with this script...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 03-03-2008, 03:45 PM
  3. LUA help
    By stoneharry in forum World of Warcraft Emulator Servers
    Replies: 16
    Last Post: 02-25-2008, 03:27 PM
  4. Lua help
    By reconz in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 02-18-2008, 07:03 PM
  5. Lua help
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-04-2008, 12:17 PM
All times are GMT -5. The time now is 06:44 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