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

ElfBot question

Josens

Member
Joined
Jul 5, 2020
Messages
4
Reaction score
10
Hey there, I have an ElfBot Script that find Rashid, count my Dragon Scale Mails items from my backpack, and sell them to him, but, the problem is it works on all servers, but not on my.

Here the ElfBot Script:
Lua:
if [$screencount.'Rashid' != 1] {skip}
follow Rashid | wait 1000 | npcsay hi | wait 700 | npcsay trade | wait 700
countitems 3386 | if [$count >= 1] {sellitems 3386 $count | wait 500}
s-topattack | closeallwindows | wait 500 | openbpitem | wait 1000

Note: When I replace $count to the real amount of dragon scale mails on my backpack, it works. Apparently, the trouble are there, in the $count "variable"

Thanks.
 
elfbot scripting looks horrible. xD

From my quick research, it looks like you'll want to change it like this..
Lua:
if [$screencount.'Rashid' != 1] {skip}
follow Rashid | wait 1000 | npcsay hi | wait 700 | npcsay trade | wait 700
set $count '$itemcount.3386' | if [$count >= 1] {sellitems 3386 $count | wait 500}
s-topattack | closeallwindows | wait 500 | openbpitem | wait 1000
 
Back
Top Bottom