Lua scripts problem menu

User Tag List

Results 1 to 13 of 13
  1. #1
    Mr.Ice.Cold's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2007
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua scripts problem

    My Lua scripts are not working correctly...all they do is like Copy off one LUA..such as I have an npc named bob and he says Hi! im bob...well these other npcs with completely different Lua's say Hi! im bob.

    Can any one help?

    Lua scripts problem
  2. #2
    Spartansp's Avatar Member
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mmm thats because you didnt edit your lua script or the register event

  3. #3
    Mr.Ice.Cold's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2007
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by spartansp View Post
    mmm thats because you didnt edit your lua script or the register event
    Can you Explain more please :confused:


    Edit; If i had bossphase1 on one Lua and then Bossphase1 on another will it Run on the first Bossphase1 i made?
    Last edited by Mr.Ice.Cold; 02-01-2008 at 06:25 PM.

  4. #4
    Spartansp's Avatar Member
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    post here your lua scripts so i can check what are you doing wrong mate

  5. #5
    Mr.Ice.Cold's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2007
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Boss_Phase3(Unit, event)
    if Unit:GetHealthPct() < 85 then
    Unit:CastSpell(30852)
    Unit:RegisterEvent("Boss_Nova1",10000, 0)
    Unit:RegisterEvent("Boss_Phase4",1000, 0)
    end
    end
    function Boss_Nova1(Unit)
    Unit:CastSpell(30852)
    Unit:SendChatMessage(12, 0, "I will make you my slave!")
    end
    function Boss_Phase4(Unit, event)
    if Unit:GetHealthPct() < 10 then
    Unit:RemoveEvents()
    Unit:CastSpell(23537)
    Unit:SendChatMessage(12, 0, "Time to DIE!")
    end
    end
    function Boss_OnCombat(Unit, event)
    Unit:RegisterEvent("Boss_Phase3",1000, 0)
    end
    RegisterUnitEvent(222997, 1, "Boss_OnCombat")

  6. #6
    Spartansp's Avatar Member
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    all your script is messed up man....

  7. #7
    Mr.Ice.Cold's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2007
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by spartansp View Post
    all your script is messed up man....
    That uhh helped..

  8. #8
    Spartansp's Avatar Member
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    lol....ok try looking at my script:
    here is download link try to make things more easy:
    Filebeam - Free Fast File Hosting

  9. #9
    Mr.Ice.Cold's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2007
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by spartansp View Post
    lol....ok try looking at my script:
    here is download link try to make things more easy:
    Filebeam - Free Fast File Hosting
    thanks a lot

  10. #10
    Spartansp's Avatar Member
    Reputation
    644
    Join Date
    Sep 2007
    Posts
    1,803
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    no problem mate

  11. #11
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    some of the ends i think need to be taken out


  12. #12
    Mr.Ice.Cold's Avatar Active Member
    Reputation
    26
    Join Date
    Apr 2007
    Posts
    166
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here are two Scripts ..they both run over each other..but they work .. any way to fix?

    Code:
    function phase_1(pUnit, Event)
     if pUnit:GetHealthPct() < 100 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(42477)
      pUnit:SendChatMessage(12, 0, "Here Take this Heal!")
      pUnit:RegisterEvent("phase_2",1000, 0)
     end
    end
     
    function phase_2(pUnit, Event)
     if pUnit:GetHealthPct() < 25 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(41455)
      pUnit:SendChatMessage(12, 0, "The gods have given me great Heals!")
     end
    end
    
    function boss_start(pUnit, Event)
     pUnit:RegisterEvent("phase_1",1000, 0)
    end
    RegisterUnitEvent(222989, 1, "boss_start")
    Code:
    function phase_1(pUnit, Event)
     if pUnit:GetHealthPct() < 70 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(40325)
      pUnit:SendChatMessage(12, 0, "I will end you.")
      pUnit:RegisterEvent("phase_2",1000, 0)
     end
    end
     
    function phase_2(pUnit, Event)
     if pUnit:GetHealthPct() < 25 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(37487)
      pUnit:SendChatMessage(12, 0, "You will never stop me!")
     end
    end
    
    function boss_start(pUnit, Event)
     pUnit:RegisterEvent("phase_1",1000, 0)
    end
    RegisterUnitEvent(222991, 1, "boss_start")
    3

  13. #13
    King Shaun's Avatar Member
    Reputation
    419
    Join Date
    Dec 2007
    Posts
    1,305
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hehe, the best thing is to work off Spartan's script.
    It will help you to learn better!


    Threads of the Week: [Errage] [Blizzard] [Rapidshare]

Similar Threads

  1. Lua script problem
    By robinelitenn in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 10-22-2009, 11:27 PM
  2. LUA script problem, teleporter.
    By Romis in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-02-2008, 04:32 PM
  3. LUA script problem
    By uberhak3r in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 07-09-2008, 06:32 PM
  4. [Help] Fairly large Lua script problem
    By Muruk in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-16-2008, 09:03 PM
  5. LUA Scripting Problem
    By Knife in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 03-10-2008, 02:00 PM
All times are GMT -5. The time now is 06:43 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