Hello & Welcome to our community. Is this your first visit? Register
Follow us on
Follow us on Facebook Follow us on Twitter Watch us on YouTube


MMOCoin

Likes Likes:  0
Results 1 to 2 of 2
  1. #1
    Scout
    ^_^ Electrify's Avatar
    Join Date
    Jul 2011
    Posts
    20
    Post Thanks / Like
    Rep Power
    14
    Reputation
    19

    [Lua]How to create an easy portal in Lua


    Register to remove this ad
    Code:
    function TELENAME1_onUse (pUnit, Event, pMisc)
    pMisc:Teleport (MAPID, X, Y, Z)
    end
    
    RegisterGameObjectEvent (ID1 , 4, "TELENAME1_onUse")
    TELENAME1 - You don't have to change it
    Now go in-game and type .gps at the location your portal want teleport.
    Now fill MAPID, X , Y, Z to look like it is in-game.
    ID1 - Put the entry of the Portal.

    Copy the code to your notepad and save it as a .lua, and copy it to your scripts folder.

    Now all you have to do is to add the portal in-game.Make a new notepad and copy this modifyed code and save it as .sql and insert it in DB.

    INSERT INTO `gameobject_names` VALUES (ID1,22,Displayid,'Name1',0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0)

    ID1 - Entry you've written in the lua script.
    22 - Must remain 22 or the portal won't work
    Displayid - Choose 8196, is a good one.
    Name1 - Name what will show after you click on it.

    Restart the server and you'r done!


    › See More: [Lua]How to create an easy portal in Lua

  2. #2
    Beginner

    Join Date
    Apr 2009
    Posts
    27
    Post Thanks / Like
    Rep Power
    16
    Reputation
    1

    Register to remove this ad
    Nice tutorial. Very useful.
    Thanks.




  3. Related Threads - Scroll Down after related threads if you are only interested to view replies for above post/thread

 

 

Visitors found this page by searching for:

portal lua

how to make portal wirch lua script

portal 2 lua

how to create a custom LUa portal

how to make portal .lua

how to make simple portal

lua script teleport portal 2011

create easy portal

.lua в portal 2

create_portal lua

.bot commands easy mangos

portal .lua

SEO Blog

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -5. The time now is 01:44 PM.
Powered by vBulletin® Copyright ©2000-2024, Jelsoft Enterprises Ltd.
See More links by ForumSetup.net. Feedback Buttons provided by Advanced Post Thanks / Like (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
vBulletin Licensed to: MMOPro.org