[Request]Lua Script for Gameobjects menu

User Tag List

Results 1 to 3 of 3
  1. #1
    SupernovaHH's Avatar Member
    Reputation
    12
    Join Date
    May 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request]Lua Script for Gameobjects

    I want to make a Lua script on a gameobject, that lets you (say its a door) enter only if your the faction that the gameobject allows. HOW WOULD I GO ABOUT DOING THIS? sry shift button got stuck lol

    [Request]Lua Script for Gameobjects
  2. #2
    stoneharry's Avatar Moderator Harry

    Authenticator enabled
    Reputation
    1613
    Join Date
    Sep 2007
    Posts
    4,554
    Thanks G/R
    151/146
    Trade Feedback
    0 (0%)
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function CPEACAE_Cage_asdasd_OnUseZXC(pMisc, event, player)
        local race = player:GetRace()
        if race == 1 or race == 3 or race == 4 or race == 7 or race == 11 then -- Alliance
        pMisc:SetByte(LCF.GAMEOBJECT_BYTES_1,0,0) -- Open door
        else -- Horde
        pMisc:SetByte(LCF.GAMEOBJECT_BYTES_1,0,1) -- Close door
        end
    end
    
    RegisterGameObjectEvent(gameobjectid, 4, "CPEACAE_Cage_asdasd_OnUseZXC")
    Note: You will need LCF for this to work which can be found here: svn://arcemu.info/arcscripts/Trunk/l.../0LCF_Includes

  3. #3
    SupernovaHH's Avatar Member
    Reputation
    12
    Join Date
    May 2008
    Posts
    113
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have LCF, needed it with another script i have xD, thanks alot tho stoneharry, +Rep

Similar Threads

  1. [Request/Paying] LUA Script for SWD
    By lucke96 in forum WoW Bots Questions & Requests
    Replies: 4
    Last Post: 07-20-2014, 02:39 PM
  2. Replies: 2
    Last Post: 06-01-2010, 05:29 AM
  3. Writing an LUA script for portals
    By ledz14 in forum WoW EMU Guides & Tutorials
    Replies: 6
    Last Post: 08-10-2008, 12:05 PM
  4. LUA scripting. For noobs.
    By Locky in forum WoW EMU Guides & Tutorials
    Replies: 17
    Last Post: 06-05-2008, 02:12 PM
  5. [Request] LUA Scripting
    By Creepfold in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 12-31-2007, 06:28 PM
All times are GMT -5. The time now is 02:21 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