BBot - The best bot of the world
Command to sd min - go back and refill? - 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: Command to sd min - go back and refill? (/thread-18203.html)



Command to sd min - go back and refill? - shottyx - 07-04-2015

Hey guys, today I decided that tomorrow(or in some hours my case) I will start doing my very own script, but the guide I am looking at doesnt show how to make char go back if sd are lower than 100, can someone tell me how to do it? Thanks!!

(It's a variable, if it has less than 100 sd then it have to go back and buy more..)

Thanks!Cool


RE: Command to sd min - go back and refill? - kaiquegabriel - 07-04-2015

Code:
FullCheck (0 0 0:Full goback Else continue Code (SDid)<100;(MPid)<100)

Exemple 100- sds or 100- strong manas:
Code:
FullCheck (0 0 0:Full goback Else continue Code 3155<100;237<100)

When you have 100+ sds or strongs, the fullchecker go to "continue" label, if have 100- of someone, the fullchecker go to "goback".

If you want variables.. can add one variable to Sudden death rune, example:

sdruneid=3155

you can change on fullcheck the "3155" to "!sdruneid!" because the variable have value of 3155. Understand?

Like:
strongmanaid=237
sdruneid=3155

strongmanaammount=100
sdruneammount=100
Code:
FullCheck (0 0 0:Full goback Else continue Code !sdruneid!<sdruneammount;!strongmanaid!<strongmanaammount)



RE: Command to sd min - go back and refill? - shottyx - 07-04-2015

Ok Im gonna try it!! And tell you more about it after, thanks!