Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onThink()
- for _, cid in ipairs(getPlayersOnline()) do
- local t = getCreatureStorage(cid, 128)
- if t ~= -1 then
- if os.time() >= t then
- for i = 125, 128 do
- doCreatureSetStorage(cid, i)
- end
- --[[
- doBroadcastMessage(getCreatureName(cid) .. ' has been banned for 2 days for afk botting.')
- doAddAccountBanishment(getPlayerAccountId(cid), getPlayerGUID(cid), os.time() + 2 * 86400, 12, 2, 'Banished by Antibot System', 0)
- doRemoveCreature(cid)
- ]]
- doBroadcastMessage(getCreatureName(cid) .. ' has been died by Anti AFK Monster for afk botting.')
- doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 200)
- doTeleportThing(cid, {x=2511, y=2467, z=6})
- else
- doSendAnimatedText(getThingPos(cid), tostring(getCreatureStorage(cid, 126)):sub(2) ..' = ?', COLOR_RED, cid)
- local my = getThingPos(cid)
- for _, p in ipairs(getArea(my, 1, 1)) do
- if doComparePositions(my, p) == false then
- doSendMagicEffect(p, CONST_ME_ENERGYAREA)
- end
- end
- end
- end
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement