Lua Engine Messed up menu

User Tag List

Results 1 to 6 of 6
  1. #1
    Deathbringer123's Avatar Master Sergeant
    Reputation
    25
    Join Date
    Oct 2010
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Engine Messed up

    Hey i recently decided to get back in to Emu Servers so i compiled an ArcEmu 3.3.5a Core and it seemse the Lua Engine is messed up as when i use commands like GossipCreateMenu() and
    PlaySoundToSet()
    it gives me the error of
    String: "Lua Script":64: Attempted to call GossispCreateMenu() < a nil value>
    Abd ofcourse you can hardly have a Private server without a teleporter so this is quite annoying.

    Acording to Arcemu-world.exe i am using LuaHypArc so i cant see whats wrong..
    the svn i used was https://arcemu.svn.sourceforge.net/s.../arcemu/trunk/ if anyone has a solution to this problem i would be Very Grateful

    Thanks
    Death

    Lua Engine Messed up
  2. #2
    Facerolling's Avatar Contributor
    Reputation
    116
    Join Date
    Mar 2007
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lua GossipCreateMenu - ArcEmu-wiki

    You didn't add the syntax.
    hey ervyone whats up gamboys

  3. #3
    Deathbringer123's Avatar Master Sergeant
    Reputation
    25
    Join Date
    Oct 2010
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the Script im using that was just the error the Server gave me
    Code:
    function Warp_OnGossip(pUnit, event, player, pMisc)
    pUnit:GossipCreateMenu(99, player, 0)
    pUnit:GossipMenuAddItem(10, "Mall", 1, 0)
    ---pUnit:GossipMenuAddItem(4, "Remove Res Sickness", 2, 0)
    ---pUnit:GossipMenuAddItem(2, "Capital City", 3, 0)
    pUnit:GossipMenuAddItem(10, "Do i Really have to go farm all those Frost Tokens ??", 4, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Warp_Submenu(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 0) then
    if(player:GetTeam() == 0) then
    player:Teleport(269 , -35.670666, 2476.763916, -4.286417)
    
    if(intid == 4) then
    pUnit:SendChatMessage(14, 0, "No go Speak to Haris Pilton over there she gives them out for Free!")
    end
    end
    end
    end
    
    RegisterUnitGossipEvent(50001, 1, "Warp_OnGossip")
    RegisterUnitGossipEvent(50001, 2, "Warp_Submenu")

  4. #4
    Facerolling's Avatar Contributor
    Reputation
    116
    Join Date
    Mar 2007
    Posts
    307
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check your npc_text table in your world db to see if there's anything under entry 99.
    hey ervyone whats up gamboys

  5. #5
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Gossip scripts were removed from the Lua engine because they can no longer be handled, the C++ side is too object orientated now, which Lua can't handle.

    Hence why it is telling you that no such function exists.

    edit:

    If you use LuaBridge this may work: http://www.arcemu.org/wiki/LuaBridge_Tutorials
    Last edited by stoneharry; 04-13-2011 at 08:45 AM.

  6. #6
    Deathbringer123's Avatar Master Sergeant
    Reputation
    25
    Join Date
    Oct 2010
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Stone +rep
    Now just need to change the lua Engine to LuaBridge

    EDIT: Um is it Possible to change the Lua Engine to LuaBridge and if so where is the download will recompile if necessary Thanks for any Help!
    Last edited by Deathbringer123; 04-13-2011 at 09:14 AM.

Similar Threads

  1. [Share/Leak] MaNGos LUA Engine
    By Pedregon in forum WoW EMU General Releases
    Replies: 25
    Last Post: 06-28-2010, 12:00 PM
  2. [GuaEngine] New Custom Lua Engine
    By Gastricpenguin in forum WoW EMU General Releases
    Replies: 158
    Last Post: 09-30-2009, 07:14 PM
  3. Gastric's Lua Engine
    By Gastricpenguin in forum World of Warcraft Emulator Servers
    Replies: 62
    Last Post: 04-22-2009, 08:11 PM
  4. Custom LUA engine
    By flameworker in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 04-19-2009, 04:07 PM
  5. Request - Working x64 Lua Engine
    By c1nco in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 10-28-2008, 02:57 PM
All times are GMT -5. The time now is 07:38 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