Log in

View Full Version : [Update] XenoBot v2.7.1



DarkstaR
08-31-2012, 02:17 AM
This update fixes some bugs which arose in the last update. Some bugs may still be present so dont hesitate to report them (in detail, please).

Changelog:

v2.7.1
Fixed a bug which caused the Walker to get confused with like-named labels.
Fixed a bug which caused Mapclick to get stuck and not re-try.
Fixed a bug which caused the Pathfinder to view floating borders as walkable.
Fixed a bug which caused the Pathfinder to not find off-screen paths in certain areas.
Fixed a bug which caused the Pathfinder to fall down holes/walk up stairs a lot more often.



For download and operation instructions, refer back to this thread:
http://forums.xenobot.net/showthread.php?19

soul4soul
08-31-2012, 02:19 AM
Fixed a bug which caused the Pathfinder to fall down holes/walk up stairs a lot more often.
:) Im very happy now. Great work with all the quick bug fixes

Arak
08-31-2012, 02:39 AM
nice job m8 ty

Messed Around
08-31-2012, 03:44 AM
Nice job DarkstaR ;)

padj
08-31-2012, 03:57 AM
This update fixes some bugs which arose in the last update. Some bugs may still be present so dont hesitate to report them (in detail, please).

Changelog:

v2.7.1
Fixed a bug which caused the Walker to get confused with like-named labels.
Fixed a bug which caused Mapclick to get stuck and not re-try.
Fixed a bug which caused the Pathfinder to view floating border as walkable.
Fixed a bug which caused the Pathfinder to not find off-screen paths in certain areas.
Fixed a bug which caused the Pathfinder to fall down holes/walk up stairs a lot more often.



For download and operation instructions, refer back to this thread:
http://forums.xenobot.net/showthread.php?19
appreciate the efforts.

Rexdale
08-31-2012, 04:08 AM
thanks for the quick update and fix!

my brimestone bugs script works perfectly now!

Shadow Wolf
08-31-2012, 06:08 AM
Sweet thanks for the Quick Update.

~ Shadow Wolf

flpsan
08-31-2012, 06:09 AM
Could you take a look at the CPU usage? It's wasting more than before. In my PC each Xeno was using like 3-4% of my CPU and now its like 6-8%

LuckyStrike
08-31-2012, 06:53 AM
Also i have noticed some little lags while targeting is on, and i want to make it off, and i got bigger cpu usage at all ;p

Stusse
08-31-2012, 07:38 AM
Havent tried yet but update seem perfectly from the bugs I experienced. Lets hope it work! Also ++ for fast update!

PunktG
08-31-2012, 08:02 AM
thx for fast update
testing now :)

Joe
08-31-2012, 08:32 AM
Everyhing works flawlesy now ;)

Dezzie
08-31-2012, 10:09 AM
Lol complaining about 6-8 % of cpu usage... I tried Ibot, which is a piece of shit imo, it uses 80 % of my cpu <.<
Thx for update btw

Y2Quake
08-31-2012, 10:11 AM
ur cool ;)

PunktG
08-31-2012, 10:19 AM
all working great now thx :)

flpsan
08-31-2012, 12:56 PM
Lol complaining about 6-8 % of cpu usage... I tried Ibot, which is a piece of shit imo, it uses 80 % of my cpu <.<
Thx for update btw
It's too much for who bots 15 accs at the same time, and what's the problem on complaining about something that was better before?

Bjornen
08-31-2012, 12:59 PM
I'm having some looting issue with this update. Besides that, everything is working great! :)

DarkstaR
08-31-2012, 01:09 PM
Lol complaining about 6-8 % of cpu usage... I tried Ibot, which is a piece of shit imo, it uses 80 % of my cpu <.<
Thx for update btw

I thought I noticed some choppy lag but I wasn't sure. I'll look into it. One thing I need to do is throw it up on a profiler and optimize ALL THE THINGS.


I'm having some looting issue with this update. Besides that, everything is working great! :)

What kind of looting issues?

soul4soul
08-31-2012, 01:15 PM
What kind of looting issues?
2 issues. 1 is old 1 is new

1) If you are near stairs and kill something and the next waypoint is down them often the bot will walk down before looting the body. The good news is that often when the bot makes its way back around the waypoints itll open the body then.
2) Except for the bodies near stairs I havent seen the bot missing any/as many bodies as before. However I have seen a bug appear multiply times that the bot will only loot some of the items in the corpse.

Bjornen
08-31-2012, 01:17 PM
What kind of looting issues?

When the bot has finished killing the monster, it sometimes won't loot. Just stands there and I'll get disconnected for inactivity.
It seems to skip some bodies too, and sometimes it's just opening bodies without looting.

Infernal Bolt
08-31-2012, 01:21 PM
So you reverted back to the old walker system? It's working good now anyways.
Thanks for the update :)


Could you take a look at the CPU usage? It's wasting more than before. In my PC each Xeno was using like 3-4% of my CPU and now its like 6-8%

lowering the fps on the clients will lower the cpu usage.

Kingdom
08-31-2012, 01:24 PM
When the bot has finished killing the monster, it sometimes won't loot. Just stands there and I'll get disconnected for inactivity.
It seems to skip some bodies too, and sometimes it's just opening bodies without looting.

Same, only on ancient scarab i noticed it though

DarkstaR
08-31-2012, 01:32 PM
So you reverted back to the old walker system? It's working good now anyways.
Thanks for the update :).

Nope. Fixed the new one.


Same, only on ancient scarab i noticed it though

This is weird. I haven't experienced this. Can you give me a script which causes it?

twan
08-31-2012, 01:40 PM
Thanks for the fast update!

