[QUESTION] Spawning an Object through an Item menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Vendros's Avatar Private
    Reputation
    1
    Join Date
    Dec 2009
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [QUESTION] Spawning an Object through an Item

    Hello there -- I'm interested in seeing if the ability to spawn an object on a player's location when they right-click an item inside their inventory is possible? As an example, if I wanted to build my own home, I could purchase an item from the vendor and then right-click the item, which would spawn a house on my location. Naturally I'm not only intending to use housing, but other objects as well.

    Essentially, just want to know if you can spawn an object on your exact location using a Lua-scripted item. Thank you in advance for any answers.

    [QUESTION] Spawning an Object through an Item
  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)
    Try something like this:

    Code:
    local ITEMID = 50
    
    function zeztyjsipjysoyhs_xrjhxi_zatjo(item, event, player)
        eaazzRuneStart(item, player)
    end
    
    function eaazzRuneStart(item, player)
        item:SpawnGameObject(entry_id,x,y,z,duration)
        player:RemoveItem(ITEMID,1)
    end
    
    RegisterItemGossipEvent(ITEMID, 1, "zeztyjsipjysoyhs_xrjhxi_zatjo")

Similar Threads

  1. [Question]Custom Game Objects
    By RedFox4 in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 09-12-2010, 08:25 AM
  2. Question about Game Objects and NPCs
    By Bloodrazer1876 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 09-20-2008, 01:52 PM
  3. [Release] Spawn with s4 and Guardian items
    By krish in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 05-23-2008, 05:42 AM
  4. [Question] Invisible Game objects
    By Sonic Waffle in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 02-18-2008, 05:04 PM
  5. How to spawn Game Object and Save them! [Very easy] No .gps or anything!
    By God-Of-War in forum WoW EMU Guides & Tutorials
    Replies: 8
    Last Post: 01-03-2008, 08:25 AM
All times are GMT -5. The time now is 10:38 AM. 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