MuriloChianfa / TibiaAuto12

PixelBot For Tibia Client v.12 (Ready To Global)
MIT License
173 stars 60 forks source link

loot problem coordinates #37

Closed vatxz closed 2 years ago

vatxz commented 3 years ago

regards :) nice bot

Is there any way to change the coordinates?

I already changed the sizes of the sidesbars but i can't get any loot from corpses because the coordinates always are on the wrong way.

I can attack, but not get loot I can't attack, but get loot (attacking manually)

MuriloChianfa commented 3 years ago

Have a possibility to change a coordinate manually yes, you have to change it in your configuration file

image

MuriloChianfa commented 3 years ago

These SQM location is the numpad numbers if Im not mistaken

vatxz commented 3 years ago

Thanks friend

but now i have another problem, when the bot is looting the clicks are so very fast, doing the looting impossible. Is there a way to put a little time on this task ?

The attacks change every 2 seconds, in lvl 20 being impossible follow an orc spearman 😂😂😂

^ I think the attack time is solved for my self changing the code a little bit but, i need help with the looting task

Gracias and have a good day

MuriloChianfa commented 3 years ago

I think to add an interval between the clicks, putting a sleep inside this for image

vatxz commented 3 years ago

Sin título

i use this and it works better

vatxz commented 3 years ago

https://user-images.githubusercontent.com/76906734/103658461-dd9cd700-4f30-11eb-94ea-ef0a7942576e.mp4

MuriloChianfa commented 3 years ago

Great, my friend O.O

Im glad I helped, are you enjoying the bot?

vatxz commented 3 years ago

yes, im enjoying the bot, but not playing tibia, enjoying doing a better performance of the bot.

congratz to you for the bot.

vatxz commented 3 years ago

I don't want to annoy you anymore but i want to edit this part, to in the same cave to attack more than 5 monsters, can you tell me where is the repository

Sin título2

MuriloChianfa commented 3 years ago

There in Modules > Cavebot.py

image

maybe try to pass the array straight then

vatxz commented 3 years ago

sss

to many changes but is working, im working in the food eater

MuriloChianfa commented 3 years ago

its amazing =D

tojaszaryczlowiek commented 3 years ago

Sin título

i use this and it works better

Adding sleep didn't change anything in my situation. What is your mouse mode in tibia and screen resolution? My bot just does not loot, sometimes i see him moving mouse on sqms around my char and that's everything. I see messages saying that i have to go level up to proceed action (???) It is also stopping attack when monster attack me and his battlelist sprite have black frame and starts again when black frame disappear. Should I make his sprite smaller than when it should contain this black attack frame? Also cavebot is walking only to one waypoint and then it gets stuck despite having been added all of them in cavebot. @MuriloChianfa what is your screen res? How can i find loot bp xyz coordination? I think that there might be problem with resolution becase on higher res I wasnt even been able to get hp and mana bars coordinations. Now mana, life and ring modules work but there is still a problem with cavebot (described above).

MuriloChianfa commented 3 years ago

this is my mouse option: image

and my resolution: image

remembering that if you have more than 1 monitor, the main monitor must be the one that is tibia... and all settings are saved in the 'newConfig.json' file in the 'scripts' folder, you can modify them at will image

for loots, it takes the values ​​of the SQM's. they are configured like this: image

you can also put them in manually and go testing until you get more accurate! image

tojaszaryczlowiek commented 3 years ago

Thank you MM, you are very helpful and you made a great work for free which is very unusual in tibia botting community. Thank you!

tojaszaryczlowiek commented 3 years ago

Should these coordinates include window and start menu panel or just game window coordinates? If this second thing how did you check their values? Is gamewindow box things you 'see' in game except for menus, map and all bars or with them?

@edit

Ok, so coords don't include window bar. I've had to edit some of them to fit the window. Cavebot is up and running despite one problem - it's constantly unclicking monster between attacks. Do you have any idea how to make it attack till the end? Setting longer sleep time also makes looting longer and it is still changing targets. There is a food option in constants in which I added meat and its sprite in items/food/frames folder. Is it going to eat food during trip now?

MuriloChianfa commented 3 years ago

the eating part is not ready yet, and about him stop attacking the monster, I also don't know why he does it but im glad you managed to find your coordinates =D