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 »

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 »

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 »

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 »

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