BBot - The best bot of the world
Using Variable - Printable Version

+- BBot - The best bot of the world (https://forums.bmega.net)
+-- Forum: Support (https://forums.bmega.net/forum-6.html)
+--- Forum: Support & Help (https://forums.bmega.net/forum-8.html)
+--- Thread: Using Variable (/thread-20719.html)



Using Variable - Pepe94 - 06-16-2017

Hello Guys!

I'd like to create some a little bit more complicated script.
The only problem is the fact I can't use variables properly.

What do I want to do?

Create variable called TEST. It's value returns 0 or 1.
The value of this variable is able to be changed by some easy macro.
If macro says something like !TEST!:=0 or !TEST!:=1 the variable saves it's value.

So now I can use it in my Full Check Label. If !TEST!==1 go label X and If !TEST!==0 go label Y.

Hope You can help me Boys! I will thank for sure Smile


RE: Using Variable - Catar - 06-16-2017

First mistake, to give value to variable, you don't use ! !

Example

Gold:=Misc.ItemCountEx(3031)

Would put quantity of gold coins into variable.

Which further you can use in comparison with ! !

!Gold!>=150

Just read documentations, everything is explained.

Also check out my macros, link in my signature.


RE: Using Variable - Pepe94 - 06-16-2017

Thank You but I'm not sure If I understand it well.
So am I able to create variable that tells me If I'm beeing attacked by player?
Could You help me a little bit more?


RE: Using Variable - Catar - 06-16-2017

(06-16-2017, 02:51 PM)Pepe94 Wrote: Thank You but I'm not sure If I understand it well.
So am I able to create variable that tells me If I'm beeing attacked by player?
Could You help me a little bit more?



For this u have settings in 'Protector' tab