Lua scripts won't work! menu

User Tag List

Results 1 to 4 of 4
  1. #1
    Leksikon's Avatar Member
    Reputation
    1
    Join Date
    Aug 2007
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua scripts won't work!

    First of all, I'm fairly new to this kind of customizing, so bear with me :P

    I am trying to create some custom content for my server, and I'm just toying around with scripting. So my problem is: I made a simple portal to teleport me, but when I click it, nothing happens. This is my script:

    Code:
    function TestPortal_OnClick(pUnit, Event, pMisc)
        pMisc:Teleport(1,1515,-4406,19)
    end
    RegisterGameObjectEvent(1000000, 4, "TestPortal_OnClick")
    I suspect it has something to do with the event because the console prints this message when I click the portal:
    Code:
    World: CMSG_GAMEOBJ_USE: [GUID 45]
    1000000 is the entry of the GO. Me clicking the portal is indeed registered, but the function isn't run :/

    Lua is enabled, because my character spams "Lol" if I put this inside the script but not inside a function:
    Code:
    GetPlayer("Asdfwa"):SendChatMessage(1,1,"Lol",0)
    Code:
    <ScriptBackends LUA="1"
    AS="1">
    Thank you in advance!
    Last edited by Leksikon; 05-16-2011 at 04:00 PM.

    Lua scripts won't work!
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1614
    Join Date
    Sep 2007
    Posts
    4,558
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    What Lua engine and version of ArcEmu are you using?

  3. #3
    Leksikon's Avatar Member
    Reputation
    1
    Join Date
    Aug 2007
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ArcEmu version is 4200, and I'm using LuaBridge.
    Last edited by Leksikon; 05-16-2011 at 03:44 PM.

  4. #4
    newtech's Avatar Active Member
    Reputation
    57
    Join Date
    Aug 2008
    Posts
    308
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry to say it Leksikon, but I'm afraid that I wont be able to help you with the issue then :/ Not really familiar with LuaBridge. And I also doubt Stoneharry is x) Can't tell though. Sometimes I think he knows everything XD
    @OnTopic: It looks correct... What I would try is to check if that '4' in the bottom is actually the correct number (the one that says "Object_OnUse")... I got nothing else xP Might be an engine-related problem. :/

    Thanks
    Newtech
    LuaHypArc Lua scripter - 3.3.5a World Builder.

Similar Threads

  1. [ArcEmu] Custom Lua Scripted Boss (Not working!)
    By shtriga in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 11-29-2013, 04:31 PM
  2. [Lua Script] Another Lua script that won't work
    By tyeeeee1 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 03-09-2012, 02:24 PM
  3. [Lua Script] My first lua script, one phase won't work?
    By Rainyday in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 01-28-2011, 08:32 AM
  4. [Help] One part of my lua script doesn't work correctly
    By dude891 in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 06-07-2008, 09:17 AM
  5. C++ Script Won't Work, Please Help!
    By guitargod218 in forum World of Warcraft Emulator Servers
    Replies: 22
    Last Post: 06-04-2008, 01:48 PM
All times are GMT -5. The time now is 02:57 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search