Arcanium Spam Waypoint

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Arcanium Spam Waypoint

#1 Post by kenzu38 »

So, here's a better version of the waypoint I posted in the runes of magic section. It has more user options, just read the file and just ask here what you don't understand.

You'll need the userfunction_Battleground to run this file. Read the second post on that page for instructions on how to prevent the bot from throwing any errors.

There's a new version for that userfunction, so for those who already downloaded the old version, it's recommended that you download the new one since it fixes a problem that I didn't account for before.
Attachments
ArcaniumSpam.xml
v1.1
- fixed flaw in runtimelimit code
- window name printing should be more stable with this version
- added failsafe measure to prevent chars from getting stuck in a wait loop inside arena.
(7.09 KiB) Downloaded 933 times
Last edited by kenzu38 on Wed Jun 22, 2016 12:27 pm, edited 3 times in total.
famousk
Posts: 10
Joined: Sat Jun 07, 2014 9:20 am

Re: Arcanium Spam Waypoint

#2 Post by famousk »

kenzu38 wrote:So, here's a better version of the waypoint I posted in the runes of magic section. It has more user options, just read the file and just ask here what you don't understand.

You'll need the userfunction_Battleground to run this file. Read the second post on that page for instructions on how to prevent the bot from throwing any errors.

There's a new version for that userfunction, so for those who already downloaded the old version, it's recommended that you download the new one since it fixes a problem that I didn't account for before.
this is what happens after the round ends with the new waypoint
Attachments
round end
round end
little_Fan
Posts: 12
Joined: Tue Jun 09, 2015 8:30 am

Re: Arcanium Spam Waypoint

#3 Post by little_Fan »

yeah same problem here :(
kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Arcanium Spam Waypoint

#4 Post by kenzu38 »

Hmm, seems like an error with getbadges() function, I'm guessing it's related to printing while there's a loading screen, so it can't do RoMScript. It doesn't throw an error for me though. We must be running different versions of the bot or MM.

Anyway, I'll post a new version in a few mins that would hopefully run with no errors on all versions. If that version still gives you an error, it's most probably caused by window prints so you just have to turn window prints off in that case. Just post here the errors though so I can fix it.
Braziliano
Posts: 82
Joined: Fri Apr 19, 2013 2:36 pm

Re: Arcanium Spam Waypoint

#5 Post by Braziliano »

kenzu38 wrote:Hmm, seems like an error with getbadges() function, I'm guessing it's related to printing while there's a loading screen, so it can't do RoMScript. It doesn't throw an error for me though. We must be running different versions of the bot or MM.

Anyway, I'll post a new version in a few mins that would hopefully run with no errors on all versions. If that version still gives you an error, it's most probably caused by window prints so you just have to turn window prints off in that case. Just post here the errors though so I can fix it.

sorry to hear it dind't work for that guy , but kenzu thank you very much! <3 .. it works like a charm :)

question: do you know if it's possible to tweak the script to join as a group?
kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Arcanium Spam Waypoint

#6 Post by kenzu38 »

Ok, v1.1 is up. I recommend downloading it again even for those who had no problems before. It has some added safety measures for preventing chars to get stuck in a loop. The runtimelimit code also won't work on the earlier version.
Braziliano wrote:question: do you know if it's possible to tweak the script to join as a group?
Try this version of userfunction_Battleground:
userfunction_BattleGroundtest.lua
(3.89 KiB) Downloaded 793 times
then edit the waypoint file, find and replace the line:

Code: Select all

joinBG("aa", 60)
to

Code: Select all

joinBG("aa", true, 60)
Untested but it's worth a try.
little_Fan
Posts: 12
Joined: Tue Jun 09, 2015 8:30 am

Re: Arcanium Spam Waypoint

#7 Post by little_Fan »

but how do I re-login after I got kicked to the login screen?
otherwise there is no possibility to test the scripts
Last edited by little_Fan on Fri Nov 13, 2015 4:41 pm, edited 1 time in total.
User avatar
thewatcher
Posts: 11
Joined: Fri Nov 13, 2015 4:34 pm

Re: Arcanium Spam Waypoint

#8 Post by thewatcher »

Hello and thank you for this script. I have a problem , once the arena over, I find myself right out but the window remains in blue with the message "the char_successfully teleported ..." the script does not this stimulus to get back in the queue
mat
Posts: 16
Joined: Sat Jul 26, 2014 10:26 am

Re: Arcanium Spam Waypoint

#9 Post by mat »

hello who can help me for my code error I understands not.
2015-11-23 15:39:10 -[string "..."]:177: attempt to call global 'inBG' <a nil value>
thx
User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Arcanium Spam Waypoint

#10 Post by BlubBlab »

I think you also need a userfunction for this he linked it too, at least this is my first guess.
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
User avatar
sauhard
Posts: 130
Joined: Wed Mar 05, 2014 10:30 am

Re: Arcanium Spam Waypoint

#11 Post by sauhard »

what are you guys trying to achieve? Can anyone explain what's the deal with arcanium arena becoming popular all of a sudden?:P
Satisfaction is the end of desire!!
User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Arcanium Spam Waypoint

#12 Post by BlubBlab »

I'm not sure but I guess they farming honor inside it and since the training ground is cheat free. It is the only equip independent stuff you can make to gain honor I guess.

EDIT: ah I see you can win the best stats through pvp now
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
User avatar
thewatcher
Posts: 11
Joined: Fri Nov 13, 2015 4:34 pm

Re: Arcanium Spam Waypoint

#13 Post by thewatcher »

thewatcher wrote:Hello and thank you for this script. I have a problem , once the arena over, I find myself right out but the window remains in blue with the message "the char_successfully teleported ..." the script does not this stimulus to get back in the queue
Hello Nobody has a solution for me please ?
kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Arcanium Spam Waypoint

#14 Post by kenzu38 »

Ok, I was focusing on other games I'm playing since they had better events so...

Anyways, you guys probably have solved your issues by now but I'm gonna post possible solutions I can think of to help other people in the future.

little_Fan wrote:but how do I re-login after I got kicked to the login screen? otherwise there is no possibility to test the scripts
You can try changing the line leaveBG(30) to ChangeChar("current").
thewatcher wrote:Hello and thank you for this script. I have a problem , once the arena over, I find myself right out but the window remains in blue with the message "the char_successfully teleported ..." the script does not this stimulus to get back in the queue
First step is still to make sure you are using the latest version I posted, if you are already using it, then try turning off the prints.

If you already turned off prints and it's still hanging, then maybe you can try adding a line into the code. Look for the lines:

Code: Select all

	if runtimelimit and ((os.time()-scriptstarttime)/60) >= runtimelimit then
		cprintf(cli.yellow,"Exceeded the set runtime limit. Ending script.\n")
		endscript = true
	end
After that line, add:

Code: Select all

print(getbadges())
just to make sure the bot is not hanging because it can't do RoMScript properly. So, if after leaving the arena, you can't see a print of the badges you currently have on the MM window, then RoMScript is the problem. In this case, you can probably try adding yrest() after leaveBG(30).

If it does print properly, another possibility I can think of is a problem with player:update(). leaveBG() has waitForLoadingScreen(), which in turn has player:update(). And I think player:update() loads skills if it detects your class has changed. So I think there's a problem loading skills since you change class from Duelist to your original class once you're outside the arena.

I can only advise to try a clean profile. Since you don't need skills for this wp anyway, you can try deleting all the skills in your custom profile and see if it fixes the problem. Otherwise, I can't really think of anything else that could cause hangs.
User avatar
thewatcher
Posts: 11
Joined: Fri Nov 13, 2015 4:34 pm

Re: Arcanium Spam Waypoint

#15 Post by thewatcher »

Thank you very much , it works :)
kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Arcanium Spam Waypoint