Tho i got some problems with looting too. I'm botting sea serpents(luke fisher script), but it skips loot quite often, i think it's because you are walking slow and then the bot already thinks he passed the tile. Thanks

1 client uses 70% of my cpu-usage btw, but that's also when it's not injected. 2 months ago i was able to run 4 clients but idk why i can't do it anymore:S

Kingdom
08-31-2012, 01:42 PM
http://forums.xenobot.net/showthread.php?6420-Ancient-Scarab-big-spawn

Infernal Bolt
08-31-2012, 02:01 PM
Nope. Fixed the new one.

Okay, it's delaying on nodes again and the last one didn't do that so that's why I thought it was the old walker.

Fixi
08-31-2012, 04:29 PM
Working fine for me on 3 chars. Faster than before and all stucks got fixed for me atleast :)
Keep up that fast and good work!

But sometimes it still walks over fire even when there is way right and left to walk along

pain0816
08-31-2012, 05:32 PM
i got problem with walker. sometimes he walk on 2sqm like he dont know which way to choose. it looks like this M elf arcanist what is near wall and shot at me and 1-2 are sqm shere bot is walking from 1 to 2 from 2 to 1 and cant reach a target, this also happened to me when between me and dead corpse was unwalkable sqm. first he want to go north and then south and all the timeruning from 1 to 2
xxxxxxxxxxx xxxxxxxx
xxxxxx12xxx xCU2xxx C-corpse
xMxxxxxxxxx xxU1xxx U- unwalkable sqm
xxxxxxxxxxx xxxxxxx

Xeno Scripts
08-31-2012, 05:33 PM
DarkstaR: I got a problem with the cookies, it looks like i have to pay for them after the latest update. Could you please check it?

DarkstaR
08-31-2012, 05:51 PM
i got problem with walker. sometimes he walk on 2sqm like he dont know which way to choose. it looks like this M elf arcanist what is near wall and shot at me and 1-2 are sqm shere bot is walking from 1 to 2 from 2 to 1 and cant reach a target, this also happened to me when between me and dead corpse was unwalkable sqm. first he want to go north and then south and all the timeruning from 1 to 2
xxxxxxxxxxx xxxxxxxx
xxxxxx12xxx xCU2xxx C-corpse
xMxxxxxxxxx xxU1xxx U- unwalkable sqm
xxxxxxxxxxx xxxxxxx

I'll look into it, thanks.

Tirekos
08-31-2012, 06:20 PM
ei,after update i got many problems...
now the bot doesnt make actions like talk with npc,open doors etc etc....
can u check it?
thanks in advance

Fixi
08-31-2012, 06:58 PM
Do you have your actions in a on-liner or in a lua file? Maybe post your actions :)

stefps
08-31-2012, 07:08 PM
i got a reffiler issue, its supposed to buy 750 manas and it does only buy 500-600 and it leaves money in the main backpack,

Tirekos
08-31-2012, 07:57 PM
Do you have your actions in a on-liner or in a lua file? Maybe post your actions :)
yes, i got the lua script.

nato12
08-31-2012, 09:15 PM
there is a problem at the momment of deposit, if someone is in the depot that u gonna deposit, the tibia client just get error

Fixi
08-31-2012, 10:04 PM
yes, i got the lua script.

then post it here. because all my scripts are running just fine :)

Alastorsz
08-31-2012, 10:25 PM
I found another bug ( dont know if u disabled it on porpuse, if u do then srry) doest work the hold target on frag helper

SomeKindOfMonster
08-31-2012, 10:54 PM
once again, not sure if this is due to the update or just xeno, bot is missing much more loot than usual. It opens bodies, sometimes takes 2-3 things, then leaves something. In particular rares lol. It's always missed some here and there, but not quite like this. In this case I'm using loot first.

kubax36
08-31-2012, 11:15 PM
hold target isnt working while bot is paused

Alastorsz
08-31-2012, 11:46 PM
ooh i see, by bad then, so sorry

SomeKindOfMonster
09-01-2012, 12:00 AM
hold target isnt working while bot is paused

lol thats never worked

Tirekos
09-01-2012, 12:11 AM
mmm if i say true idk how to post it there.. hehe :/

kubax36
09-01-2012, 12:26 AM
lol thats never worked i just answered for Alastorsz :D

Rossie
09-01-2012, 12:31 AM
After X time bot stop the scripter ... I Mean , The script are still there , but he dont work ...Hard to explain xD ... like the bot skip every label...
But this happen after a X time of boting , not a the first road of the map XD :P

Tirekos
09-01-2012, 12:46 AM
Some one can help me and say how can i upload here an lua script?
THANKS!

Tirekos
09-01-2012, 12:55 AM
http://i48.tinypic.com/106nblu.png

lol?

PunktG
09-01-2012, 07:04 AM
After X time bot stop the scripter ... I Mean , The script are still there , but he dont work ...Hard to explain xD ... like the bot skip every label...
But this happen after a X time of boting , not a the first road of the map XD :P


today in night i bot 8 accounts
and only on 1 i was ofline
when i log in game bot was on hunt and stand in scarab cave
all rest tibia was working great
will check this today to

Himzelf
09-01-2012, 10:05 AM
mabye equipt items like rings and amulets by hotkey next update? plizzzzzzzzzzzz

Tirekos
09-01-2012, 01:40 PM
BoltsBp = "Purple Backpack"
DefaultBoots = 3079 -- Your Boots ID, Draken Boots ID is 4033, Boots of Haste ID is 3079
ManaToEquip = 90 -- Mana Amount to equip or unequip Soft Boots in percentage


--!!!!!!!!!!!!!!!!!!!!!!!
--!!!DO NOT EDIT BELOW!!!
--!!!!!!!!!!!!!!!!!!!!!!!

