[Request] LUA Script on game objects menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Ultradethv2's Avatar Private
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Request] LUA Script on game objects

    Im wondering if there is a way to script GO's to only allow certain races to use them. (Like a door.) I found another post, but it was only partial code, and the link was broken.

    [Request] LUA Script on game objects
  2. #2
    weezyC's Avatar Sergeant Major
    Reputation
    33
    Join Date
    Mar 2010
    Posts
    154
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I dont know how you would, But i found a post for you that stoneharry gives you the code to do that.
    http://www.mmowned.com/forums/world-...meobjects.html

  3. #3
    Ultradethv2's Avatar Private
    Reputation
    1
    Join Date
    Aug 2010
    Posts
    9
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yea, but thats what I saw, theres no real description on whats going on, or if thats the fule script.

  4. #4
    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() -- When the door is pressed get the race of the player
        if race == 1 or race == 3 or race == 4 or race == 7 or race == 11 then -- Alliance races
        pMisc:SetByte(LCF.GAMEOBJECT_BYTES_1,0,0) -- Open door, this bassically reads the bytes from a Lua file that comes with ArcEmu and applies the one to open the door
        else -- Horde races
        pMisc:SetByte(LCF.GAMEOBJECT_BYTES_1,0,1) -- Close door, same as above but closing
        end
    end
    
    RegisterGameObjectEvent(gameobjectid, 4, "CPEACAE_Cage_asdasd_OnUseZXC") -- This sets a script for when gameobject ID X is pressed, change the gameobjectid to the id of the door
    Does that explain it?

    Also the addition files you need are these: svn://arcemu.info/arcscripts/Trunk/l.../0LCF_Includes
    Just put them in your scripts folder with the Lua for the door.


Similar Threads

  1. [Lua Script] How to I reload lua scripts in-game ?
    By Wheeze201 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-27-2010, 08:28 AM
  2. [Request] Lua Script Transition
    By B14d3r11 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 06-04-2009, 04:49 AM
  3. [HELP/Request] LUA Script
    By Babbaa in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 07-29-2008, 07:34 AM
  4. LUA scripting -- Making game objects cast spells.
    By Jotox in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 05-08-2008, 03:44 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 08:38 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