Lua Templates menu

Shout-Out

User Tag List

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

    Lua Templates

    LUA TEMPLATES


    LUATemplates.rar Download gmtricks.servegame.org/luatemplates.rar

    This download has a few files for the intro scripter. It is a growing project I am working on, and any assistance or templates from players here would be greatly appreciated.

    This is designed to allow players to simply open a template, edit to their liking, save and play. Templates work together, ie if you Open the 5_phase template, and then open/copy/paste the kill/die template into the 5_phase template you now have mobs that react on different levels.

    Release 1.0

    ReadMe
    Commands
    5 phase template
    2 phase template
    Spin/random tepmlate
    On Kill / On Die template


    I will be adding more and more.

    Here is a snippit of how it looks,



    Spin Template

    Code:
    --[[
    This template allows for mobs to have the ability to say and cast random spells. Here we use the spin function that rolls a die. Landing on a value has the appropriate outcome.
    To add more possibilities, increase the (1, 7) to larger values, (1, 10) or (1, 20) and add more "if (spin == 13) then" functions. 
    Enjoy :D
    --]]
    
    function [[function]](Unit, Event)
      spin = math.random ([[lowest spin]], [[highest spin]])  [[for this sake, we used (1, 7)]]
    
          if (spin == 1) then
            Unit:SendChatMessage (11, 0, "[[NPC SAY]]")
            Unit:CastSpell([[SpellID]])
          elseif (spin == 2) then
           	Unit:SendChatMessage (11, 0, "[[NPC SAY]]")
            Unit:CastSpell([[SpellID]])
          elseif (spin == 3) then
           	Unit:SendChatMessage (11, 0, "[[NPC SAY]]")
    5 Phase Template

    Code:
    -- EDIT THE INFORMATION BETWEEN THE [[ ]]'S TO ACCOMODATE YOUR SERVER--
    --[[
    
    example
    
    function hogger_phase1(Unit, Event)
    	if Unit:GetHealthPct() < 50 theh
    		Unit:RemoveEvents
    		Unit:SendChatMessage(11, 0, "I wish I was a MURLOC")
    		Unit:CastSpell(118)
    		Unit:FullCastSpellOnTarget(118, Unit:GetClosestPlayer())
    		Unit:RegisterEvent("hogger_ph2", 1000, 0)
    end
    end
    
    --]]
    
    --5 PHASE TEMPLATE--
    
    function [[]](Unit, Event)
    	if Unit:GetHealthPct() < [[]] then
    		 Unit:RemoveEvents()
    		 Unit:SendChatMessage(11, 0, "[[]]")
    		 Unit:CastSpell([[]])
    		 Unit:SendChatMessage(11, 0, "[[]]")
    		 Unit:FullCastSpellOnTarget([[]], Unit:GetClosestPlayer())
    		 Unit:RegisterEvent("[[]]", 1000, 0)
    		 end
    end
    
    function [[]](Unit, Event)
    	if Unit:GetHealthPct() < [[]] then
    		 Unit:RemoveEvents()
    		 Unit:SendChatMessage(11, 0, "[[]]")
    		 Unit:CastSpell([[]])
    		 Unit:RegisterEvent("[[]]", 1200, 0)
    		 end
    end
    These are just sections of the template.
    To get what I have done so far, you can download the RAR file
    HERE gmtricks.servegame.org/luatemplates.rar

    Hope you enjoy.
    If you want to help in the project to make LUA scripting easier for everybody, type out your template (that hasnt been covered) and either post it here and I will update my realse, or email it to me at [email protected]

    Thanks for reading!
    Cairi
    As a Nation, we have AGREED to A GREED
    gmtricks.com

    Lua Templates

Similar Threads

  1. Need Lua Template Writers
    By mager1794 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 11-25-2009, 02:44 PM
  2. [Release] LUA Template.
    By Hellgawd in forum WoW EMU General Releases
    Replies: 17
    Last Post: 10-07-2008, 07:21 PM
  3. LuA Script Template! HighLighTed included
    By Strupantwn in forum WoW EMU Guides & Tutorials
    Replies: 8
    Last Post: 07-23-2008, 09:55 PM
  4. [Release] Holiday Releases # 1.5 - Custom Boss Template For Lua
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 02-14-2008, 07:14 AM
  5. [Release] Holiday Releases # 1.7 - Custom Aggro Template For Lua
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 02-12-2008, 10:44 AM
All times are GMT -5. The time now is 12:33 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