
Results 1 to 4 of 4
Threaded View
-
20-01-09, 10:36 AM #1
[Realese] Lua Flyer and Lander make your players fly!
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")
~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
Last edited by shadowslayer133; 20-01-09 at 10:41 AM.