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 4 of 4
  1. #1
    Contributor
    shadowslayer133's Avatar
    Join Date
    Jan 2009
    Posts
    53
    Post Thanks / Like
    Rep Power
    17
    Reputation
    92

    Post [Realese] Lua Flyer and Lander make your players fly!


    Register to remove this ad
    Hey I created a script where you can fly and also land. This is useful when you put him in an arena and seal off the arena
    Code:
    function On_gossip(unit, event, player)
    Unit:GossipCreateMenu(50, player, 0) 
    unit:GossipMenuAddItem(0, "Fly", 3, 0) 
    unit:GossipMenuAddItem(0, "Land", 4, 0) 
    unit:GossipSendMenu(player) 
    end  
    function Gossip_Submenus(unit, event, player, id, intid, code)
    if(intid == 3) then Player:SetFlying() 
    end  if(intid == 4) then 
    Player:Land() 
    end 
    end 
    RegisterUnitGossipEvent(75331, 1, "On_Gossip") 
    RegisterUnitGossipEvent(75331, 2, "Gossip_Submenus")
    Next all you have to do is create a creature with the Entry ID of 75331 or change it in the Script.I highlighted in red what you could change.



    ~Little Tutorial of how to use LUA scripts:
    1. Copy 'n Paste whats in the code onto a notepad.
    2. Save it as Fly and land.lua
    3. Move the file to C:/Your Server/Scripts/
    4. Make sure in you C:/Your Server/Script_Bin/ you have Lua Scripting.cpp
    5. Make a creature with an Entry ID of 75331
    6. Restart your server and spawn him
    7. Enjoy




    › See More: [Realese] Lua Flyer and Lander make your players fly!
    Last edited by shadowslayer133; 20-01-09 at 10:41 AM.



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

  3. #2
    Contributor
    runiker's Avatar
    Join Date
    Jul 2008
    Posts
    170
    Post Thanks / Like
    Rep Power
    17
    Reputation
    113
    Great idea and great script never thought of this. Just an idea if you were to put it into a server i would make it remove a hearthstone apon fly and add a 3rd option that is "leave" that would give back the stone as well as make them land and teleport them to a safe zone. But i for the thought behind this.

  4. #3
    Contributor
    QQrofl's Avatar
    Join Date
    Jan 2009
    Posts
    153
    Post Thanks / Like
    Rep Power
    17
    Reputation
    132
    Looks cool to use, but have to watch where you spawn the npc.

  5. #4
    Contributor
    shadowslayer133's Avatar
    Join Date
    Jan 2009
    Posts
    53
    Post Thanks / Like
    Rep Power
    17
    Reputation
    92

    Register to remove this ad
    What I did in my server was i looked through my GO's and found one called "ForceField" a couple of them didn't work but i eventually found one that did. Then i put the forcefield around Gurubashi arena and BAM! perfect for my npc!

 

 

Visitors found this page by searching for:

lua flyer

LUA make players fly

wow lua player:setflying

wow how to make players fly in lua

lua lander

SEO Blog

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 02:35 AM.
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