Lua Teleport menu

User Tag List

Thread: Lua Teleport

Results 1 to 6 of 6
  1. #1
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Lua Teleport

    I was wondering if there was any way that I could make an NPC enemy teleport a player to a certain place(Stormwind) whenever he reches a certain health %. So like whenever he reaches 70% health he teleports to stormwind and he teleports you with him?

    Lua Teleport
  2. #2
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    local Didthat = 0
    
    function Teleport(pUnit, Event)
    if pUnit:GetHealthPct() < 70 then
    pUnit:Teleport(MAPID, X, Y, Z) // Stormwind's coordinates
    pUnit:RegisterEvent("Appear", 2000, 1)
    end
    end
    
    function Appear(pUnit, Event)
    pUnit:SpawnCreature(ID, x, y, z, o, faction, time) // Creature ID
    pUnit:SetHealthPct(70)
    Didthat = 1
    end
    Not sure if it will work has you want, but try it :P
    Last edited by Edude; 12-04-2008 at 11:46 AM.

  3. #3
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks that looks correct. I just did not know how to set it up thanks! +Repz

  4. #4
    Edude's Avatar Member
    Reputation
    98
    Join Date
    Jul 2008
    Posts
    406
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what didnt you understand

  5. #5
    Nymphx's Avatar Active Member
    Reputation
    83
    Join Date
    Sep 2008
    Posts
    212
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Deleted post.
    Last edited by Nymphx; 12-07-2008 at 01:34 PM. Reason: quad post

  6. #6
    y2kss66's Avatar Member
    Reputation
    104
    Join Date
    Jan 2008
    Posts
    778
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    figured it out never mind!

Similar Threads

  1. [Problem] Blua? LUA? Teleporter problem
    By lilbdiablo12 in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 10-27-2008, 11:48 AM
  2. <Request> Lua Teleporter
    By sinofevil in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 10-07-2008, 05:45 PM
  3. [Lua] Teleport/Warp Item?
    By Pretzal in forum WoW EMU Questions & Requests
    Replies: 3
    Last Post: 09-29-2008, 09:17 PM
  4. Help with lua teleporter
    By Arugos in forum WoW EMU Questions & Requests
    Replies: 5
    Last Post: 09-17-2008, 09:09 AM
  5. [LUA] Teleport on spell use
    By Eponyx in forum World of Warcraft Emulator Servers
    Replies: 10
    Last Post: 05-24-2008, 10:10 AM
All times are GMT -5. The time now is 07:25 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