Housing and door system menu

Shout-Out

User Tag List

Results 1 to 1 of 1
  1. #1
    Aferi's Avatar Private
    Reputation
    5
    Join Date
    Oct 2011
    Posts
    7
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Housing and door system

    First: Hello owned! This is my first post here and i will try to make a good impression

    This is LUA- based door system which has these features
    You can spawn door anywhere, but you need to edit LUA script (specificly gobject spawn coordinates, find those ingame)
    You can spawn door levers anywhere, dont need to change anything!
    There is only 1 LUA script which you need to modify to add aditional doors.
    You need to make new door gameobject and item in SQL for every aditional door.

    Script is not rly big, so i will post in here.
    Code:
    function lever_OnUse(pGO, event, player)
    --first door
       if player:GetItemCount(48907) > 0 then
     pGO:Activate()
     player:GetGameObjectNearestCoords(-14409.196, 415.022, 22.715, 150138):Activate()
    player:SendAreaTriggerMessage("Welcome!")
    --second door
     if player:GetItemCount(48908) > 0 then
     pGO:Activate()
     player:GetGameObjectNearestCoords(-14448, 457, 15.421, 150138):Activate()
    player:SendAreaTriggerMessage("Welcome!")
    --dont change below if u need more doors.
    else
    player:SendAreaTriggerMessage("Ask owner to open the door for you!")
    
    end
    end
    
    RegisterGameObjectEvent(17156, 4, "lever_OnUse")
    OK LUA EXPLANATION.
    GREEN: ITEM REQ FOR OPENING
    RED: LEVER OBJECT (dont modify those)
    BLUE: COORDS (first number is x, second y, third z, and fourth is door gameobject entry id (do not edit door gobject ids,thats fourth number, you can use same object, just modify coords)

    Ok sql entriest now
    1. You already have door lever, you dont need to mod (id is 17156)
    2. You need item for opening. Create them yourself and edit GREEN in script to your item ID.
    3. Ok doors are must have. I was testing for about 3 days to find which will open on .gobject activate and i found ones, i changed they model so everyone can see opening of the same (looking like bar door, still you need to implement in SQL).
    I will not paste sql here. I will teach u to make it manually.
    Open SQL with editor, and look for entry ID 150137.
    Duplicate that row, and set ID to 150138.
    Set display ID to 2751.
    You are done!

    Thanks for reading, hope you like it
    This is my first post so dont be so strong at me
    Cheers
    Last edited by stoneharry; 10-10-2011 at 09:53 AM. Reason: Added codebox.

    Housing and door system

Similar Threads

  1. Vote and reward system - Mangos/trinity - Paying $200
    By insainz in forum WoW EMU Questions & Requests
    Replies: 19
    Last Post: 04-29-2009, 12:33 PM
  2. [QUESTION] Night and Day system
    By marcelo_20xx in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 10-03-2008, 03:41 AM
  3. Stratholme abomination gate and slaughter house gate/door removal
    By Infernous in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 05-01-2007, 11:38 AM
  4. So you're at your friends house and he's...
    By Ensui in forum Community Chat
    Replies: 8
    Last Post: 01-30-2007, 12:43 AM
  5. Secret Blood Elf House and Northern Plaguelands Patch 1.12.2!
    By Aran in forum World of Warcraft Exploits
    Replies: 21
    Last Post: 12-10-2006, 10:19 AM
All times are GMT -5. The time now is 08:33 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