Page 1 of 1

Arcanium Spam Waypoint

Posted: Thu Nov 12, 2015 6:09 pm
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.

Re: Arcanium Spam Waypoint

Posted: Thu Nov 12, 2015 8:14 pm
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

Re: Arcanium Spam Waypoint

Posted: Fri Nov 13, 2015 4:18 am
by little_Fan
yeah same problem here :(

Re: Arcanium Spam Waypoint

Posted: Fri Nov 13, 2015 11:32 am
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.

Re: Arcanium Spam Waypoint

Posted: Fri Nov 13, 2015 12:21 pm
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?

Re: Arcanium Spam Waypoint

Posted: Fri Nov 13, 2015 1:41 pm
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 471 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.

Re: Arcanium Spam Waypoint

Posted: Fri Nov 13, 2015 4:33 pm
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

Re: Arcanium Spam Waypoint

Posted: Fri Nov 13, 2015 4:41 pm
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

Re: Arcanium Spam Waypoint

Posted: Mon Nov 23, 2015 9:47 am
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

Re: Arcanium Spam Waypoint

Posted: Mon Nov 23, 2015 12:02 pm
by BlubBlab
I think you also need a userfunction for this he linked it too, at least this is my first guess.

Re: Arcanium Spam Waypoint

Posted: Tue Nov 24, 2015 8:54 am
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

Re: Arcanium Spam Waypoint

Posted: Tue Nov 24, 2015 12:58 pm
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

Re: Arcanium Spam Waypoint

Posted: Mon Dec 07, 2015 5:55 am
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 ?

Re: Arcanium Spam Waypoint

Posted: Thu Jan 07, 2016 3:50 am
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.

Re: Arcanium Spam Waypoint

Posted: Mon Jan 11, 2016 3:19 pm
by thewatcher
Thank you very much , it works :)

Re: Arcanium Spam Waypoint

Posted: Thu Sep 08, 2016 10:57 am
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.

Re: Arcanium Spam Waypoint

Posted: Sun Sep 18, 2016 10:43 am
by hackfleisch
Works, Thank You!

Re: Arcanium Spam Waypoint

Posted: Sun Oct 09, 2016 8:46 am
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

Re: Arcanium Spam Waypoint

Posted: Sat Oct 22, 2016 10:00 am
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.

Re: Arcanium Spam Waypoint

Posted: Mon Dec 12, 2016 8:00 am
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