function equipSoftBoots()
local BOOTS1ID = 6529 -- Soft Boots ID
local SOFTSINUSE = 3549 -- softs being in use
local Backpack = Container.GetFirst()
if (Self.Feet().id == 6530) then
for Spot = 0, Backpack:ItemCount() do
local Boots = Backpack:GetItemData(Spot)
if (Boots.id == DefaultBoots) then
Backpack:MoveItemToEquipment(Spot, "feet")
end
end
elseif (math.floor((Self.Mana() / Self.MaxMana()) * 100)) < ManaToEquip and (Self.Feet().id ~= SOFTSINUSE) then
for Spot = 0, Backpack:ItemCount() do
local Boots = Backpack:GetItemData(Spot)
if (Boots.id == BOOTS1ID) then
Backpack:MoveItemToEquipment(Spot, "feet")
end
end
elseif (math.floor((Self.Mana() / Self.MaxMana()) * 100)) > ManaToEquip and (Self.Feet().id ~= DefaultBoots) then
for Spot = 0, Backpack:ItemCount() do
local Boots = Backpack:GetItemData(Spot)
if (Boots.id == DefaultBoots) then
Backpack:MoveItemToEquipment(Spot, "feet")
end
end
end
end

function equipLifeRing()
local Backpack = Container.GetFirst()
if (Self.Ring().id ~= 3089) then
for Spot = 0, Backpack:ItemCount() do
local Ring = Backpack:GetItemData(Spot)
if (Ring.id == 3052) then
Backpack:MoveItemToEquipment(Spot, "ring")
end
end
end
end

Self.HealthPercent = function ()
return math.abs(Self.Health() / (Self.MaxHealth() * 0.01))
end

function healer()
if (Self.HealthPercent() < 90) and (Self.HealthPercent() > 71) and (Self.CanCastSpell("exura")) then
Self.Say("exura")
elseif (Self.HealthPercent() < 75) and (Self.HealthPercent() > 56) and (Self.CanCastSpell("exura gran")) then
Self.Say("exura gran")
elseif (Self.HealthPercent() < 60) and (Self.CanCastSpell("exura gran san")) then
Self.Say("exura gran san")
end
end

function SpellCast(spell)
local Monster1 = "Lizard High Guard"
local Monster2 = "Lizard Legionnaire"
local Monster3 = "Lizard Dragon Priest"
local Monster4 = "Killer Caiman"
local TargetID = Self.TargetID()
local Target = Creature.GetByID(TargetID)
local pos = Self.Position()
if (Self.CanCastSpell(spell)) and (Target:Name() == Monster1) and (getDistanceBetween(Target:Position(), pos) <= 4) then
Self.Say(spell)
elseif (Self.CanCastSpell(spell)) and (Target:Name() == Monster2) and (getDistanceBetween(Target:Position(), pos) <= 4) then
Self.Say(spell)
elseif (Self.CanCastSpell(spell)) and (Target:Name() == Monster3) and (getDistanceBetween(Target:Position(), pos) <= 4) then
Self.Say(spell)
elseif (Self.CanCastSpell(spell)) and (Target:Name() == Monster4) and (getDistanceBetween(Target:Position(), pos) <= 4) then
Self.Say(spell)
elseif (not Self.MeetsSpellRequirements(spell)) then
print("%s can not be cast. You either lack the mana or required level!", spell)
end
end

while (true) do
healer()
SpellCast("exori san")
equipSoftBoots()
equipLifeRing()
if (Self.DistanceFromPosition(33197, 31347, 6) < 1) then
gotoLabel("AfterTP")
wait(1000)
elseif (Self.DistanceFromPosition(33144, 31248, 6) < 1) then
gotoLabel("AfterTP1")
wait(1000)
elseif (Self.DistanceFromPosition(33200, 31347, 6) < 1) then
gotoLabel("AfterTP2")
wait(1000)
elseif Self.ItemCount(236) >= 1 and (Self.HealthPercent() <= 65) then
Self.UseItemWithMe(236)
sleep(math.random(200, 600))
elseif Self.ItemCount(283) >= (math.random(10, 15)) then
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, 283, 284, 285)
elseif Self.ItemCount(10328) > 0 then
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, 10328)
elseif Self.ItemCount(3450) >= 1 then
local MainBp = Container.GetFirst()
local DestinationBp = Container.GetByName(BoltsBp)
for spot = 0, MainBp:ItemCount() do
local item = MainBp:GetItemData(spot)
if (item.id == 3450) then
MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 0)
wait(500)
break
end
end
end
wait(200)
end

Rossie
09-01-2012, 05:24 PM
After X time bot stop the scripter ... I Mean , The script are still there , but he dont work ...Hard to explain xD ... like the bot skip every label...
But this happen after a X time of boting , not a the first road of the map XD :P

Ok I use 2 lua fil in my script , and I notice just one stop work ... maybe it the way they are made ? .. beacause I botted 7 account .. and 3 with the same script , and only this 3 get bug , but before the update I never notice this bug ..


registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "Check1") then
setBotEnabled(false)
if ((Self.ItemCount(3031) >= 1000)) or (Self.Cap() < 90) or ((Self.ItemCount(12517) >= 3)) then
setBotEnabled(true)
gotoLabel("Godepot")
else
setBotEnabled(true)
gotoLabel("Cave2")
end
elseif (labelName == "Check2") then
setBotEnabled(false)
if ((Self.ItemCount(3031) >= 1000)) or (Self.Cap() < 90) or ((Self.ItemCount(12517) >= 3)) then
setBotEnabled(true)
gotoLabel("Godepot")
else
setBotEnabled(true)
gotoLabel("Cave3")
end
elseif (labelName == "Check3") then
setBotEnabled(false)
if ((Self.ItemCount(3031) >= 1000)) or (Self.Cap() < 90) or ((Self.ItemCount(12517) >= 3)) then
setBotEnabled(true)
gotoLabel("Godepot")
else
setBotEnabled(true)
gotoLabel("Cave1")
end

