How to make game objects teleport with LUA! menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make game objects teleport with LUA!

    Recently there was a new implement into the LUA to make game objects teleport with LUA, so now it is way easier then using it in the database

    example script
    Code:
    function portal1_teleport(pObject,Event)
    pObject:EventTeleport(1,16522,16531,37.2)
    end
    RegisterObjectEvent(757432,1,"portal1_teleport")

    Some people said it is kind of buggy and may not work though So be careful with it I guess and test it depending on your rev it may or may not work..whenever they update LUA 100s of things break so if it doesn't work in a new rev try an older one.

    How to make a custom one:

    Code:
    
    function NAME_EVENT(pObject,Event)
    pObject:EventTeleport(COORDS)
    end
    RegisterObjectEvent(GOID,1,"NAME_EVENT")
    1) NAME part means anything you want..just name it portal or something
    2) EVENT part means anything you want..I would name it teleport or teleportMe
    3) COORDS part are the .worldport coords, map ID, x, y, z
    4) GOID is the gameobject ID
    5) 1 means On click..if it doesn't work in your rev delete it because they constantly change stuff like that
    6) NAME_EVENT is just copy and pasting 1 and 2..


    Save as a script.lua and add to scripts folder.

    MUST HAVE LUA ENABLED
    .....

    How to make game objects teleport with LUA!
  2. #2
    C-Death's Avatar Banned
    Reputation
    134
    Join Date
    Jun 2007
    Posts
    504
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My respect for you has now grown, if i can, +Rep for you my friend

  3. #3
    Le Froid's Avatar Contributor
    Reputation
    172
    Join Date
    Mar 2007
    Posts
    1,327
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks Deathboy

  4. #4
    zerohero's Avatar Member
    Reputation
    3
    Join Date
    May 2007
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL it would be fun to make it automaticly port the closest player to some random place every couple of minutes

  5. #5
    sassafrass686's Avatar Member
    Reputation
    8
    Join Date
    Feb 2007
    Posts
    51
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LOL. I'm sure that would get ur server more members. :P

Similar Threads

  1. how to make a neutral teleporter [n00b friendly with screenshots]
    By shadowl00t in forum WoW EMU Guides & Tutorials
    Replies: 10
    Last Post: 02-15-2009, 08:45 PM
  2. [Help] How to make an NPC Talk with Lua
    By Silentnvd in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 07-26-2008, 08:08 PM
  3. 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
  4. [Two Questions] How do I make game objects + Repack problem
    By dude891 in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 04-01-2008, 08:51 AM
  5. How to make a Game Object teleport u some were with out a spell
    By Illidan1 in forum WoW EMU Guides & Tutorials
    Replies: 29
    Last Post: 01-01-2008, 06:46 PM
All times are GMT -5. The time now is 04:10 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