Can some one plz take a look at my lua ? menu

User Tag List

Results 1 to 13 of 13
  1. #1
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can some one plz take a look at my lua ?

    Heres the new one =)


    function Primal_Stomp(Unit)
    Unit:CastSpell(15214)
    end
    function Primal_Phase1(Unit, event)
    if Unit:GetHealthPct() < 95 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "This has gone on long enough!")
    Unit:SetModel(15214)
    Unit:SetScale(3)
    Unit:RegisterEvent("Primal_Stomp",8000, 0)
    Unit:RegisterEvent("Primal_Phase2",1000, 0)
    end
    end

    function Primal_Phase2(Unit, event)
    if Unit:GetHealthPct() < 75 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Baah time to die!")
    Unit:SetScale(5)
    Unit:CastSpell(1557
    Unit:RegisterEvent("Primal_Stomp",8000, 0)
    Unit:RegisterEvent("Primal_Phase3",1000, 0)
    end
    end

    function Primal_Phase3(Unit, event)
    if Unit:GetHealthPct() < 65 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Annoying Pests!")
    Unit:SetScale(7)
    Unit:RegisterEvent("Primal_Phase4",1000, 0)
    end
    end

    function Primal_Phase4(Unit, event)
    if Unit:GetHealthPct() <= 55 then
    Unit:RemoveEvents()
    Unit:SetScale(9)
    Unit:CastSpell(1557
    Unit:SendChatMessage(12, 0, "You shall all pay dearly!")
    Unit:RegisterEvent("Primal_Stomp",8000, 0)
    Unit:RegisterEvent("Primal_Phase5",1000, 0)
    end
    end

    function Primal_Phase5(Unit, event)
    if Unit:GetHealthPct() <= 40 then
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "My powers! I cannot control them anymore!")
    Unit:SetScale(11)
    Unit:CastSpell(15496)
    Unit:CastSpell(24255)
    Unit:SpawnCreature(100259, x, y, z, o, 17, 0);
    Unitespawn (1000, 0)
    end
    end
    function Primal_OnCombat(Unit, event)
    Unit:SendChatMessage(11, 0, "How dare you summon me!")
    end
    function Primal_OnKilledTarget(Unit)
    Unit:RemoveEvents()
    Unit:SendChatMessage(12, 0, "Haha i knew it!")
    end
    function Primal_OnKilledTarget(Unit)
    Unit:SendChatMessage(11, 0, "Conjoin with the nature!")
    end
    function Primal_Death(Unit)
    Unit:SendChatMessage(12, 0, "You cheated somehow :d I Shouldnt die!")
    Unit:RemoveEvents()
    end
    RegisterUnitEvent(100251, 1, "Primal_OnCombat")
    RegisterUnitEvent(100251, 2, "Primal_OnKilledTarget")
    RegisterUnitEvent(100251, 3, "Primal_Death")
    Last edited by Summer; 06-25-2008 at 03:10 PM.

    Can some one plz take a look at my lua ?
  2. #2
    latruwski's Avatar Banned
    Reputation
    647
    Join Date
    Dec 2006
    Posts
    2,456
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    mix up of Unit and pUnit maybe?

  3. #3
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm maybe will change it thx =)

  4. #4
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nope still no luck

  5. #5
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by traxxas View Post
    Can some one plz look at my lua is dosent work it load and all but i dont cast the spell


    function Allyflag_CastSpell (pUnit, Event, pMisc)
    end
    RegisterGameObjectEvent(99995, 2, "Allyflag_CastSpell")

    function Allyflag_CastSpell (pUnit)
    pUnit:CastSpellOnTarget(23335, Unit:GetClosestPlayer())
    end
    RegisterUnitEvent(99995, 6, "Allyflag_CastSpell")
    try changing the red
    and u might have the numbers marked in green mixed up when are you trying to get the spell cast?

  6. #6
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx will try

  7. #7
    Power of Illuminati's Avatar Contributor
    Reputation
    179
    Join Date
    May 2008
    Posts
    1,410
    Thanks G/R
    6/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Else, try to add Event to the function so it looks like this

    Code:
    function Allyflag_CastSpell(pUnit, Event)

  8. #8
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by traxxas View Post
    Can some one plz look at my lua is dosent work it load and all but i dont cast the spell


    function Allyflag_CastSpell (pUnit, Event, pMisc)
    end
    RegisterGameObjectEvent(99995, 2, "Object_CastSpell")

    function Allyflag_CastSpell (Unit)
    Unit:CastSpellOnTarget(23335, Unit:GetClosestPlayer())
    end
    RegisterUnitEvent(99995, 6, "Allyflag_CastSpell")
    Only the first declaration holds, so Allyflag_CastSpell does nothing. Why do you have an empty function anyways?

  9. #9
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Idk how to script gameobjects so i rly dont know what i am doing think some one could make it work ?

  10. #10
    jaspervdg's Avatar Member
    Reputation
    1
    Join Date
    Feb 2008
    Posts
    15
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    since when can Gameobjects cast spells? :P

  11. #11
    Battle Chicken's Avatar Member
    Reputation
    12
    Join Date
    Oct 2006
    Posts
    94
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by jaspervdg View Post
    since when can Gameobjects cast spells? :P
    Since people started scripting them to cast spells.

  12. #12
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this
    Code:
    function flaga_OnUse(pGameObject, Event, pMisc)
    pMisc:CastSpellOnTarget(23335, pMisc:GetClosestPlayer()) 
    end
    RegisterGameObjectEvent(99995, 2, "flaga_OnUse")

  13. #13
    Summer's Avatar Active Member
    Reputation
    16
    Join Date
    Sep 2007
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx =) btw gus got an new lua

Similar Threads

  1. CAN SOME ONE PLZ TELL ME WERE TO DOWNLOAD Ascent Web CMS v1.7
    By craigbett in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 03-10-2008, 06:17 PM
  2. Hey!can some one help me!?!
    By LJN in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 01-04-2008, 04:46 AM
  3. can some one help me out?
    By wowhacker101 in forum Community Chat
    Replies: 0
    Last Post: 01-22-2007, 07:56 AM
  4. Can some one send me teh link to mwcs
    By lazorzpew in forum World of Warcraft General
    Replies: 0
    Last Post: 11-24-2006, 01:36 AM
  5. can some one please help
    By Deminish in forum World of Warcraft General
    Replies: 6
    Last Post: 06-19-2006, 06:38 PM
All times are GMT -5. The time now is 01:23 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search