• 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 Afk System Help

Sneaky Diller

Member
Joined
Feb 27, 2016
Messages
26
Solutions
1
Reaction score
6
Hello. I have problem with antibot script.
Tfs 0.4 no errors but no work.

[XML] local key = 125 function onKill(cid, target, damage, flags) if isMonster(ta - Pastebin.com
Creaturescript ^

[XML] function onThink() for _, cid in ipairs(getPlayersOnline()) do local t = ge - Pastebin.com
Globalevent ^

[XML] local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exha - Pastebin.com
Talkaction ^

I want player after level 400 if afk botting tp him doTeleportThing(cid, {x=2511, y=2467, z=6})
and doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 200

or if he answer the math question correct 35+2? blabla he can continue exping/hunting

Thanks
 
Hello. I have problem with antibot script.
Tfs 0.4 no errors but no work.

[XML] local key = 125 function onKill(cid, target, damage, flags) if isMonster(ta - Pastebin.com
Creaturescript ^

[XML] function onThink() for _, cid in ipairs(getPlayersOnline()) do local t = ge - Pastebin.com
Globalevent ^

[XML] local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exha - Pastebin.com
Talkaction ^

I want player after level 400 if afk botting tp him doTeleportThing(cid, {x=2511, y=2467, z=6})
and doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 200

or if he answer the math question correct 35+2? blabla he can continue exping/hunting

Thanks
Replying here.. instead of the pm you sent me.
--------------
Everything looks good to me with a quick scan through.

Are you sure you installed it all correctly?

onKill script requires
Code:
data/creaturescripts/creaturescripts.xml
data/creaturescripts/scripts/login.lua

onThink script requires
Code:
data/globalevents/globalevents.xml

onSay script requires
Code:
data/talkactions/talkactions.xml

---
if yes to all above..I'd start adding prints to each section.. and just testing where it's failing.
just simple prints to start.

Once you find where the issue might be, then you can start looking for a solution.
Lua:
print(1)
print("2 - " .. getCreatureStorage(cid, 126)  .. "")
 
Last edited:
Back
Top