elseif (labelName == "AllezHunt") then
setBotEnabled(false)
gotoLabel("Gocave")
setBotEnabled(true)
elseif (labelName == "Allezdepot") then
setBotEnabled(false)
gotoLabel("Godepot")
setBotEnabled(true)
elseif (labelName == "Place1") then
setBotEnabled(false)
gotoLabel("Cave1")
setBotEnabled(true)
elseif (labelName == "Place2") then
setBotEnabled(false)
gotoLabel("Cave2")
setBotEnabled(true)
elseif (labelName == "Place3") then
setBotEnabled(false)
gotoLabel("Cave3")
setBotEnabled(true)
elseif (labelName == "Bin voir") then
setBotEnabled(false)
gotoLabel("Gocave")
setBotEnabled(true)
elseif (labelName == "Acheterbp") then
setBotEnabled(false)
gotoLabel("Temple")
setBotEnabled(true)
end
end

Tibtrak
09-01-2012, 05:36 PM
Ok I use 2 lua fil in my script , and I notice just one stop work ... maybe it the way they are made ? .. beacause I botted 7 account .. and 3 with the same script , and only this 3 get bug , but before the update I never notice this bug ..


registerEventListener(WALKER_SELECTLABEL, "onWalkerSelectLabel")
function onWalkerSelectLabel(labelName)
if (labelName == "Check1") then
setBotEnabled(false)
if ((Self.ItemCount(3031) >= 1000)) or (Self.Cap() < 90) or ((Self.ItemCount(12517) >= 3)) then
setBotEnabled(true)
gotoLabel("Godepot")
else
setBotEnabled(true)
gotoLabel("Cave2")
end
elseif (labelName == "Check2") then
setBotEnabled(false)
if ((Self.ItemCount(3031) >= 1000)) or (Self.Cap() < 90) or ((Self.ItemCount(12517) >= 3)) then
setBotEnabled(true)
gotoLabel("Godepot")
else
setBotEnabled(true)
gotoLabel("Cave3")
end
elseif (labelName == "Check3") then
setBotEnabled(false)
if ((Self.ItemCount(3031) >= 1000)) or (Self.Cap() < 90) or ((Self.ItemCount(12517) >= 3)) then
setBotEnabled(true)
gotoLabel("Godepot")
else
setBotEnabled(true)
gotoLabel("Cave1")
end

elseif (labelName == "AllezHunt") then
setBotEnabled(false)
gotoLabel("Gocave")
setBotEnabled(true)
elseif (labelName == "Allezdepot") then
setBotEnabled(false)
gotoLabel("Godepot")
setBotEnabled(true)
elseif (labelName == "Place1") then
setBotEnabled(false)
gotoLabel("Cave1")
setBotEnabled(true)
elseif (labelName == "Place2") then
setBotEnabled(false)
gotoLabel("Cave2")
setBotEnabled(true)
elseif (labelName == "Place3") then
setBotEnabled(false)
gotoLabel("Cave3")
setBotEnabled(true)
elseif (labelName == "Bin voir") then
setBotEnabled(false)
gotoLabel("Gocave")
setBotEnabled(true)
elseif (labelName == "Acheterbp") then
setBotEnabled(false)
gotoLabel("Temple")
setBotEnabled(true)
end
end

Are you sure you've downloaded the newest version of xenobot?
There was 2 updates in very short time, the first one made problems like the one you're explaining.
Maybe try to download and install xenobot again?

Tirekos
09-01-2012, 08:12 PM
BoltsBp = "Purple Backpack"
DefaultBoots = 3079 -- Your Boots ID, Draken Boots ID is 4033, Boots of Haste ID is 3079
ManaToEquip = 90 -- Mana Amount to equip or unequip Soft Boots in percentage


--!!!!!!!!!!!!!!!!!!!!!!!
--!!!DO NOT EDIT BELOW!!!
--!!!!!!!!!!!!!!!!!!!!!!!

function equipSoftBoots()
local BOOTS1ID = 6529 -- Soft Boots ID
local SOFTSINUSE = 3549 -- softs being in use
local Backpack = Container.GetFirst()
if (Self.Feet().id == 6530) then
for Spot = 0, Backpack:ItemCount() do
local Boots = Backpack:GetItemData(Spot)
if (Boots.id == DefaultBoots) then
Backpack:MoveItemToEquipment(Spot, "feet")
end
end
elseif (math.floor((Self.Mana() / Self.MaxMana()) * 100)) < ManaToEquip and (Self.Feet().id ~= SOFTSINUSE) then
for Spot = 0, Backpack:ItemCount() do
local Boots = Backpack:GetItemData(Spot)
if (Boots.id == BOOTS1ID) then
Backpack:MoveItemToEquipment(Spot, "feet")
end
end
elseif (math.floor((Self.Mana() / Self.MaxMana()) * 100)) > ManaToEquip and (Self.Feet().id ~= DefaultBoots) then
for Spot = 0, Backpack:ItemCount() do
local Boots = Backpack:GetItemData(Spot)
if (Boots.id == DefaultBoots) then
Backpack:MoveItemToEquipment(Spot, "feet")
end
end
end
end

function equipLifeRing()
local Backpack = Container.GetFirst()
if (Self.Ring().id ~= 3089) then
for Spot = 0, Backpack:ItemCount() do
local Ring = Backpack:GetItemData(Spot)
if (Ring.id == 3052) then
Backpack:MoveItemToEquipment(Spot, "ring")
end
end
end
end

