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.
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.
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
Yea, but thats what I saw, theres no real description on whats going on, or if thats the fule script.
Does that explain it?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
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.