Enok
return x<min and min or(x>max and max or x)end
- Joined
- Jun 16, 2014
- Messages
- 3
- Reaction score
- 0
Add 'CLIPORT = false' to global.lua
Make a cliport.lua in data/talkactions/scripts and add this code http://pastebin.com/MvgYazVC
Add this to talkactions.xml <talkaction words="/cliport" separator=" " script="cliport.lua" />
Replace the onLook() function in data/events/scripts/player.lua with http://pastebin.com/QHBBYQiK
/cliport ingame will toggle it to either on or off. When it's on you'll teleport to things instead of looking at them and when it's off you'll recieve the normal description.
Very simple, very handy. I've been poking around the forum and I've seen a few things regarding this but nothing of acual value. Someone stated that it was impossible without modifying the server's source - whatever you were smoking, give it here please.
Make a cliport.lua in data/talkactions/scripts and add this code http://pastebin.com/MvgYazVC
Add this to talkactions.xml <talkaction words="/cliport" separator=" " script="cliport.lua" />
Replace the onLook() function in data/events/scripts/player.lua with http://pastebin.com/QHBBYQiK
/cliport ingame will toggle it to either on or off. When it's on you'll teleport to things instead of looking at them and when it's off you'll recieve the normal description.
Very simple, very handy. I've been poking around the forum and I've seen a few things regarding this but nothing of acual value. Someone stated that it was impossible without modifying the server's source - whatever you were smoking, give it here please.
Last edited: