[HELP] Can only have 1 of each Lua Type Custom menu

User Tag List

Results 1 to 5 of 5
  1. #1
    Lilltimmy's Avatar Member
    Reputation
    20
    Join Date
    Jun 2007
    Posts
    275
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [HELP] Can only have 1 of each Lua Type Custom

    Hello All here on MMowned, I Got a Problem...

    When i create a Custom Boss, Creating a Script to it; it works 100% Fine
    When i create one more Custom Boss, Creating a Script to it; It Doesn't work
    After i made 4 Bosses:



    1st Boss 100% Working
    2nd Boss... Wtfpwnd?
    3rd Boss... An *lol* Boss With 50% Scripts from teh 1st Boss, and 50% of the Scripts he should have... So its a 50, 50% Boss... Lols
    4th Boss... Nothing here too...

    Same with Portal:
    Code:
    function Teleporting_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (x, -xxxx.xx, -xxxx.xx, xxx.xx)
    end
    RegisterGameObjectEvent (ObjectID, 2, "Teleporting_onUse")
    When i create 1 Portal its working fine, when i create the next one... It works... but the first one doesn't work and when i create my 3rd one... All 3 Portals teleports me to the 3rd Location. Ohnoez.

    Here is my Boss Script (Empty, My Real one doesn't look like this)
    Code:
    function phase_1(pUnit, Event)
     if pUnit:GetHealthPct() < 90 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(SpellID)
      pUnit:SendChatMessage(12, 0, "Text Here")
      pUnit:RegisterEvent("Bossname_Nova",10000, 0)
      pUnit:RegisterEvent("phase_2",1000, 0)
     end
    end
     
    function phase_2(pUnit, Event)
     if pUnit:GetHealthPct() < 75 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(SpellID)
      pUnit:SendChatMessage(12, 0, "Text Here")
      pUnit:RegisterEvent("phase_3",1000, 0)
     end
    end
    
    function phase_3(pUnit, Event)
     if pUnit:GetHealthPct() < 70 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(SpellID)
      pUnit:SendChatMessage(12, 0, "Text Here")
      pUnit:RegisterEvent("phase_4",1000, 0)
     end
    end
     
    function phase_4(pUnit, Event)
     if pUnit:GetHealthPct() < 50 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(SpellID)
      pUnit:SendChatMessage(12, 0, "Text Here")
      pUnit:RegisterEvent("phase_5",1000, 0)
     end
    end
    
    function phase_5(pUnit, Event)
     if pUnit:GetHealthPct() < 30 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(SpellID)
      pUnit:SendChatMessage(12, 0, "Text Here")
      pUnit:RegisterEvent("phase_6",1000, 0)
     end
    end
    
    function phase_6(pUnit, Event)
     if pUnit:GetHealthPct() < 10 then
      pUnit:RemoveEvents();
      pUnit:FullCastSpell(SpellID)
      pUnit:SendChatMessage(12, 0, "Text Here")
     end
    end
    
    function Bossname_Death(Unit)
     pUnit:SendChatMessage(12, 0, "Text Here when boss dies")
     pUnit:RemoveEvents()
     end
    
    function Bossname_Start(pUnit, Event)
     pUnit:RegisterEvent("phase_1",1000, 0)
     pUnit:SendChatMessage(12, 0, "Text Here when enter combat")
     end
    
    function Bossname_Nova(Unit)
    Unit:CastSpell(SpellID)
    Unit:SendChatMessage(12, 0, "Text Here, cast spell every 10 Seconds")
    end
    
    function Bossname_OnLeaveCombat(Unit)
     pUnit:SendChatMessage(12, 0, "Text Here on leave combat")
     pUnit:RemoveEvents()
    end
    RegisterUnitEvent(SpawnID, 1, "Bossname_Start")
    RegisterUnitEvent(SpawnID, 2, "Bossname_OnLeaveCombat")
    RegisterUnitEvent(SpawnID, 3, "Bossname_Death")
    RegisterUnitEvent(SpawnID, 4, "Bossname_Nova")


    +rep To Someone who can help me use more then 2 of the same Lua Type. I want atleast 3 Portals and more then 5-10 Bosses :P
    Tried to create a portal with "SipeX Portal Creat0r" But if i choose "Teleport to Goldshire" And i change locations to somewhere else im still getting ported to Goldshire. Not Good :P


    EDIT: Gotta go now, Gotta read what you guys answered tammaraw. Thanks
    Last edited by Lilltimmy; 02-23-2008 at 02:48 PM.

    [HELP] Can only have 1 of each Lua Type Custom
  2. #2
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,646
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wha..
    You can use as many boss scripts and/or portal scripts as you want as far as I know
    I have many bosses, units and gameobjects in my scripts folder.
    Not sure what's your problem though, sorry : /


  3. #3
    Lilltimmy's Avatar Member
    Reputation
    20
    Join Date
    Jun 2007
    Posts
    275
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you using same Boss Scripts with different Spells/Texts or are you using different boss scripts?

  4. #4
    EcHoEs's Avatar lol why u mad
    Reputation
    374
    Join Date
    Sep 2006
    Posts
    1,646
    Thanks G/R
    3/1
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Different boss scripts.
    You cant have same boss script with different spells / texts, only 1 script per boss.
    If you want, I can show you a way of randomizing what boss says/casts :P


  5. #5
    *TraPStaR*'s Avatar Contributor
    Reputation
    164
    Join Date
    Aug 2007
    Posts
    275
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    rename the scripts they all have the same meaning in them

    like this for each boos script

    function phase_ to


    function phase_bossnameandphase


    function phase_newbossnameandphase


    and for the portals you need to change

    function Teleporting_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (x, -xxxx.xx, -xxxx.xx, xxx.xx)
    end
    RegisterGameObjectEvent (ObjectID, 2, "Teleporting_onUse")

    to

    function towerethisportalgoes_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (x, -xxxx.xx, -xxxx.xx, xxx.xx)
    end
    RegisterGameObjectEvent (ObjecID, 2, "
    towerethisportalgoes_onUse")
    Last edited by *TraPStaR*; 02-24-2008 at 07:55 AM.

Similar Threads

  1. Anyone can help me? I have an Problem.
    By roslarb in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 04-21-2008, 02:45 PM
All times are GMT -5. The time now is 07:12 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