-
LUA Jail Command
Hi! I am using a mangos 1.12.1 server for the players that like preTBC... and as allways players argue with the admins and deserve to be punished..but not that severelly...
I have been trying to create a LUA jail command that should work like this : ".jail <NAME>" and it will jail the player i want...
I managed to get the command to teleport the player into the BOX under the GMIsland and i also need the command to cast a spell on that player... sumthing like stun forever so that players won't use ".start" to escape....
This is what i've made so far...:
Code:
function jail(player)
if (player:GetSecurity() > 0) then
player:getSelectedPlayer():TeleportTo( 1, 16228.9, 16402.8, -64.3804, 2.34765,true ,true );
end
return true
end
register_lua_script_command(".jail","jail")
This requires me to select the player... Can someone transform it so i have to type the name and it will teleport the player and cast stun forever on him without me having to select the player?
Your sincerelly,
viKKmaN.:huh:
-
Re: LUA Jail Command
-
Re: LUA Jail Command
Did mangos support lua in 1.12.1? :-S
-
Re: LUA Jail Command
yes... the pack is using mangos +mangoscript ver 171
which supports LUA
-
Re: LUA Jail Command
Awsome ;) Can you share the full core and database :-D?
-
Re: LUA Jail Command
Quote:
Originally Posted by
vikkman
anyone??
your thinking to complex why not do something very very simple ^^ i am trying to add a jail to my server but am having problems i wanted it at 0 0 0 13 its a box big enough for a tauren XD just put small npc's that are hostile that do 100000000 damage..... cant cast when u insta die lol since i helped you, wanna help me? email me at Fireinthehole00@gmail.com :laugh: