Need Lua Template Writers menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need Lua Template Writers

    I'm adding a new feature to Lunar Scriptor
    Its going to be precreated Lua Templates
    I'm going to eventually make a template file type called '.ltmp'

    Requirements On All Templates
    1. There must be a '$' seperating the properties and the script
    2. Creature Name must always be the very first property
    3. Always make a comment listing the properties and in brackets their corresponding number(Its good for testing)
    (maybe more to come)

    Its very simple Heres the format
    Code:
    Creature Name
    Spell Id
    Spell Time
    Creature Id
    FunctionLabel
    Code:
    --[[
    Creature Name: {1}
    Spell Id: {2}
    Spell Time: {3}
    Creature Id: {4}
    FunctionLabel: {5}
    ]]
     
    -- {1}
     
    function {5}_OnEnterCombat(pUnit,Event)
        pUnit:RegisterEvent("{5}_SpellCast", {3}, 0)
    end
     
    function {5}_SpellCast(pUnit,Event)
        pUnit:FullCastSpellOnTarget({2},pUnit:GetClosestPlayer())
    end
     
    function {5}_OnLeaveCombat(pUnit,Event)
        pUnit:RemoveEvents()
    end
     
    function {5}_OnDied(pUnit,Event)
        pUnit:RemoveEvents()
    end
     
    RegisterUnitEvent({4}, 1, "{5}_OnEnterCombat")
    RegisterUnitEvent({4}, 2, "{5}_OnLeaveCombat")
    RegisterUnitEvent({4}, 4, "{5}_OnDied")
     
    --[[ 
    Created through Lunar Scriptor SingleSpell Mob Template
    ]]
    Each line in the first corresponds to the bracketed number in the second
    Together in the file type they should be like this
    Code:
    Creature Name
    Spell Id
    Spell Time
    Creature Id
    FunctionLabel(NoSpaces)
    $
    --[[
    Creature Name: {1}
    Spell Id: {2}
    Spell Time: {3}
    Creature Id: {4}
    FunctionLabel: {5}
    ]]
     
    -- {1}
     
    function {5}_OnEnterCombat(pUnit,Event)
        pUnit:RegisterEvent("{5}_SpellCast", {3}, 0)
    end
     
    function {5}_SpellCast(pUnit,Event)
        pUnit:FullCastSpellOnTarget({2},pUnit:GetClosestPlayer())
    end
     
    function {5}_OnLeaveCombat(pUnit,Event)
        pUnit:RemoveEvents()
    end
     
    function {5}_OnDied(pUnit,Event)
        pUnit:RemoveEvents()
    end
     
    RegisterUnitEvent({4}, 1, "{5}_OnEnterCombat")
    RegisterUnitEvent({4}, 2, "{5}_OnLeaveCombat")
    RegisterUnitEvent({4}, 4, "{5}_OnDied")
     
    --[[ 
    Created through Lunar Scriptor SingleSpell Mob Template
    ]]
    The dollar sign is going to be used to seperate the two sections
    I will +Rep anyone who writes one of these for me
    Last edited by mager1794; 11-25-2009 at 07:25 PM.
    Lunar Gaming - Reaching For The Stars

    Need Lua Template Writers

Similar Threads

  1. [Help] Need LUA help? Post here!
    By EcHoEs in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 10-03-2010, 01:18 PM
  2. Lua Templates
    By CairiFEA in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 04-17-2008, 02:27 PM
  3. [Help] i need Lua help with this script...
    By Ellenor in forum World of Warcraft Emulator Servers
    Replies: 25
    Last Post: 03-03-2008, 03:45 PM
  4. Need LUA Scripting Help ?
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-04-2008, 12:36 PM
  5. Ultimate repack dark legacy need lua scripter!!
    By Tom_2001 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 01-26-2008, 05:30 PM
All times are GMT -5. The time now is 07:47 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