Hello, i'd like to know if there's any way to print some values to the console.
example:
It would be very usefull but its not working actually :/
example:
Code:
talk = TalkAction("/town")
function talk.onSay(player, words, param)
if not player:getGroup():getAccess() or player:getAccountType() < ACCOUNT_TYPE_GOD then
print(town:getTemplePosition())
return true
end
if param == "" then
print(town:getTemplePosition())
player:sendCancelMessage("Command param required.")
return false
end
local town = Town(param) or Town(tonumber(param))
if town then
player:teleportTo(town:getTemplePosition())
print(town:getTemplePosition())
else
player:sendCancelMessage("Town not found.")
end
return false
end
talk:separator(" ")
talk:register()
It would be very usefull but its not working actually :/