Self.HealthPercent = function ()
return math.abs(Self.Health() / (Self.MaxHealth() * 0.01))
end

function healer()
if (Self.HealthPercent() < 90) and (Self.HealthPercent() > 71) and (Self.CanCastSpell("exura")) then
Self.Say("exura")
elseif (Self.HealthPercent() < 75) and (Self.HealthPercent() > 56) and (Self.CanCastSpell("exura gran")) then
Self.Say("exura gran")
elseif (Self.HealthPercent() < 60) and (Self.CanCastSpell("exura gran san")) then
Self.Say("exura gran san")
end
end

function SpellCast(spell)
local Monster1 = "Lizard High Guard"
local Monster2 = "Lizard Legionnaire"
local Monster3 = "Lizard Dragon Priest"
local Monster4 = "Killer Caiman"
local TargetID = Self.TargetID()
local Target = Creature.GetByID(TargetID)
local pos = Self.Position()
if (Self.CanCastSpell(spell)) and (Target:Name() == Monster1) and (getDistanceBetween(Target:Position(), pos) <= 4) then
Self.Say(spell)
elseif (Self.CanCastSpell(spell)) and (Target:Name() == Monster2) and (getDistanceBetween(Target:Position(), pos) <= 4) then
Self.Say(spell)
elseif (Self.CanCastSpell(spell)) and (Target:Name() == Monster3) and (getDistanceBetween(Target:Position(), pos) <= 4) then
Self.Say(spell)
elseif (Self.CanCastSpell(spell)) and (Target:Name() == Monster4) and (getDistanceBetween(Target:Position(), pos) <= 4) then
Self.Say(spell)
elseif (not Self.MeetsSpellRequirements(spell)) then
print("%s can not be cast. You either lack the mana or required level!", spell)
end
end

while (true) do
healer()
SpellCast("exori san")
equipSoftBoots()
equipLifeRing()
if (Self.DistanceFromPosition(33197, 31347, 6) < 1) then
gotoLabel("AfterTP")
wait(1000)
elseif (Self.DistanceFromPosition(33144, 31248, 6) < 1) then
gotoLabel("AfterTP1")
wait(1000)
elseif (Self.DistanceFromPosition(33200, 31347, 6) < 1) then
gotoLabel("AfterTP2")
wait(1000)
elseif Self.ItemCount(236) >= 1 and (Self.HealthPercent() <= 65) then
Self.UseItemWithMe(236)
sleep(math.random(200, 600))
elseif Self.ItemCount(283) >= (math.random(10, 15)) then
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, 283, 284, 285)
elseif Self.ItemCount(10328) > 0 then
Self.DropItems(Self.Position().x, Self.Position().y, Self.Position().z, 10328)
elseif Self.ItemCount(3450) >= 1 then
local MainBp = Container.GetFirst()
local DestinationBp = Container.GetByName(BoltsBp)
for spot = 0, MainBp:ItemCount() do
local item = MainBp:GetItemData(spot)
if (item.id == 3450) then
MainBp:MoveItemToContainer(spot, DestinationBp:Index(), 0)
wait(500)
break
end
end
end
wait(200)
end

Some one can check it?

Joe
09-02-2012, 06:31 AM
check in order to?

while (true) do