#16 Post by kenzu38 »

Ok, so I tried running AA, and although I wasn't sure it will hang for me as well, it did.

So I investigated the cause by putting prints on player:update(), and I think I found out what's causing the hang.

It's indeed caused by player:update() and not the wp's or userfunction's codes. Function player:update's updateNature code in particular. The root of the problem is deeper of course but I'm not too keen on investigating further.

So anyway, a workaround will need you to edit your player.lua file's player:update() code.

So open your player.lua which should be in ..\scripts\RoM\classes folder. Then just start scrolling down, it doesn't take long to get to the cluster:

Code: Select all

	self:updateCasting()
	self:updateBattling()
	self:updateStance() -- Also updates Stance2
	self:updateActualSpeed() -- Also updates Moving
	self:updateNature()
Then you just need to edit the line self:updateNature() to:

Code: Select all

if self.Class1 and self.Class1 ~= 11 then self:updateNature() end
Since duelists don't need nature's power, we just stop the bot from updating it when class1 is duelist.
hackfleisch
Posts: 3
Joined: Wed Sep 30, 2015 7:13 pm

Re: Arcanium Spam Waypoint

#17 Post by hackfleisch »

Works, Thank You!
User avatar
thewatcher
Posts: 11
Joined: Fri Nov 13, 2015 4:34 pm

Re: Arcanium Spam Waypoint

#18 Post by thewatcher »

Hello, i have a new problem

Image

Once I get into the arena, I have the message that the address of the player change, and the script stops
kenzu38
Posts: 279
Joined: Sun Dec 02, 2012 8:52 am

Re: Arcanium Spam Waypoint

#19 Post by kenzu38 »

thewatcher wrote:Hello, i have a new problem

Once I get into the arena, I have the message that the address of the player change, and the script stops
Sounds like the same problem I just posted a solution to. Read 2 posts above your latest post and see if it solves your problem.
User avatar
thewatcher
Posts: 11
Joined: Fri Nov 13, 2015 4:34 pm

Re: Arcanium Spam Waypoint

#20 Post by thewatcher »

Hello, I made the modification and this time at the end I have to wait 2 mins to be out of the arena and I still have the message of the change of address and RomBot it blocks without re-registering
Post Reply