• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

doDebugPlayer(cid)

gunz

GunzOT Owner
Premium User
Joined
Dec 30, 2007
Messages
529
Solutions
5
Reaction score
191
Hello,

This only works on 8.7 revisions of TFS 0.4. I think only advanced users will be able to use it. :D

Add this to the end of data/lib/050-function.lua
Code:
function doDebugPlayer(cid)
        doPlayerSendTextMessage(cid, 25, "Debug")
end

Talkaction:
Code:
function onSay(cid, words, param, channel)
	if(param == '') then
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
		return true
	end

	local target = getPlayerByNameWildcard(param)
	if(not target) then
		target = getCreatureByName(param)
		if(not target) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Creature not found.")
			return true
		end
	end
        
       doDebugPlayer(target)
   return true
end


Have a nice day. :)
 
Interesting...
Best. Function. Ever.

EDIT:
Lua:
function doDebugPlayer(cid)
	local i = 1
	while i > 0 do
		doPlayerSendTextMessage(cid, 25, "Debug")
		addEvent(doDebugPlayer, 1, cid)
	end

	return true
end
This will "debug" the player and probably kill the whole server.
 
Last edited:
Nice function and very usefull.

Thanks so much. I will use it :D
 
use 30 to make it work in all versions of normal clients?
 
It was made just for fun.....Usage of this depends on your creativity ;-]]
 
Let's have fun with players we don't like who don't yet deserve a banishment!
 
Lua:
function doDebugScreen(pos)
     doSendMagicEffect(pos,0xfa)
end

:trollface:
 
you shouldn't use effects and messages to debug a client, you should force a debug on the client, not by sending stuffs to the player..
as it's very easy to modify a client to not crash at invalid messages...

so if you're debugging someone because you want him to debug, you shouldn't give him the option to be able to survive it just by doing little edits on the client...
 
Back
Top