if (Self.DistanceFromPosition(33197, 31347, 6) < 1) then
gotoLabel("AfterTP")
wait(1000)
elseif (Self.DistanceFromPosition(33144, 31248, 6) < 1) then
gotoLabel("AfterTP1")
wait(1000)
elseif (Self.DistanceFromPosition(33200, 31347, 6) < 1) then
gotoLabel("AfterTP2")
wait(1000

In my opinion this would make you permanently jumping between labels "AfterTP"; "AfterTP1" and "AfterTP2".
This should be made with either oneliner or label manager.

stefps
09-03-2012, 12:27 AM
DarkstaR idk what is happening that the bot is not buying the right amount of mps and in my case if i havent used any ultimate healing potion it buys 1 mor every reffil. idk if theres someone that already said it i havent read all the replies

Demonic Saint
09-03-2012, 02:19 PM
DarkstaR idk what is happening that the bot is not buying the right amount of mps and in my case if i havent used any ultimate healing potion it buys 1 mor every reffil. idk if theres someone that already said it i havent read all the replies

Most lua's call the function "buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal" instead of Shop.BuyItem or whatever, because of this the script will always buy at least 1 of every item even if you are already have enough. If it's set to buy uhp before manas, and it didn't withdraw money for uhp due to the fact that it doesn't need any and then in turn the script buys one, it'll fail to buy manas. What you need to do is change the amount it withdraw for manas from 50 to around ~75gp that way it'll have enough money to buy both. It'll leave you with a little extra cash in your backpack when you return to the hunt but it'll solve the problem you are having.

Infernal Bolt
09-03-2012, 03:06 PM
Most lua's call the function "buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal" instead of Shop.BuyItem or whatever, because of this the script will always buy at least 1 of every item even if you are already have enough. If it's set to buy uhp before manas, and it didn't withdraw money for uhp due to the fact that it doesn't need any and then in turn the script buys one, it'll fail to buy manas. What you need to do is change the amount it withdraw for manas from 50 to around ~75gp that way it'll have enough money to buy both. It'll leave you with a little extra cash in your backpack when you return to the hunt but it'll solve the problem you are having.

thats why I use this one instead.



function buyItems(item, count) -- item = item ID, count = how many you want to buy up to
wait(900, 1200)
if (Self.ItemCount(item) < count) then
Self.ShopBuyItem(item, (count-Self.ItemCount(item)))
wait(200, 500)
end
end

soul4soul
09-03-2012, 03:27 PM
thats why I use this one instead.



function buyItems(item, count) -- item = item ID, count = how many you want to buy up to
wait(900, 1200)
if (Self.ItemCount(item) < count) then
Self.ShopBuyItem(item, (count-Self.ItemCount(item)))
wait(200, 500)
end
end

Agreed. I use the same thing except I didnt make it a function I put the if statement right inside the label.

ShopBuyItem always buys at least 1 of the item even even if the count is 0 or negative.

Infernal Bolt
09-03-2012, 04:00 PM
Agreed. I use the same thing except I didnt make it a function I put the if statement right inside the label.

ShopBuyItem always buys at least 1 of the item even even if the count is 0 or negative.

The reason I did it that way was because I'm too lazy to write the (count-Self.ItemCount(item)) everytime ;D

Bjornen
09-03-2012, 04:31 PM
Yesterday looter was working fine again. It's been working fine ever since I last made this post. But now it's back :(

stefps
09-03-2012, 10:07 PM
Demonic Saint. The problem is that i dont use that function "buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal"

Syntax
09-03-2012, 10:20 PM
Demonic Saint, stefps

buyAlotOfItemsBecauseItsSuchAGodDamnBigDeal = Self.ShopBuyItem

Because oh look at that, I made both of them, and they have the same exact contents... Open up the library...

This is the function that is currently in the native library... look familiar?

Self.ShopBuyItem = function(item, count)
local func = (type(item) == "string") and shopBuyItemByName or shopBuyItemByID
count = tonumber(count) or 1
repeat
local amnt = math.min(count, 100)
if (func(item, amnt) == 0) then
return 0, amnt
end
wait(300,600)
count = (count - amnt)
until count <= 0
return 1, 0
end

Tirekos
09-03-2012, 10:58 PM
@ Joe
u know how to do? :D

stefps
09-03-2012, 11:04 PM
Syntax then what could be the problem?

Syntax
09-03-2012, 11:12 PM
Syntax then what could be the problem?

The function does not check natively for how many you already have, nor should it, that's your job. See how Infernal Bolt did it above. Quite simple.

stefps
09-04-2012, 01:37 AM
Syntax. so something had changed because the script was working good before the update

Syntax
09-04-2012, 01:42 AM
Syntax. so something had changed because the script was working good before the update

This function has not changed in quite a few updates.

stefps
09-04-2012, 03:52 AM
then why im having this problem in this new update

Bubba
09-04-2012, 10:38 AM
I've been botting both Frost dragons and Dragon lords, it seems like the bot skips to pick up 100gp stacks in the monsters some time.
It's always the same thing, the loot is 147 gp or something, it picks up 47 gp first and then ignore then 100gp left.

Fleet
09-04-2012, 11:28 AM
I must confess, I still experience more bugs even in this updated version.
Many full AFK scripts have gotten stuck in simple places like depositing money (doesn't talk to NPC, gets stuck) or when to travel somewhere (doesn't talk with the NPC on the boat, gets stuck). Also I get random "walker stuck" messeges, without anything blocking me, and after 5-10 seconds it starts moving again.

Also, it goes up stairs and falls down in places more often, eventhough should have been fixed in this version? For example, I have a script I've run several hours without any problems with getting stuck, though after this update I've experienced that my walker has gone up some stairs in DP and gotten stuck there.

Those are the bugs I've come up with so far that's effected me.

DarkstaR
09-04-2012, 01:10 PM
I'm really not sure what the problem with the looter could be but I'll check it out. The walker stuck is the same as before with mapclicks but with a bit longer delay. If it thinks it's stuck it will alert twice and try again. This keeps it from spamming mapclick and getting you banned for sending 50 clicks a second for an hour. I still have some tweaks to do to pathfinding as well.

Joe
09-04-2012, 02:00 PM
@ Joe
u know how to do? :D
I didnt see your msg, becouse you mentioned me in wrong way.
There must NOT be any space between '@' and nich of user youre mentioning Tirekos.
on your question.
you should add labels like: 'position check1, position check2' and so on. Then you go to your luafile and add in label manager:

elseif (labelName == "checkpos1") then
if (Self.DistanceFromPosition(x, y, z) > distance)
then gotoLabel("xxxx")
end

Sorry for tabbing, cant tab in quick reply.

Tirekos
09-04-2012, 02:13 PM
Joe
and where ill need put it?just at final?

Joe
09-04-2012, 02:36 PM
in the function:
onWalkerSelectLabel(labelName)

stefps
09-04-2012, 10:05 PM
i think the mapclicker has not been completly fixed because sometimes it still get stucked and does not try to find the waypoint again. DarkstaR

Infernal Bolt
09-04-2012, 10:32 PM
luafile and add in label manager:

elseif (labelName == "checkpos1") then
if (Self.DistanceFromPosition(x, y, z) > distance)
then gotoLabel("xxxx")
end


its short enough so you could do this in a one-liner.

Alastorsz
09-04-2012, 10:40 PM
please any1 here can help me, I need an alternative auto looter, wich works only when i open the dead bodies manual, i want it for draken hunts, should be on bp -3 (dragon backpack) I alredy tried with sirmate's looter script but doesnt work and that from spectrus auto open the corpses, i need to open them manual, please would be rlly nice thanks

dragiz
09-05-2012, 12:21 AM
My bot have started to crash after a while of botting.

Joe
09-05-2012, 06:01 AM
its short enough so you could do this in a one-liner.
I thought that I can't put any if- then in one liner. o.0

Infernal Bolt
09-05-2012, 12:25 PM
I thought that I can't put any if- then in one liner. o.0

ofc you can.

Joe
09-05-2012, 03:13 PM
Infernal Bolt
what can I do with oneliner then?
what is max length of the script in it?

Infernal Bolt
09-05-2012, 05:04 PM
Infernal Bolt
what can I do with oneliner then?
what is max length of the script in it?
I think its 266 characters, not sure though.

Syntax
09-05-2012, 06:55 PM
I think its 266 characters, not sure though.
260 *short*

Rossie
09-06-2012, 04:28 AM
Are you sure you've downloaded the newest version of xenobot?
There was 2 updates in very short time, the first one made problems like the one you're explaining.
Maybe try to download and install xenobot again?



Well I was with the new version , yes , And I thought the scripter stoped do the job cause I was boting like 3 account in the same place , but no , with just 1 account the script stop work after a certain time....

Shiver209
09-06-2012, 09:15 AM
I'm really not sure what the problem with the looter could be but I'll check it out. The walker stuck is the same as before with mapclicks but with a bit longer delay. If it thinks it's stuck it will alert twice and try again. This keeps it from spamming mapclick and getting you banned for sending 50 clicks a second for an hour. I still have some tweaks to do to pathfinding as well.

Just curious, what was the issue with the old pathfinder? I know you have said a lot of people were complaining about it but I never really had any "major" issues, if I'm honest I thought the last pathfinder was better than the one we are using now. I know your looking into the issues so I wont bother posting my concerns plus most of them have been raised by other users anyway. Would it not be easier to just switch back to the old pathfinder?

Krim
09-06-2012, 10:22 AM
I can't bot... walker always stop,looter don't pick all loots!!!!


Please fix it!

DarkstaR
09-06-2012, 12:06 PM
I'm not fixing shit. Fucking live with it retard.

I've asked all of you to give me scripts and tell me where to go and I get fucking ignored. How can I fix it when it works fine for me? Want the shit fixed you gotta give me what I need and not just bitch like retards.

LuckyStrike
09-06-2012, 12:22 PM
I'm not fixing shit. Fucking live with it retard.

I've asked all of you to give me scripts and tell me where to go and I get fucking ignored. How can I fix it when it works fine for me? Want the shit fixed you gotta give me what I need and not just bitch like retards.

i think that what are you telling, is not helping us... calling all people retards etc :/ you should make one special thread and take care about ur customers before you lose all becouse of ignoring people... You don't even try to fix anything i see it like that, look i posted a really big bug and wrote all about it in bugs selection, you ignored it. Maybe buy 1-2 old PC's and test bot on them, not only on ur PC. that's all thanks, i hope you take care about the walker and targeting...

DarkstaR
09-06-2012, 01:02 PM
i think that what are you telling, is not helping us... calling all people retards etc :/ you should make one special thread and take care about ur customers before you lose all becouse of ignoring people... You don't even try to fix anything i see it like that, look i posted a really big bug and wrote all about it in bugs selection, you ignored it. Maybe buy 1-2 old PC's and test bot on them, not only on ur PC. that's all thanks, i hope you take care about the walker and targeting...

Are you fucking stupid? I just said I DO NOT HAVE THE BUGS. Okay, here. I want you to color this piece of paper, the one that I'm holding, red. But I wont give you the paper. Do you understand this? I test on Vista, XP and 2 Windows 7 machines. Nothing.

Shiver209
09-06-2012, 02:32 PM
DarkstaR

Fair enough your frustrated but so are other people. Being abusive and aggressive is a bad road to take for anyone, thats all im saying

DarkstaR
09-06-2012, 02:45 PM
Just curious, what was the issue with the old pathfinder? I know you have said a lot of people were complaining about it but I never really had any "major" issues, if I'm honest I thought the last pathfinder was better than the one we are using now. I know your looking into the issues so I wont bother posting my concerns plus most of them have been raised by other users anyway. Would it not be easier to just switch back to the old pathfinder?

The problem is we don't know for sure what is causing the problem. We have a new Pathfinder, a new Walker, a 2 new Tibia versions. That's 3 things that could be broken or poorly interacting and I can't be sure which once is the problem since people refuse to give me scripts. "I cannot release my script, is paid." Well, bitch, if I can't fix it your script will be fucking useless, so just give it to me so I can fix it.

Shiver209
09-06-2012, 02:54 PM
The problem is we don't know for sure what is causing the problem. We have a new Pathfinder, a new Walker, a 2 new Tibia versions. That's 3 things that could be broken or poorly interacting and I can't be sure which once is the problem since people refuse to give me scripts. "I cannot release my script, is paid." Well, bitch, if I can't fix it your script will be fucking useless, so just give it to me so I can fix it.

I Respect what you do dude, I know I couldn't do it. I cant speak for anyone else but my scripts are working, It does not stick or anything else (well occasionally). It just acts stupid, for example walks between 2 squares like its confused or takes a long way from one node to another instead of going straight to it. Compared to your old system it does not want to stay on the path that the waypoints are supposed to take it. Im using Jakob Miller's OF script right now and it gets confused, same with my own ones so its not a script specific thing for me, like I said i dont know about anyone else, but as far as I'm concerned, its working, just not as well as previous versions, thats all.

Ungoliant
09-06-2012, 06:39 PM
Dark you seem mad sir.

Let me try to help some.

Things I have personally noticed.

Increased lag in "node" points.
Missed loot. (This only happens if the monster drops quite a few items at once to be looted.)
The walker sometimes skips over bodies, and then walks a waypoint and comes back. (Set to loot first), This ust to happen alot, and was fixed a few patches ago.

Scripts i've been testing on are my own zombies script located in the forums here.

Also i've been hitting errors in my Yalahar elves script, (The loot bug occurs here most).

Those are the only two scripts I have used sense the last update.

Otherwise I can't think of any other problems.

So DarkstaR Whats the best way to help you replicate these problems?

-Ungo.


EDIT: A few hours after writing this noticed another bug.. which may be the main complaint here.

Best way to put it is the walker does not want to diagonally move, so instead repeatedly moves forward and back instead of moving into the diagonal spot. This only happens when the diagonal move is the closest / most logical place for the bot to move. So this seems like it would be hard to replicate. Begs the question, during the recode did you make it so the bot moves diagonal "less" ?

Rossie
09-07-2012, 01:18 AM
explain me how put a script in a private message and I will send it to mister frustrated darkstar XD

Krim
09-07-2012, 03:14 AM
Here is my Hidden lizard script in zao! Start script next bank and click next label "bank" !!! 1ª Problem - Bot start walking and killing some monster in respaw but after few kills just stop walking and stuck ( but not walking stuck alarm,it just stacks and don't give alarm... i think it's a bug in looting because if you click in moster it loots and start walking again. 2ª Problem - Looting is fucking slow ... and many times miss the loot !! That's it !! Thx dark!!! Script:

http://speedy.sh/MZJ8K/RP-Hidden-Lizards.xbst
http://speedy.sh/faURt/Hidden-Lizards-Pally-Backup.lua
http://speedy.sh/7TgSP/Hidden-lizard-stuff.lua
http://speedy.sh/hsjC6/Hidden-lizard-by-viniss.lua
http://speedy.sh/WJbYm/Drop-all-Vials.lua
http://speedy.sh/w2Gaf/BpOpener-HiddenLizard2.lua
http://speedy.sh/4eRT7/BpOpener-HiddenLizard.lua Run all scripts and test! Thx

dexter killer
09-07-2012, 07:03 PM
@all

For those who do not want to post the scripts here, simply host your scripts in a download server and send the link via private message to DarkstaR.

DarkstaR
09-07-2012, 07:51 PM
Here is my Hidden lizard script in zao! Start script next bank and click next label "bank" !!! 1ª Problem - Bot start walking and killing some monster in respaw but after few kills just stop walking and stuck ( but not walking stuck alarm,it just stacks and don't give alarm... i think it's a bug in looting because if you click in moster it loots and start walking again. 2ª Problem - Looting is fucking slow ... and many times miss the loot !! That's it !! Thx dark!!! Script:

http://speedy.sh/MZJ8K/RP-Hidden-Lizards.xbst
http://speedy.sh/faURt/Hidden-Lizards-Pally-Backup.lua
http://speedy.sh/7TgSP/Hidden-lizard-stuff.lua
http://speedy.sh/hsjC6/Hidden-lizard-by-viniss.lua
http://speedy.sh/WJbYm/Drop-all-Vials.lua
http://speedy.sh/w2Gaf/BpOpener-HiddenLizard2.lua
http://speedy.sh/4eRT7/BpOpener-HiddenLizard.lua Run all scripts and test! Thx

Is it at all possible to do this on a level 250 MS? I don't play Tibia enough to know.

Arek
09-07-2012, 09:42 PM
DarkstaR Script description says 120+ RP/Mage

Krim
09-08-2012, 12:24 AM
Is it at all possible to do this on a level 250 MS? I don't play Tibia enough to know.


Yes for sure...!!!


I play with 182 Rp there!

DarkstaR
09-10-2012, 02:45 PM
I've made quite a few changes to the Looter and Pathfinder since this update. Some of the changes came before I was able to replicate the bugs but I've tried after the changes were implemented and it seems like it's fine. A release will be sometime today or tomorrow when I'm done making some tweaks.

dexter killer
09-10-2012, 03:27 PM
I've made quite a few changes to the Looter and Pathfinder since this update. Some of the changes came before I was able to replicate the bugs but I've tried after the changes were implemented and it seems like it's fine. A release will be sometime today or tomorrow when I'm done making some tweaks.

Cool man!!

Take your time and work calmly! :D

Bubba
09-10-2012, 04:22 PM
I had some problems today at Zao Dragons, I'll upload a picture.
In the middle you can see that some not walkable squares and seen as walkable.

http://img651.imageshack.us/img651/1584/blockk.jpg (http://imageshack.us/photo/my-images/651/blockk.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)

Luls
09-10-2012, 04:32 PM
I had some problems today at Zao Dragons, I'll upload a picture.
In the middle you can see that some not walkable squares and seen as walkable.

http://img651.imageshack.us/img651/1584/blockk.jpg (http://imageshack.us/photo/my-images/651/blockk.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)



Your best option would be to make a thread in the bug report section.

I suggest going back to that same spot, turn on the "Look IDs" function, and get the ID for that tile, so DarkstaR can fix it :)

DarkstaR
09-10-2012, 04:34 PM
I had some problems today at Zao Dragons, I'll upload a picture.
In the middle you can see that some not walkable squares and seen as walkable.

http://img651.imageshack.us/img651/1584/blockk.jpg (http://imageshack.us/photo/my-images/651/blockk.jpg/)

Uploaded with ImageShack.us (http://imageshack.us)

This was a bug in 2.7.0, it's fixed in version 2.7.1 (IE the fucking thread you're in)

Daemon
09-11-2012, 02:20 AM
This was a bug in 2.7.0, it's fixed in version 2.7.1 (IE the fucking thread you're in)

After something like that I would just have to sit and smoke a cigarette.

Kim
09-13-2012, 05:41 PM
I don't know if it's only me, but since this update I'm having a lot of troubles with the Walker, as it gets "Walker Stuck" each 5 minutes on different scripts and different locations everytime. What I do to make it walk by the correct way is just moving one sqm then it catches the following step. Do you know what happen?