[Help] Lua Problem menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Thug4Life's Avatar Banned
    Reputation
    69
    Join Date
    Jul 2008
    Posts
    157
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Lua Problem

    Hey, I'm making a taxi to teleport to two places, says there is an "Invalid" or "Incorrect" letter next to "in" in the Lua code, here it is.

    If you can help I will rep

    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Horde Offencive", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Defence", 2, 0)
    unit:GossipSendMenu(player)
    end

    function Gossip_Submenus(unit, event, player, id, intid, code)

    if(intid == 999) then
    unit:GossipCreateMenu(3453, player, 0)
    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Horde Offencive", 1, 0)
    unit:GossipMenuAdditem(2, "Alliance Defence", 2, 0)
    unit:GossipSendMenu(player)
    end

    in(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Horde Offencive", 300, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if(intid == 2) then
    unit:GossipCreateMenu(3543, player 0)
    unit:GossipMenuAddItem(1, "Alliance Defence", 301, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end

    if(intid == 300) then
    player:Teleport(1, -685, 444, 17
    unit:GossipComplete(player)
    end

    if(intid == 301) then
    player:Teleport(1, -546, 382, 17
    unit:GossipComplete(player)
    end
    end

    RegisterUnitGossipEvent(ENTRY ID, 1, "On_Gossip")
    RegisterUnitGossipEvent(ENTRY ID, 2, "Gossip_Submenus")

    [Help] Lua Problem
  2. #2
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function On_Gossip(unit, event, player)
    unit:GossipCreateMenu(3544, player, 0)
    unit:GossipMenuAddItem(2, "Horde Offencive", 1, 0)
    unit:GossipMenuAddItem(2, "Alliance Defence", 2, 0)
    unit:GossipSendMenu(player)
    end
     
    function Gossip_Submenus(unit, event, player, id, intid, code)
     
    if(intid == 999) then
    unit:GossipCreateMenu(3453, player, 0)
    if(intid == 999) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(2, "Horde Offencive", 1, 0)
    unit:GossipMenuAdditem(2, "Alliance Defence", 2, 0)
    unit:GossipSendMenu(player)
    end
     
    if(intid == 1) then
    unit:GossipCreateMenu(3543, player, 0)
    unit:GossipMenuAddItem(1, "Horde Offencive", 300, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
     
    if(intid == 2) then
    unit:GossipCreateMenu(3543, player 0)
    unit:GossipMenuAddItem(1, "Alliance Defence", 301, 0)
    unit:GossipMenuAddItem(0, "[Back]", 999, 0)
    unit:GossipSendMenu(player)
    end
     
    if(intid == 300) then
    player:Teleport(1, -685, 444, 178)
    unit:GossipComplete(player)
    end
     
    if(intid == 301) then
    player:Teleport(1, -546, 382, 178)
    unit:GossipComplete(player)
    end
    end
     
    RegisterUnitGossipEvent(ENTRY ID, 1, "On_Gossip")
    RegisterUnitGossipEvent(ENTRY ID, 2, "Gossip_Submenus")
    Try that, you had "in" instead of "if"

  3. #3
    Thug4Life's Avatar Banned
    Reputation
    69
    Join Date
    Jul 2008
    Posts
    157
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, thnx mate. I'll get back to you with the results.

  4. #4
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok, no problem Anytime

  5. #5
    Thug4Life's Avatar Banned
    Reputation
    69
    Join Date
    Jul 2008
    Posts
    157
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Forgot to reply, but no. Didn't work, said something like "Can't find > near 0"

  6. #6
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Im sorry but i will need the exact error, it should say what line. Thank you

  7. #7
    Thug4Life's Avatar Banned
    Reputation
    69
    Join Date
    Jul 2008
    Posts
    157
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's ok. I've stopped playing and creating servers atm. Might go back to it later.

    Thanks for your help though. So +Rep

  8. #8
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hehe no worry, as i said! Im here to help

Similar Threads

  1. [Help]DLL or LUA problem i have no idea
    By bfwlegend in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 01-31-2009, 01:58 AM
  2. [ArcEmu Help] LUA Weird Problem
    By KaMakaZe in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 10-04-2008, 02:17 PM
  3. [Help Plzzzz] LUA Problem with KJ Script
    By Arthas117 in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 08-16-2008, 05:25 PM
  4. [HELP] LUA problem
    By Strupantwn in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 06-06-2008, 01:47 AM
  5. [Help] Lua problem
    By Lich King in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 03-23-2008, 04:34 AM
All times are GMT -5. The time now is 03:35 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