Hi, I am farely new to scripting - I have been following through John's tutorials lately. I am trying to test my skills and make a drag command. Can someone help me with this drag command? You are supposed to activate the drag tool by saying /drag and to turn off by /undrag
function drag()
if (player.ap =100)
if (player.chat = /drag)
if (player.chat = "/undrag")
mouse.x = mouse.x
mouse.y = mouse.y
player.chat = "Drag is turned on"
else (player.chat = "You cannot use this command!")
player.x = mousex
player.y = mousey
I just don't know the syntax for like how to pick the player up and stuff, how can you make it so it activates when you pick the player up.
Thanks