[LUA] KillaDude #2 menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 23
  1. #1
    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)

    [LUA] KillaDude #2

    Ok this is my second release, Took some hours to make it so I hope you all enjoy it^^
    If you have any doubts or issues, just ask them

    And please comment ^^



    Code:
    ---Warrior Phase (100 to 80 %)---
    
    function KillaDude_EnterCombat (pUnit, Event)
    pUnit:SendChatMessage(12, 0, "Are you ready to die?")
    pUnit:SetScale(2)
    pUnit:RegisterEvent("KillaDude_Sunder", 15000, 0)
    pUnit:RegisterEvent("KillaDude_HeroicStrike", 30000, 0)
    pUnit:RegisterEvent("KillaDude_Disarm", 35000, 0)
    pUnit:RegisterEvent("KillaDude_Cleave", 35000, 0)
    pUnit:RegisterEvent("KillaDude_Block", 10000, 0)
    pUnit:RegisterEvent("Rogue_Phase1", 1000, 0)
    end
    
    
    function KillaDude_Sunder (pUnit, Event)
    pUnit:FullCastSpellOnTarget(30901,pUnit:GetMainTank())
    end
    
    function KillaDude_HeroicStrike (pUnit, Event)
    pUnit:FullCastSpellOnTarget(53395, pUnit:GetMainTank())
    pUnit:FullCastSpellOnTarget(53395, pUnit:GetRandomPlayer(0))
    end
    
    function KillaDude_Disarm (pUnit, Event)
    pUnit:FullCastSpellOnTarget(15752, pUnit:GetMainTank())
    end
    
    function KillaDude_Cleave (pUnit, Event)
    pUnit:FullCastSpellOnTarget(31345, pUnit:GetRandomPlayer(0))
    end
    
    function KillaDude_Block (pUnit, Event)
    pUnit:CastSpell(37414)
    end
    
    
    
                        ---Rogue Phase (80 to 60 %)---
    
    
    
    function Rogue_Phase1 (pUnit, Event)
    if pUnit:GetHealthPct() < 80 then
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(12, 0, "Experience my Rogue form!")
    pUnit:SetModel(23529)
    pUnit:SetScale(2)
    pUnit:RegisterEvent("KillaDude_SinisterStrike", 5000, 0)
    pUnit:RegisterEvent("KillaDude_Eviscerate", 10500, 0)
    pUnit:RegisterEvent("KillaDude_KidneyShot", 24000, 0)
    pUnit:RegisterEvent("KillaDude_CloakOfShadows", 50000, 0)
    pUnit:RegisterEvent("Priest_Phase2", 1000, 0)
    end
    end
    
    function KillaDude_SinisterStrike (pUnit, Event)
    pUnit:FullCastSpellOnTarget(15667, pUnit:GetMainTank())
    end
    
    function KillaDude_Eviscerate (pUnit, Event)
    pUnit:FullCastSpellOnTarget(41177, pUnit:GetMainTank())
    pUnit:FullCastSpellOnTarget(41177, pUnit:GetRandomPlayer(0))
    end
    
    function KillaDude_KidneyShot(pUnit, Event)
    pUnit:FullCastSpellOnTarget(41389, pUnit:GetMainTank())
    end
    
    function KillaDude_CloakOfShadows(pUnit, Event)
    pUnit:CastSpell(39666)
    end
    
    
    
                        ---Priest Phase (60 to 40 %)---
    
    
    function Priest_Phase2 (pUnit, Event)
    if pUnit:GetHealthPct() < 60 then
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(12, 0, "This is my PRIEST FORM!!")
    pUnit:SetModel(23159)
    pUnit:SetScale(2)
    pUnit:CastSpell(60449)
    pUnit:RegisterEvent("KillaDude_Heal", 37000, 0)
    pUnit:RegisterEvent("KillaDude_MindBlast", 20000, 0)
    pUnit:RegisterEvent("KillaDude_Scream", 36000, 0)
    pUnit:RegisterEvent("KillaDude_ShadowPain", 60000, 0)
    pUnit:RegisterEvent("Mage_Phase3", 1000, 0)
    end
    end
    
    function KillaDude_Heal(pUnit, Event)
    pUnit:FullCastSpell(34119)
    end
    
    function KillaDude_MindBlast(pUnit, Event)
    pUnit:FullCastSpellOnTarget(60500, pUnit:GetMainTank())
    end
    
    function KillaDude_Scream(pUnit, Event)
    pUnit:FullCastSpellOnTarget(13704, pUnit:GetRandomPlayer(0))
    end
    
    function KillaDude_ShadowPain(pUnit, Event)
    pUnit:FullCastSpellOnTarget(41355, pUnit:GetMainTank())
    end
    
    
    
                        ---Mage Phase (40 to 20 %)---
    
    
    function Mage_Phase3 (pUnit, Event)
    if pUnit:GetHealthPct() < 40 then
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(12, 0, "You will die with the MAGE FORM")
    pUnit:SetModel(23154)
    pUnit:SetScale(2)
    pUnit:CastSpell(31256)
    pUnit:RegisterEvent("KillaDude_FrostBolt", 20000, 0)
    pUnit:RegisterEvent("KillaDude_Blizzard", 30000, 0)
    pUnit:RegisterEvent("KillaDude_ArcaneExplosion", 34000, 0)
    pUnit:RegisterEvent("KillaDude_IceBarrier", 30000, 0)
    pUnit:RegisterEvent("Redemption_Phase4", 1000, 0)
    end
    end
    
    function KillaDude_FrostBolt (pUnit, Event)
    pUnit:FullCastSpellOnTarget(29926, pUnit:GetMainTank())
    end
    
    function KillaDude_Blizzard (pUnit, Event)
    pUnit:FullCastSpellOnTarget(41382, pUnit:GetRandomPlayer(0))
    end
    
    function KillaDude_ArcaneExplosion (pUnit, Event)
    pUnit:FullCastSpellOnTarget(40425, pUnit:GetMainTank())
    end
    
    function KillaDude_IceBarrier (pUnit, Event)
    pUnit:CastSpell(35064)
    end
    
    
    
                        ---Redemption Phase (20 to 0 %)---
    
    
    function Redemption_Phase4 (pUnit, Event)
    if pUnit:GetHealthPct() < 20 then
    pUnit:RemoveEvents()
    pUnit:SendChatMessage(12, 0, "Feel the wrath of my Redemption FORM!!!")
    pUnit:SetModel(5233)
    pUnit:SetScale(2)
    pUnit:CastSpell(46367)
    pUnit:PlaySoundToSet(11810)
    pUnit:RegisterEvent("Killadude_LightningBolt", 30000, 0)
    pUnit:RegisterEvent("Killadude_ChaosBreath", 90000, 0)
    pUnit:RegisterEvent("Killadude_Renew", 40000, 0)
    end
    end
    
    function KillaDude_LightningBolt (pUnit, Event)
    pUnit:FullCastSpellOnTarget(36740, pUnit:GetMainTank())
    pUnit:FullCastSpellOnTarget(36740, pUnit:GetRandomPlayer(0))
    end
    
    function KillaDude_ChaosBreath (pUnit, Event)
    pUnit:CastSpell(36677)
    end
    
    function KillaDude_Renew (pUnit, Event)
    pUnit:FullCastSpell(37260)
    end
    
    
    
    function KillaDude_LeaveCombat (pUnit, Event)
    pUnit:RemoveEvents()
    end
    
    
    function KillaDude_KilledTarget (pUnit, Event)
    pUnit:SendChatMessage(12, 0, "Go to Hell!")
    end
    
    
    function KillaDude_Death (pUnit, Event)
    pUnit:SendChatMessage(12, 0, "Oh.... I'm sooo... cold!")
    pUnit:RemoveEvents()
    end
    
    
    RegisterUnitEvent(253690, 1, "KillaDude_EnterCombat")
    RegisterUnitEvent(253690, 2, "KillaDude_LeaveCombat")
    RegisterUnitEvent(253690, 3, "KillaDude_KilledTarget")
    RegisterUnitEvent(253690, 4, "KillaDude_Death")



    SQL


    Creature_names
    Code:
    entry,name,subname,info_str,Flags1,type,family,rank,unk4,spelldataid,male_displayid,female_displayid,male_displayid2,female_displayid2,unknown_float1,unknown_float2,civilian,leader
    253690,KillaDude,The Invincible One,,0,10,0,1,0,,23156,23156,23156,23156,1,1,0,
    Creature_spawns
    Code:
    entry,minlevel,maxlevel,faction,minhealth,maxhealth,mana,scale,npcflags,attacktime,attacktype,mindamage,maxdamage,rangedattacktime,rangedmindamage,rangedmaxdamage,mountdisplayid,equipmodel1,equipinfo1,equipslot1,equipmodel2,equipinfo2,equipslot2,equipmodel3,equipinfo3,equipslot3,respawntime,armor,resistance1,resistance2,resistance3,resistance4,resistance5,resistance6,combat_reach,bounding_radius,auras,boss,money,invisibility_type,death_state,walk_speed,run_speed,fly_speed,extra_a9_flags,spell1,spell2,spell3,spell4,spell_flags
    253690,73,73,16,17000000,17000000,500000,2,0,1750,0,2500,4500,0,0,0,0,47676,33490946,785,0,0,0,0,0,0,36000,0,0,0,0,0,0,0,2,1,0,1,400000,0,0,2,5,8,14,0,0,0,0,0,0

    NOW SOME SCREENS YAY









    Last edited by Edude; 10-31-2008 at 03:54 PM. Reason: Completion

    [LUA] KillaDude #2
  2. #2
    Leadx's Avatar Member
    Reputation
    3
    Join Date
    Oct 2007
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Good work on the script, looks good once again. I'll hope it's gonna be a massive fight on this one. Good work. Unfortunately can't +rep you.

  3. #3
    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 need your opinion, its important ^^

  4. #4
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Second time you forget to switch phases
    You have to use :GetHealthPct() and register the event

  5. #5
    Gunzarles's Avatar Active Member

    Reputation
    32
    Join Date
    Aug 2007
    Posts
    339
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Aznex View Post
    Second time you forget to switch phases
    You have to use :GetHealthPct() and register the event
    Maybe because he is using the same template with the same error

  6. #6
    Aznex's Avatar Contributor
    Reputation
    128
    Join Date
    Feb 2008
    Posts
    770
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by gunzarles View Post
    Maybe because he is using the same template with the same error
    I know Just decided to tell him this time.

  7. #7
    Gunzarles's Avatar Active Member

    Reputation
    32
    Join Date
    Aug 2007
    Posts
    339
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Aznex View Post
    I know Just decided to tell him this time.
    haha

    Anyway thanks for telling everyone about that Im still learning LUA and i would never have noticed that

  8. #8
    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)
    Edited and Corrected the Script

  9. #9
    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 have a question. Just tested it and it works, but I when I try to kill him, I miss ^^


  10. #10
    Etna's Avatar Banned
    Reputation
    20
    Join Date
    Sep 2007
    Posts
    349
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a Nice Script +rep x2 mate and a really nice work is this for Ascent ?

  11. #11
    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)
    Yeah it is

  12. #12
    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, fixed all the errors and added SQL and Screens

  13. #13
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Not trying to flame or anything, but I just don't like it. The speech just looks so.. corny, you know? And "KillaDude", just not the most realistic name for a mob. I'm sorry, but this script just bugs me :P

    On the good side, your contributing, you updated with a sql and screens which not everyone does even though they say they will, and you're putting in effert. +Rep

    Edit: Need to spread

  14. #14
    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)
    Made this just for fun, didnt care about the name lol

    But thanks for the +Rep Anyway ^^

  15. #15
    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)
    Okay, WHO THE **** ARE YOU AND WHERE ARE YOU STEALING MY SCRIPT IDEAS FROM?

    I only told 2 people on msn about my idea to create an Npc almost exactly the same as this, except for mine is like 10x better (Lmao) and I can't release due to it now been used as a world boss on a top 30 server that I am now a proud developer of.


    Onto the script evaluation:


    You have alot of 3.0.2 spells in there - Wont work.

    Fails due to the lack of randomisation, add in some Lua++ randoms into the percentages to choose class itself, so the fight is unique every time.

Page 1 of 2 12 LastLast

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 07:55 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