[LUA] KillaDude #2 menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 23 of 23
  1. #16
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I hope you are joking about me stealing your work...

    And thanks for the evaluation, i will update the script

    [LUA] KillaDude #2
  2. #17
    Nymphx's Avatar Active Member
    Reputation
    83
    Join Date
    Sep 2008
    Posts
    212
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, honestly.

    The first 2 scripts I made were almost exactly the same ideas as your 2. Conincidence?

  3. #18
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey, this script was totally made by me now

  4. #19
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Updated

  5. #20
    Nymphx's Avatar Active Member
    Reputation
    83
    Join Date
    Sep 2008
    Posts
    212
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seeing as I don't hate you so much now, heres that math.random I was talking to you about:

    Code:
    function NPCNAME_ClassPick(pUnit, Event)
    pUnit:RemoveEvents()
    Choice=math.random(1, 8)
    if Choice==1 then
    pUnit:SendChatMessage(14, 0, "Feel the power of the Shaman!")
    pUnit:RegisterEvent("NPCNAME_Shaman", 1000, 0)
    pUnit:CastSpellOnTarget(34353,pUnit:GetRandomPlayer(0))
    end 
    if Choice==2 then
    pUnit:SendChatMessage(14, 0, "Feel the power of the Paladin!")
    pUnit:RegisterEvent("NPCNAME_Paladin", 1000, 0)
    pUnit:CastSpellOnTarget(27174,pUnit:GetRandomPlayer(0))
    end
    if Choice==3 then
    pUnit:SendChatMessage(14, 0, "Feel the power of the Druid!")
    pUnit:RegisterEvent("NPCNAME_Druid", 1000, 0)
    pUnit:CastSpell(33763)
    pUnit:CastSpell(33763)
    pUnit:CastSpell(33763)
    end
    if Choice==4 then
    pUnit:SendChatMessage(14, 0, "Feel the power of the Priest!")
    pUnit:RegisterEvent("NPCNAME_Priest", 1000, 0)
    pUnit:CastSpellOnTarget(25364,pUnit:GetRandomPlayer(0))
    end
    if Choice==5 then
    pUnit:SendChatMessage(14, 0, "Feel the power of the Rogue!")
    pUnit:RegisterEvent("NPCNAME_Rogue", 1000, 0)
    pUnit:CastSpellOnTarget(36554,pUnit:GetRandomPlayer(0))
    pUnit:CastSpell(43547)
    end
    if Choice==6 then
    pUnit:SendChatMessage(14, 0, "Feel the power of the Warrior!")
    pUnit:RegisterEvent("NPCNAME_Warrior", 1000, 0)
    pUnit:CastSpellOnTarget(25264,pUnit:GetMainTank())
    end
    if Choice==7 then
    pUnit:SendChatMessage(14, 0, "Feel the power of the Warlock!")
    pUnit:RegisterEvent("NPCNAME_Warlock", 1000, 0)
    pUnit:CastSpell(27212)
    end
    if Choice==8 then
    pUnit:SendChatMessage(14, 0, "Feel the power of the Mage!")
    pUnit:RegisterEvent("NPCNAME_Mage", 1000, 0)
    pUnit:CastSpellOnTarget(6131,pUnit:GetMainTank())
    end
    end
    Thats how to do it in Lua

    Heres how to do it in Lua++, this allows you to combine it as a percentage:

    Code:
    
    function Phase1(pUnit, Event)
    if pUnit:GetHealthPct() <=80 then
    pUnit:RemoveEvents();
    local RandomPick = math.random(1,2)
    if RandomPick == 1 then
    pUnit:SendChatMessage(14, 0, "Feel my might!")
    pUnit:RegisterEvent("RawrBunny", 1000, 0)
    end
    end
    
    if RandomPick == 2 then
    pUnit:RemoveEvents();
    pUnit:SendChatMessage(14, 0, "Time to die!")
    pUnit:SetScale(2)
    pUnit:RegisterEvent("Phase2", 1000, 0)
    end
    Not too sure about that Lua++ part, don't use it frequent enough to be confident with it.
    Last edited by Nymphx; 10-31-2008 at 05:19 PM.

  6. #21
    Herleybob's Avatar Contributor
    Reputation
    178
    Join Date
    Jul 2007
    Posts
    663
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol the sql script just shows how that table is layed out. you cannot execute that. This is very hard for beginners to use.

    Nom Nom Nom :P

  7. #22
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Nymphx, im gonna make good use of that script ^^

  8. #23
    Pimpin_N0ob's Avatar Active Member
    Reputation
    42
    Join Date
    Feb 2007
    Posts
    424
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would agree with stoneharry about the speech and the name.

    But other then that, good job +2 rep

Page 2 of 2 FirstFirst 12

Similar Threads

  1. [Guide] Lua Scripting Guide is here [Updating]
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 93
    Last Post: 11-04-2008, 06:56 PM
  2. New LUA Scripts
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 8
    Last Post: 11-26-2007, 05:58 PM
  3. Lua Ascent Script Documentation
    By latruwski in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 11-26-2007, 12:42 PM
  4. LUA Refrences
    By 777devil777 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 11-22-2007, 08:09 PM
All times are GMT -5. The time now is 11:21 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