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

Anti-Idle and ELFBot Autobuy

Gabriel Tibiano

New Member
Joined
Nov 21, 2009
Messages
420
Reaction score
4
Hello guys, this is my first post.. so excuse me if i make something wrong.

Well.. here we go.
I got two problems and i'll put the in sequence.

PS: I use TFS0.4_Dev - 8.60

-------- Anti-Idle --------

My anti-idle system is not working, I changed it for several other systems and nothing changes, I'll post here the codes.

idleWarningTime = 5 * 60 * 1000
idleKickTime = 6 * 60 * 1000
expireReportsAfterReads = 1
playerQueryDeepness = 2
maxItemsPerPZTile = 0
maxItemsPerHouseTile = 0

local config = {
idleWarning = getConfigValue('idleWarningTime'),
idleKick = getConfigValue('idleKickTime')
}

function onThink(cid, interval)
if(getTileInfo(getCreaturePosition(cid)).nologout or getCreatureNoMove(cid) or
getPlayerCustomFlagValue(cid, PLAYERCUSTOMFLAG_ALLOWIDLE)) then
return true
end

local idleTime = getPlayerIdleTime(cid) + interval
doPlayerSetIdleTime(cid, idleTime)
if(config.idleKick > 0 and idleTime > config.idleKick) then
doRemoveCreature(cid)
elseif(config.idleWarning > 0 and idleTime == config.idleWarning) then
local message = "You have been idle for " .. math.ceil(config.idleWarning / 60000) .. " minutes"
if(config.idleKick > 0) then
message = message .. ", you will be disconnected in "
local diff = math.ceil((config.idleWarning - config.idleKick) / 60000)
if(diff > 1) then
message = message .. diff .. " minutes"
else
message = message .. "one minute"
end

message = message .. " if you are still idle"
end

doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, message .. ".")
end

return true
end


Login.lua
Code:
registerCreatureEvent(cid, "Idle")

Creaturescripts.xml
Code:
<event type="think" name="Idle" event="script" value="idle.lua"/>


-------- ELFBot - Autobuy --------

The 'Bug' is as follows: an player comes in npc and use of such a 'Hotkey' of ElfBot and use the following codes:​

Code:
auto 1 buyitems 3028 0
auto 1 stackitems
auto 1 sellitems 3028 100

I asked to some friends to acquire information about such a 'hotkey' that does it all, and there are the answers:​

1 - "He buys an item first and then a few milliseconds he buy another, then he pays nothing at the other because of this bug."
2 - "The character has to say" trade "to the NPC before opening the ElfBot, then opens and puts the command in the Hotkey and activates the bot so it will purchase potions until to be without capacity."
3 - "This only works with items stackable."

Below is a video of a Brazilian taught how to do this trick​
[video=youtube;zZdLxCBGzkA]http://www.youtube.com/watch?v=zZdLxCBGzkA[/video]


If anyone has the solution to one of my two problems, PLEASE HELP! :D

Thankz~~
Gabriel.
 
Back
Top