[lua help] I need you guys to see if i missed somthing in the code please menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [lua help] I need you guys to see if i missed somthing in the code please

    Ok i am making this script so that when a player click on gameobject
    115590 it will check to see if they have item number 1559 if they do then
    if will teleport them to the tele code [p.s. is there a way to tele them somwhere else if they dont have the item?]


    function Teleportingsm1_onUse (pUnit, Event, pMisc)
    if GetItemCount(1559) > 0 then
    pMisc:Teleport (0, 2867.23, -821.32, 160.33)
    end


    RegisterGameObjectEvent (115590, 2, "Teleportingsm1_onUse")

    [lua help] I need you guys to see if i missed somthing in the code please
  2. #2
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    > 1 then ?
    Cheese Cake?

  3. #3
    Ebon's Avatar Contributor
    Reputation
    218
    Join Date
    Sep 2007
    Posts
    604
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Here, try this... from AscentEMU.com. From "zenteo".

    Item Portal:
    function Teleportingsm1_OnUse(pGameObject, Event, pMisc)
    Item = 1559
    Map = 0
    X = 2867.23
    Y = -821.32
    Z = 160.33
    if pMisc:GetItemCount(1559) > 0 then
    pMisc:Teleport(0, 2867.23, -821.32, 160.33)
    end
    end
    RegisterGameObjectEvent(17189001, 2, "Teleportingsm1_OnUse")

    REMEMBER, I TAKE NO CREDITS FOR THAT.

    Edit - Added your ID, and can you please tell me if it work's, if you try it =)?
    Edit2 - Woops, didn't relise you wanted a game object, yeah, I think you're OK . Also, if you want to teleport them somewhere without a game object, type .recall portplayer PlayerName Location. Without the period at the end.
    Last edited by Ebon; 03-09-2008 at 07:12 AM. Reason: Added some text yo!


  4. #4
    Snailz's Avatar Contributor Authenticator enabled
    Reputation
    239
    Join Date
    Nov 2007
    Posts
    941
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    RegisterGameObjectEvent(115590, 2, "Teleportingsm1_OnUse")

    You mean ebon ?
    Cheese Cake?

  5. #5
    Ebon's Avatar Contributor
    Reputation
    218
    Join Date
    Sep 2007
    Posts
    604
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Prehap's the ID.


  6. #6
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thank you all for the help im gonna use to make soem pre-made guild ports
    with keys

Similar Threads

  1. Replies: 2
    Last Post: 05-31-2015, 02:16 PM
  2. Some helpful info for you guys on Mult3n servers :) 3.3.5
    By mcewel in forum WoW EMU Exploits & Bugs
    Replies: 1
    Last Post: 11-22-2013, 04:39 AM
  3. [Some Help :)] Need some help from you guys :)
    By cosminelu16 in forum Community Chat
    Replies: 0
    Last Post: 08-17-2009, 05:29 AM
  4. lua help is needed bigtime
    By runiker in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 03-09-2008, 06:28 AM
All times are GMT -5. The time now is 12:01 PM. 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