There's this little hole in mBot that's been driving me literally mad-
in mBot, you can set an area (x,y coords) and radius where you'll be training. once you reach the spot, you grind and grind and grind... now, after a while the spawn thins out and you may end up killing absolutely nothing for an hour. this and getting occasionally stuck in random objects such as trees/cliffs made me want to find a more efficient way. basically, what i want it to be is - if # of mobs<x change area. how can it be done? there's a mConditional for # of mobs >= x, but not smaller. the only solution that seems reasonable to me at this moment is:
>walkscript to a certain point
>start lurescript (wandering around...)
>while # of mobs < x continue lurescript (in other words, when # of mobs >=x stop lurescript)
>execute script
now so far it's all possible within the borders of mBot's commands, but here's the tricky part - in the script it will say:
>setup new area (x,y,radius), where x and y are the current position and radius is up to you to decide.
now that you hopefully get the concept, here's my question - is there something like 'getcurrentXposition' that i can use? i tried just writing it like:
Code:
scriptversion=102 area x,y,60
this function must be somewhere there, so if you know what it is, or have an open source of the bot (checking out few links i found, if u have a legit one it'll be great!), or you have a better way using the tools mBot provides, please let me know.
-----------------------------edit
well, i got what seems to be an open source of the bot and im looking for the button 'Get current position', I'm guessing it triggers the right function... I have no knowledge in c++ whatsoever, so I'm not sure what I'm doing here xD Any ideas? maybe I should put link to source here so you can download and see for yourself?






