moving report to addons
This commit is contained in:
parent
6a0677fc26
commit
04c2e1d245
|
@ -2,15 +2,3 @@
|
||||||
-- you can place any custom user code here
|
-- you can place any custom user code here
|
||||||
|
|
||||||
Keyboard.bindKeyDown('Ctrl+R', Client.reloadScripts)
|
Keyboard.bindKeyDown('Ctrl+R', Client.reloadScripts)
|
||||||
|
|
||||||
-- client usage report
|
|
||||||
local reportEvent
|
|
||||||
local reportMessage = g_app.getVersion() .. ";" .. g_app.getBuildRevision() .. ";" .. g_game.getProtocolVersion() .. ";" .. g_app.getBuildDate()
|
|
||||||
function reportClientUsage()
|
|
||||||
if g_game.isOnline() and EnterGame.host and (EnterGame.host:lower():find('trpgb') or EnterGame.host:lower():find('tibiarpgbrasil')) then
|
|
||||||
g_game.talk('!otc-report ' .. reportMessage)
|
|
||||||
end
|
|
||||||
removeEvent(reportEvent)
|
|
||||||
reportEvent = scheduleEvent(reportClientUsage, 5*60000)
|
|
||||||
end
|
|
||||||
connect(g_game, { onLogin = reportClientUsage } )
|
|
||||||
|
|
Loading…
Reference in New Issue