• 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!

Executing commands from program

marcuz90

New Member
Joined
Apr 19, 2011
Messages
48
Reaction score
0
Is it possible to make a program that executes commands in Tibia??
I think it works with LUA or something,
Thx for answer.

(in C#)
 
I might know now xd I need in in globalevents/scripts add commandexecute.lua, in that file I would add something with database, and the program communicate with database..
Anyway can anyone fix this code?? ( result.getDataString doesn't work )
Code:
function onThink(interval, lastExecution)
	result = db.getResult("SELECT `commandexecute`, `pname` FROM commands")
	local text = result.getDataString("commandexecute")
	local name = result.getDataString("pname")
	player = getPlayerByName(name)
	if(commandexecute=="kick") then
		doRemoveCreature(player)
	end
    return TRUE
end

// using 0.3.6pl1
 
Back
Top