[Custom LUA] You Make It! menu

User Tag List

Results 1 to 11 of 11
  1. #1
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Custom LUA] You Make It!

    Hello all!

    Well this is my most recent release. I decided that I would make another stunning release now that my Finals are over. Oh why thanks for asking. Yes I did quite fine on them. 6 A's and 1 C (Stupid AP Chemistry). Alright, unlike all of my other releases which have been LUA NPC scripts, this one does not have values in it which allows for it to be edited by anybody. Any one can edit it EVEN NOOBS. Please leave me some comments and ideas on any other LUA Scripts you would like to see.

    Thanks and have a great day.
    Y2KSS66
    :wave::wave::wave:

    Here it is:
    Code:
    function world_OnEnterCombat(pUnit, Event)
      pUnit:SendChatMessage(12, 0, "what do you want him to say")
      pUnit:RegisterEvent("world_p1",1000, 0)
    end
    
    function world_p1(pUnit, Event)
     if pUnit:GetHealthPct() < 90 then
      pUnit:RemoveEvents()
      pUnit:SendChatMessage (12, 0, "what do you want him to say")
      pUnit:RegisterEvent("world_Spell1", casttime, 0)
      pUnit:RegisterEvent("world_Spell2", casttime, 0)
      pUnit:RegisterEvent("world_Spell3", casttime, 0)
      pUnit:RegisterEvent("world_p2",1000, 0)
     end
    end
    
    function world_p2(pUnit, Event)
     if pUnit:GetHealthPct() < 70 then
      pUnit:RemoveEvents()
      pUnit:SendChatMessage (12, 0, "what do you want him to say")
      pUnit:RegisterEvent("world_Spell1", casttime, 0)
      pUnit:RegisterEvent("world_Spell3", casttime, 0)
      pUnit:RegisterEvent("world_Spell5", casttime, 0)
      pUnit:RegisterEvent("world_p3",1000, 0)
     end
    end
    
    function world_p3(pUnit, Event)
     if pUnit:GetHealthPct() < 50 then
      pUnit:RemoveEvents()
      pUnit:SendChatMessage (12, 0, "what do you want him to say")
      pUnit:RegisterEvent("world_Spell4", casttime, 0)
      pUnit:RegisterEvent("world_Spell4", casttime, 0)
      pUnit:RegisterEvent("world_Spell3", casttime, 0)
      pUnit:RegisterEvent("world_p4",1000, 0)
     end
    end
    
    function world_p4(pUnit, Event)
     if pUnit:GetHealthPct() < 30 then
      pUnit:RemoveEvents()
      pUnit:SendChatMessage (12, 0, "what do you want him to say")
      pUnit:RegisterEvent("world_Spell2", casttime, 0)
      pUnit:RegisterEvent("world_Spell5", casttime, 0)
      pUnit:RegisterEvent("world_Spell6", casttime, 0)
      pUnit:RegisterEvent("boss_p5",1000, 0)
     end
    end
    
    function world_p5(pUnit, Event)
     if pUnit:GetHealthPct() < 10 then
      pUnit:RemoveEvents()
      pUnit:SendChatMessage (12, 0, "what do you want him to say")
      pUnit:RegisterEvent("world_Spell6", casttime, 0)
      pUnit:RegisterEvent("world_Spell6", casttime, 0)
      pUnit:RegisterEvent("world_Spell1", casttime, 0)
      pUnit:RegisterEvent("world_p6",1000, 0)
     end
    end
    
    function world_p6(pUnit, Event)
     if pUnit:GetHealthPct() < 5 then
      pUnit:RemoveEvents()
      pUnit:SendChatMessage (12, 0, "what do you want him to say")
      Choice=Math.Random(1, 6)
      if Choice==1 then
      pUnit:RegisterEvent("world_Spell1", casttime, 0)
      end
      if Choice==2 then
      pUnit:RegisterEvent("world_Spell2", casttime, 0)
      end
      if Choice==3 then
      pUnit:RegisterEvent("world_Spell3", casttime, 0)
      end
      if Choice==4 then
      pUnit:RegisterEvent("world_Spell4", casttime, 0)
      end
      if Choice==5 then
      pUnit:RegisterEvent("world_Spell5", casttime, 0)
      end
      if Choice==6 then
      pUnit:RegisterEvent("world_Spell6", casttime, 0)
      end
      pUnit:RegisterEvent("world_Died",1000, 0)
     end
    end
    
    function world_Spell1(pUnit, Event)
     pUnit:FullCastSpell(spellid, pUnit:GetMainTank())
    end
    
    function world_Spell2(pUnit, Event)
     pUnit:FullCastSpell(spellid, pUnit:GetMainTank())
    end
    
    function world_Spell1(pUnit, Event)
     pUnit:FullCastSpell(spellid, pUnit:GetRandomPlayer(0))
    end
    
    function world_Spell3(pUnit, Event)
     pUnit:FullCastSpell(spellid, pUnit:GetRandomPlayer(0))
    end
    
    function world_Spell4(pUnit, Event)
     pUnit:FullCastSpell(spellid, pUnit:GetRandomPlayer(0))
    end
    
    function world_Spell5(pUnit, Event)
     pUnit:FullCastSpell(spellid, pUnit:GetMainTank())
    end
    
    function world_Spell6(pUnit, Event)
     pUnit:FullCastSpell(spellid, pUnit:GetRandomPlayer(0))
    end
    
    function world_Spell7(pUnit, Event)
     pUnit:FullCastSpell(spellid, pUnit:GetRandomPlayer(0))
    end
    
    function world_OnKill(pUnit, Event)
     pUnit:RemoveEvents()
     pUnit:SendChatMessage(12, 0, "what do you want him to say")
    end
    
    function world_Died(pUnit, Event)
     pUnit:RemoveEvents()
     if pUnit:GetFaction() = 1801
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration)
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration) 
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration)
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration)
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration)
     end
     if pUnit:GetFaction() = 1802
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration)
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration) 
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration)
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration)
      pUnit:SpawnCreature(entryID, x, y, z, o, faction, duration)
     end
     pUnit:SendChatMessage(12, 0, "what do you want him to say")
    end
    
    function world_OnLeaveCombat(pUnit, Event)
     pUnit:RemoveEvents()
     pUnit:SendChatMessage(12, 0, "what do you want him to say") 
    end
    
    RegisterUnitEvent(95438, 1, "world_OnEnterCombat")
    RegisterUnitEvent(95438, 2, "world_OnLeaveCombat")
    RegisterUnitEvent(95438, 3, "world_OnKill")
    RegisterUnitEvent(95438, 4, "world_Died")
    just copy the stuff in code tags and place it in a test file named "world.lua" without the "". Hope this helps. Here is a guide on how to create an npc to go along with this customizable boss script.

    http://www.mmowned.com/forums/ascent...ustom-npc.html

    credits:
    MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides - View Profile: Forgerai -- for guide
    MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides - View Profile: y2kss66 -- for script
    MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides - View Profile: Nymphx -- for help in understanding the Math.Random syntax.

    Thank you all and enjoy!!

    [Custom LUA] You Make It!
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Nice But it is still a lot easier imo for people to write from scratch. For example there editing the text and accidently delete one of the " by mistake. +Rep

  3. #3
    Link_S's Avatar Member
    Reputation
    125
    Join Date
    Dec 2008
    Posts
    293
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I can almost understand it :P, +Rep

  4. #4
    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)
    It looks quite nice for people to understand Lua, but not necesarrily for a script template. I like the idea and thanks for recognition . +Rep

  5. #5
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the responses. I understand what you mean Stoneharry. No problem Nymphx after all I did study your script. yes! it is good if you can almost understand it. well at least if you are not very good with lua.

    Thanks for the replies.

  6. #6
    sasoritail's Avatar Contributor
    Reputation
    161
    Join Date
    Sep 2008
    Posts
    655
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hmmm could be usefull.
    But cant understand LUA fully gonna learn a bit
    +Rep for nice threath
    It's been a while

  7. #7
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks! and good luck!

  8. #8
    bsod-staff14's Avatar Member
    Reputation
    35
    Join Date
    Nov 2008
    Posts
    443
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Once again wonderful bro!
    Immortal GamerZ Under Development!

  9. #9
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot bsod. That means alot! Any other ideas for scripts?

  10. #10
    ~Jagris's Avatar Contributor
    Reputation
    154
    Join Date
    Apr 2007
    Posts
    1,479
    Thanks G/R
    2/2
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice job, good idea.


  11. #11
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the positive comments anyone got anymore ideas for me to script?

Similar Threads

  1. How do you make a custom graveyard using Mangos?
    By Hinata_92 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-26-2008, 12:18 AM
  2. how do you make custom patches???
    By lolzz in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 07-07-2008, 12:28 PM
  3. How do you make Custom's
    By Bloodsin in forum World of Warcraft Emulator Servers
    Replies: 5
    Last Post: 02-02-2008, 01:00 AM
  4. How do you make a custom NPC? - Mangos
    By regnar in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 12-01-2007, 11:17 AM
  5. How do you make custom spells?
    By Aircon in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 09-22-2007, 10:28 PM
All times are GMT -5. The time now is 05:03 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