Can't Write Lua? Here's a Program to do it for You! menu

User Tag List

Results 1 to 15 of 15
  1. #1
    benzkool's Avatar Member
    Reputation
    23
    Join Date
    Nov 2008
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can't Write Lua? Here's a Program to do it for You!

    Hey everyone another release here, just showin' my batch skillz
    This is a program that will write 5 teles connected to an NPC in .lua

    If 5 isnt enough tell me ill made another post for more.

    There is 2 programs ".Lua Builder vT" & ".Lua Builder vL"
    The difference is vT has tutorial built in on how to use it, and vL has none for speed.
    (You should start with vT even if you know .lua)
    Once you master both start to open the .lua files you make take a look at the codes and maybe you will learn!!!
    (It's how i did it)

    To use the codes below you must open notepad and save them as the title of the code box!!

    Also Check This Post Out!!

    .Lua Builder vT.bat
    Code:
    @echo off
    echo.
    if exist Warps.lua del Warps.lua
    echo Welcome to Benz .lua Builder this program will make a .lua
    echo file for you all you have to do is put it in the right folder!!
    echo.
    pause
    echo.
    echo.    IMPORTANT: Allways type something in, even if you dont want or need type 0
    echo.
    pause
    echo.
    echo.   The field "Name:" Is what you will see when you talk to then NPC
    echo.   It's the menu you click into that will bring you to Tele's menu
    echo.
    pause
    echo.
    echo.   When asked to enter field "Tele" the format is (Map, X, Y, Z) 
    echo.   Make sure to single space after the commas!
    echo.
    pause
    echo.
    echo.   When typing in cords you only type number, number, number, number
    echo.   You don't need to type "( )" program does it for you!
    echo.
    pause
    echo.
    echo.   So while you are typing should look like this -
    echo.
    echo.   Tele 1:5, 100, 200, 300
    echo.   Name of Tele 1: Outback
    echo.   Tele 2:5, 100, 200, 300
    echo.   Name of Tele 2: Outback
    echo.
    pause
    echo.
    echo.   Please note- Those arent real cords and im not responsible for what 
    echo.   happens if you use them.
    echo.
    echo.   Npc Entry ID is the Npc your putting this on its the number you use
    echo.   to spawn the Npc (Please note needs to be real Npc in game)
    echo.
    pause
    echo.
    set /p name= Name:
    set /p port1= Tele 1:
    set /p n1= Name of Tele 1:
    set /p port2= Tele 2:
    set /p n2= Name of Tele 2:
    set /p port3= Tele 3:
    set /p n3= Name of Tele 3:
    set /p port4= Tele 4:
    set /p n4= Name of Tele 4:
    set /p port5= Tele 5:
    set /p n5= Name of Tele 5:
    set /p npc= Entry of NPC:
    echo.
    echo.
    echo.    Copy and Paste whats below into notepad
    echo.    Save it as "Warp.lua" Without quotes "These"
    echo.
    echo.    To Copy right click anywhere inside the black box
    echo.    Then click mark
    echo.    While holding left mouse button, drag and highlight
    echo.    Start at - function On_Gossip(unit, event, player)
    echo.    End at - RegisterUnitGossipEvent(66666, 2, "Gossip_Submenus")
    echo.    Once all that text is highlighted click "ctrl + c"
    echo.    Then open notepad and click "ctrl + v"
    echo.
    pause
    echo.
    echo.
    echo.function On_Gossip(unit, event, player)
    echo.unit:GossipCreateMenu(3544, player, 0)
    echo.unit:GossipMenuAddItem(2, "%name%", 1, 0)
    echo.unit:GossipSendMenu(player)
    echo.end
    echo.
    echo.function Gossip_Submenus(unit, event, player, id, intid, code)
    echo.
    echo.if(intid == 999) then
    echo.unit:GossipCreateMenu(3543, player, 0)
    echo.unit:GossipMenuAddItem(2, "%name%", 1, 0)
    echo.unit:GossipSendMenu(player)
    echo.end
    echo.
    echo.if(intid == 1) then
    echo.unit:GossipCreateMenu(3543, player, 0) 
    echo.unit:GossipMenuAddItem(1, "%n1%", 16, 0)
    echo.unit:GossipMenuAddItem(1, "%n2%", 17, 0)
    echo.unit:GossipMenuAddItem(1, "%n3%", 18, 0)
    echo.unit:GossipMenuAddItem(1, "%n4%", 19, 0)
    echo.unit:GossipMenuAddItem(1, "%n5%", 20, 0)
    echo.unit:GossipMenuAddItem(0, "Back", 999, 0)
    echo.unit:GossipSendMenu(player)
    echo.end
    echo.
    echo.if(intid == 16) then
    echo.    player:Teleport(%port1%)
    echo.end
    echo.if(intid == 17) then
    echo.    player:Teleport(%port2%)
    echo.end
    echo.if(intid == 18) then
    echo.    player:Teleport(%port3%)
    echo.end
    echo.if(intid == 19) then
    echo.    player:Teleport(%port4%)
    echo.end
    echo.if(intid == 20) then
    echo.    player:Teleport(%port5%)
    echo.end
    echo.end
    echo.
    echo.RegisterUnitGossipEvent(%npc%, 1, "On_Gossip") 
    echo.RegisterUnitGossipEvent(%npc%, 2, "Gossip_Submenus")
    echo.
    echo.
    echo.
    pause
    echo. Thx for using .lua builder!! (created by benzkool)

    .Lua Builder vL.bat
    Code:
    @echo off
    echo.
    if exist Warps.lua del Warps.lua
    echo Welcome to Benz .lua Builder this program will make a .lua
    echo file for you all you have to do is put it in the right folder!!
    echo.
    set /p name= Name:
    set /p port1= Tele 1:
    set /p n1= Name of Tele 1:
    set /p port2= Tele 2:
    set /p n2= Name of Tele 2:
    set /p port3= Tele 3:
    set /p n3= Name of Tele 3:
    set /p port4= Tele 4:
    set /p n4= Name of Tele 4:
    set /p port5= Tele 5:
    set /p n5= Name of Tele 5:
    set /p npc= Entry of NPC:
    echo.
    echo.
    echo.function On_Gossip(unit, event, player)
    echo.unit:GossipCreateMenu(3544, player, 0)
    echo.unit:GossipMenuAddItem(2, "%name%", 1, 0)
    echo.unit:GossipSendMenu(player)
    echo.end
    echo.
    echo.function Gossip_Submenus(unit, event, player, id, intid, code)
    echo.
    echo.if(intid == 999) then
    echo.unit:GossipCreateMenu(3543, player, 0)
    echo.unit:GossipMenuAddItem(2, "%name%", 1, 0)
    echo.unit:GossipSendMenu(player)
    echo.end
    echo.
    echo.if(intid == 1) then
    echo.unit:GossipCreateMenu(3543, player, 0) 
    echo.unit:GossipMenuAddItem(1, "%n1%", 16, 0)
    echo.unit:GossipMenuAddItem(1, "%n2%", 17, 0)
    echo.unit:GossipMenuAddItem(1, "%n3%", 18, 0)
    echo.unit:GossipMenuAddItem(1, "%n4%", 19, 0)
    echo.unit:GossipMenuAddItem(1, "%n5%", 20, 0)
    echo.unit:GossipMenuAddItem(0, "Back", 999, 0)
    echo.unit:GossipSendMenu(player)
    echo.end
    echo.
    echo.if(intid == 16) then
    echo.    player:Teleport(%port1%)
    echo.end
    echo.if(intid == 17) then
    echo.    player:Teleport(%port2%)
    echo.end
    echo.if(intid == 18) then
    echo.    player:Teleport(%port3%)
    echo.end
    echo.if(intid == 19) then
    echo.    player:Teleport(%port4%)
    echo.end
    echo.if(intid == 20) then
    echo.    player:Teleport(%port5%)
    echo.end
    echo.end
    echo.
    echo.RegisterUnitGossipEvent(%npc%, 1, "On_Gossip") 
    echo.RegisterUnitGossipEvent(%npc%, 2, "Gossip_Submenus")
    echo.
    echo.
    echo.
    pause
    echo. Thx for using .lua builder!! (created by benzkool)

    If you have any problems message me or post here
    (Rather you post here)
    Last edited by benzkool; 12-12-2008 at 09:17 AM.

    Can't Write Lua? Here's a Program to do it for You!
  2. #2
    Zudrik's Avatar Member
    Reputation
    52
    Join Date
    Dec 2008
    Posts
    169
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I learned from taking someone elses work and copying it, then re writing it, lol.

    Looks nice +Rep

  3. #3
    benzkool's Avatar Member
    Reputation
    23
    Join Date
    Nov 2008
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice lol idk if this post will make it anywhere but I hope so

    Edit- Woot new rank idk if it was your +Rep or my 70th post that did it!

  4. #4
    Zudrik's Avatar Member
    Reputation
    52
    Join Date
    Dec 2008
    Posts
    169
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It was both =D

  5. #5
    benzkool's Avatar Member
    Reputation
    23
    Join Date
    Nov 2008
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Zudrik View Post
    It was both =D
    Thx for the +Rep

  6. #6
    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 personally dont like these programs, they are so n00bish...

    But anyway, its a nice effort.

    Cant give +Rep, I have given too much =/

  7. #7
    volitle's Avatar Contributor
    Reputation
    181
    Join Date
    Nov 2007
    Posts
    1,127
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    looks good, 1 rep for effort


  8. #8
    benzkool's Avatar Member
    Reputation
    23
    Join Date
    Nov 2008
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Edude View Post
    I personally dont like these programs, they are so n00bish...

    But anyway, its a nice effort.

    Cant give +Rep, I have given too much =/
    At least im contributing?
    But ya i agree they are nooby i make them for people who dont know how to do it...would probably explain it...

    Also you act like batch is eazy?

  9. #9
    benzkool's Avatar Member
    Reputation
    23
    Join Date
    Nov 2008
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by volitle View Post
    looks good, 1 rep for effort
    Thank you

  10. #10
    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, you are contributing and thats nice. But people should start to use Notepad.

    I woulg give +Rep if I could =/

  11. #11
    benzkool's Avatar Member
    Reputation
    23
    Join Date
    Nov 2008
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Edude View Post
    Hey, you are contributing and thats nice. But people should start to use Notepad.

    I woulg give +Rep if I could =/
    Yes this is for very early stages as you see in my post says
    "Once you use open .lua and look at coding maybe you will start to learn"

    Also i think its funny how this is getting people with ton of rep and not low ranks

  12. #12
    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)
    3P1C R3L3A53 Br0111
    Immortal GamerZ Under Development!

  13. #13
    BlackerC's Avatar Member
    Reputation
    4
    Join Date
    Dec 2008
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by benzkool View Post
    Yes this is for very early stages as you see in my post says
    "Once you use open .lua and look at coding maybe you will start to learn"

    Also i think its funny how this is getting people with ton of rep and not low ranks
    Thanks for this.. As I am in those "Early Stages" It's nice to have something like this to see how things work... +Rep

  14. #14
    Jonthe838's Avatar Contributor
    Reputation
    83
    Join Date
    Aug 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    im realy noob at scripting... never done it and i havent got time to learn.. is there a guide how to do this and how do u make .lua file?? ^^ sry for being noob but i have to learn somewhere ^^
    And how does this program work?? its only text?? ^^ hahha sry for being noob ( again)
    Last edited by Jonthe838; 12-13-2008 at 11:59 AM.
    Lines of Coding: |||||||||| Goal 1000
    Current: 677 Achived Goals: 500 Lines


  15. #15
    benzkool's Avatar Member
    Reputation
    23
    Join Date
    Nov 2008
    Posts
    119
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Jonthe838 View Post
    im realy noob at scripting... never done it and i havent got time to learn.. is there a guide how to do this and how do u make .lua file?? ^^ sry for being noob but i have to learn somewhere ^^
    And how does this program work?? its only text?? ^^ hahha sry for being noob ( again)
    Well this program can make it for you then you can open it an prolly learn it, its really easy to understand if you cant ill help you just message me

Similar Threads

  1. Replies: 4
    Last Post: 11-18-2012, 12:35 AM
  2. Lua Help? Can't Write it? Start Here!
    By benzkool in forum WoW EMU General Releases
    Replies: 6
    Last Post: 12-18-2008, 03:28 PM
  3. I know im not supposed to write this here but its an emergency.
    By Swiftassasin in forum Community Chat
    Replies: 34
    Last Post: 07-29-2008, 12:35 PM
  4. can't remember the name of a program
    By linipopent in forum World of Warcraft General
    Replies: 2
    Last Post: 01-26-2008, 08:59 PM
  5. Can anyone write guide for lots of money for smaller levels????
    By MARKOMAN in forum World of Warcraft General
    Replies: 1
    Last Post: 07-29-2006, 09:57 AM
All times are GMT -5. The time now is 06:20 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