Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cavebot Script
#1
Thank you for any help.

I created a cavebot, but the script can not follow the three Fullchek I created, just follow the first one that is the cap.
Many times my cap is full but the pot is running out and continues in the basement, how do I read all 3 fullchek?


I hosted the photo on a website, from the script, Link V
https://imgur.com/a/JIy4KeI


Desculpe por erros de digitação " Ingles "
   
Reply
#2
Put all checks in single waypoint
https://wiki.bmega.net/doku.php?id=add_t...heck_label


here is random example from my scripts:
Code:
FullCheck (32948 32686 6:Full BACK Else HUNT Code !BBot.ManaDrinker.Heavy.ItemID<!SMPb;!BBot.Healers.ItemHeavy.ItemID<!SHPb;cap<!capb;!BackThais>0)

Also its easier to put names on IDs in variables

while BBot.Healers.Items... are default names of variables that Healer function uses,

!SHPb / !SMPb / !capb are my own settings in variables,
[Image: 80d8w1I.png]

makes it easier to adjust checks on the run
Reply
#3
Thanks
FullCheck (33638 31929 12:Full hunt Else city Code !BBot.ManaDrinker.Heavy.ItemID<200;!BBot.Healers.ItemHeavy.ItemID<200;cap<100)
Does it have to stay like this? I do not understand, sorry
Reply
#4
You can make your own variables, I just used genetic ones because I liked to.

I just gave you example, all conditions on these full check have to be true for bot to do "full" label, and if even one of them isn't, it will do "else"
Reply
#5
FullCheck (33029 31161 2:Full city Else hunt Code cap<300)
FullCheck (33029 31161 2:Full city Else hunt Code cap<300;7643<200)
FullCheck (33029 31161 2:Full city Else hunt Code cap<300;268<400)

If I do this is the same thing? v

Fullcheck (33029 31161 2:Full city Else hunt code cap<300;cap<300;7643<200;<300;268<400)
?
Reply
#6
if any of these conditions is met it will do Full If all of these are false it will go else
Reply
#7
1 FullCheck (33638 31929 12:Full city Else hunt Code cap<=!minCap!;!SP!<=!minSP!;!SHP!<=!minSHP!)
##### Setup #####

# Leave Hunt #
minCap=100
minMP=200
minSHP=100

# Amount of Potions #
amountSHP=500
amountSP=600

# Price of Potions #
costSP=113
costSHP=458

!MyVariable!==3

2 Cap<100;Health Potion<10;3031>1500

Which one is right? or is it still wrong?
I want to learn from this my difficulty
Reply
#8
First thing, you copied from script that works, it should work, just analyze and use parts of working scripts, that's how I learned at first.
Using variables in full checks is always better
Reply
#9
I'm getting better, but I still have doubts.
(33637 31928 12:Full city Else hunt Code cap<=100;!ManaID!<=!ManaBack!) <- It works
(33637 31928 12:Full city Else hunt Code cap<=100;!ManaID!<=!ManaBack!<=!SpID!<=!SpBack!) <- Does not work because?

Variables
ManaID=237
ManaP=67800
ManaQT=600
ManaBack=40

SpID=23374
SpP=229000
SpQT=500
SpBack=100

23374 = Ultimate Spirit Potion
Reply
#10
Catar, there is no way you can record a video of 1 min, just to teach, there may be more people with difficulty too.
Reply
#11
I have no tibia, nor any ots account and character I could test anything on.

Moved on from that game for now.
Reply
#12
I'll give you account support, Otservlist, Can be?
But you understood my doubt?
Scripting just reads, cap and mana. I needed one more
Reply
#13
(33637 31928 12:Full city Else hunt Code cap<=100;!ManaID!<=!ManaBack!<=!SpID!<=!SpBack!)

its wrong,

u have to separate conditions with ;

(33637 31928 12:Full city Else hunt Code cap<=100;!ManaID<=!ManaBack;!SpID<=!SpBack)


also, no need for ! after variable name, use it only in front
Reply
#14
Thanks =)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)