Lua Script Help! menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    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)

    Lua Script Help!

    i have been working on this script for a h now ^^ plz help :P im trying to make a weapon master that can teach u all weps and with a "buttom" that u can press called: "For those who don't want to make war" or something and that gives u a book or something :P
    here is the script:

    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(9, "Weapon skills", 21, 0)
    unit:GossipMenuAddItem(6, "For people who don't want to fight", 100, 0)
    
    function Gossip_Submenus(unit, event, player, id, intid, code)
    
    if(intid == 21) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(0, "Ranged Weapons", 76, 0)
    Unit:GossipMenuAddItem(0, "One-Handed Weapons", 77, 0)
    Unit:GossipMenuAddItem(0, "Two-Handed Weapons", 78, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 76) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Bows", 84, 0)
    Unit:GossipMenuAddItem(1, "Crossbows", 85, 0)
    Unit:GossipMenuAddItem(1, "Guns", 86, 0)
    Unit:GossipMenuAddItem(1, "Thrown", 87, 0)
    Unit:GossipMenuAddItem(1, "Wands", 88, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 77) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Axes", 89, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Maces", 90, 0)
    Unit:GossipMenuAddItem(1, "One-Handed Swords", 91, 0)
    Unit:GossipMenuAddItem(1, "Daggers", 92, 0)
    Unit:GossipMenuAddItem(1, "Fist Weapons", 93, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 78) then
    Unit:GossipCreateMenu(3543, player, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Axes", 94, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Maces", 95, 0)
    Unit:GossipMenuAddItem(1, "Two-Handed Swords", 96, 0)
    Unit:GossipMenuAddItem(1, "Staves", 97, 0)
    Unit:GossipMenuAddItem(1, "Polearms", 98, 0)
    Unit:GossipMenuAddItem(2, "Go Back", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 100) then
    Unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(6, "Weapon skillz", 21, 0)
    unit:GossipMenuAddItem(6, "For people who don't want to fight", 100, 0)
    Unit:GossipSendMenu(player)
    end
    
    if(intid == 100) then
    player:AddItem(36862,1)
    unit:GossipComplete(player)
    end 
    end
    
    RegisterUnitGossipEvent(100007, 1, "On_Gossip")
    RegisterUnitGossipEvent(100007, 2, "Gossip_Submenus")
    Im realy new at scripting so go easy on me ^^
    Lines of Coding: |||||||||| Goal 1000
    Current: 677 Achived Goals: 500 Lines


    Lua Script Help!
  2. #2
    Djfrederick's Avatar Banned
    Reputation
    127
    Join Date
    Sep 2008
    Posts
    380
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(9, "Weapon skills", 21, 0)
    unit:GossipMenuAddItem(6, "For people who don't want to fight", 100, 0)
    Need the ''end'' last. Like this:

    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(9, "Weapon skills", 21, 0)
    unit:GossipMenuAddItem(6, "For people who don't want to fight", 100, 0)
    end

  3. #3
    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)
    it dident work... :? istead of working did it shutdown allmy other lua files :P
    so every time i put it in my script folder it blocks the other script plz help... :P
    or can some1 make a weapon master lua?
    Lines of Coding: |||||||||| Goal 1000
    Current: 677 Achived Goals: 500 Lines


  4. #4
    VictoRo's Avatar Contributor
    Reputation
    81
    Join Date
    Feb 2008
    Posts
    219
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

Similar Threads

  1. Simple LUA Script Help
    By Wolfly in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 09-02-2008, 04:22 PM
  2. LUA Script Help Thread
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-04-2008, 12:46 AM
  3. LuA Scripting Help
    By Jlp in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 06-27-2008, 03:33 AM
  4. Lua script help and general questions from beginner
    By WinKIller0 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 02-23-2008, 04:38 AM
  5. Need LUA Scripting Help ?
    By Snailz in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 02-04-2008, 12:36 PM
All times are GMT -5. The time now is 05:00 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