error() causes a crash

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

error() causes a crash

#1 Post by beanybabe » Mon May 16, 2016 8:06 pm

strange problem the error() is making bot crash

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
print (getZoneId())

error()
</onLoad>
</waypoints>

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: error() causes a crash

#2 Post by lisa » Mon May 16, 2016 10:39 pm

error() will make MM exit what ever script it is running and go back to the command prompt, that is what it is for.

I have absolutely no idea what you thought it was for.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
beanybabe
Posts: 647
Joined: Wed Mar 06, 2013 1:27 am

Re: error() causes a crash

#3 Post by beanybabe » Tue May 17, 2016 12:19 am

I use it to exit the script

but for some reason that bit of code crashes the bot it may be because there no text message in the ()

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: error() causes a crash

#4 Post by BlubBlab » Wed May 25, 2016 2:56 pm

It like Lisa said error() will end the running script with an error message
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 27 guests