Illusion Storm
Zakładam kominiare.
- Joined
- Aug 28, 2008
- Messages
- 377
- Reaction score
- 0
jak na więszkości serwerów z taką ilością graczy, dodać do tego boterów to ludzi online jest 10?

Obecnie 657 graczy jest Online - 23 z nich jest aktywnych, 413 jest AFK, a 221 boci na małpach.
Wiem ze cos w ten desen trzeba zrobic, ale nie wiem jak jest wysylana ilosc online na listy, wiec kupie od Kuli za 20pln.LUA:function onThink(interval, lastExecution, thinkInterval) for _, pid in ipairs(getPlayersOnline()) do if getPlayerIdleTime(pid) > 10 * 1000 * 60 then db.executeQuery("UPDATE `players` SET `afk` = 1 WHERE `world_id` = " .. getConfigValue('worldId') .. " AND `afk` > 1;") end end return TRUE end
Noo i do bazy w players dodać tabelke 'afk' i coś pozmieniać w whoisonline.php
Nie wiem czy zadziała![]()
function onThink(interval, lastExecution, thinkInterval)
for _, pid in ipairs(getPlayersOnline()) do
if getPlayerIdleTime(pid) > 2 * 1000 * 60 then
doSendAnimatedText(getCreaturePosition(pid), "AFK", TEXTCOLOR_WHITE)
end
end
return TRUE
end