Getting stuck a lot.

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
powerattack
Posts: 37
Joined: Thu Jan 09, 2014 7:44 am

Getting stuck a lot.

#1 Post by powerattack » Tue Jan 21, 2014 1:49 pm

So I have ben trying some mem farm with my noob warden. I tried the DoD script from the script page but inside DoD it gets stuck a LOT. If im lucky I can get 10 runs before it starts running into a wall or not finding its way back to the right waypoint...

I was thinking about making my own waypoints for the inside of the instance but should I use points that are further away or really close ones? and what about my wandering distance in profile?

Any tips?

Thanks in regards

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

Re: Getting stuck a lot.

#2 Post by BlubBlab » Tue Jan 21, 2014 2:12 pm

Let's do it step by step.
Okay first which script is it I think there are more than on.

Next step
Most of the tips are basically on inside of all the other scripts I would say.
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

powerattack
Posts: 37
Joined: Thu Jan 09, 2014 7:44 am

Re: Getting stuck a lot.

#3 Post by powerattack » Tue Jan 21, 2014 2:33 pm

Excuse me I tought there were only 2 :), afther some digging I found a sh*tload with those examples I can figure it out.

powerattack
Posts: 37
Joined: Thu Jan 09, 2014 7:44 am

Re: Getting stuck a lot.

#4 Post by powerattack » Tue Jan 21, 2014 5:15 pm

Oke, found a good script. Making my own didn't work out that well xd changed it a bit for my class but sometimes when it gets out it walks away from the portal and just walks into the wall on the opposite side (with the mobs). this is the last few lilnes afther the last kill:

Code: Select all

Fight finished. Killed 4 Okander "Mad Man" Mallen. (fight #16 / runtime 6 minut
s)
Clearing target.
Moving to waypoint #8, (2297, 2391)
Moving to waypoint #9, (2190, 2493)
No more (usable) hp potions available at bagslot 1 to 240
Moving to waypoint #10, (2061, 2658)
Moving to waypoint #11, (1953, 2772)
Moving to waypoint #12, (1874, 2845)
Moving to waypoint #13, (1737, 2883)
Use MACRO: WARDEN_BRIAR_SHIELD =>   * aborted *
Use MACRO: WARDEN_BRIAR_SHIELD =>   * aborted *
Player address changed: 0x39E26400
No ranged skills specified in profile; Turning COMBAT_RANGED_PULL off.
Was pulled back. Reseting waypoint.
Moving to waypoint #13, (1737, 2883)
No more (usable) hp potions available at bagslot 1 to 240
No more (usable) hp potions available at bagslot 1 to 240
We have aggro. Stop moving to waypoint and wait for target.
Got aggro. Attacking aggressive enemies.
Making Pet Attack
Engaging enemy [Giant Sewer Cockroach] in combat.
Fight finished. Killed 1 Giant Sewer Cockroach. (fight #17 / runtime 6 minutes)
Clearing target.
Moving to waypoint #13, (1737, 2883)
No more (usable) hp potions available at bagslot 1 to 240
Clearing target.
Unsticking player... at position 1680,-3792. Trial 1 from maximum 10 trials
Moving to waypoint #13, (1737, 2883)
No more (usable) hp potions available at bagslot 1 to 240
Clearing target.
Unsticking player... at position 1741,-3806. Trial 2 from maximum 10 trials
Moving to waypoint #13, (1737, 2883)
No more (usable) hp potions available at bagslot 1 to 240
Stopping waypoint: Target acquired.
Got aggro. Attacking aggressive enemies.
Making Pet Attack
Engaging enemy [Giant Sewer Rat] in combat.
Use MACRO: WARDEN_CHARGED_CHOP =>   * aborted *
Fight finished. Killed 1 Giant Sewer Rat. (fight #18 / runtime 8 minutes)
Clearing target.
Moving to waypoint #13, (1737, 2883)
Clearing target.
Unsticking player... at position 1735,-3806. Trial 3 from maximum 10 trials
Moving to waypoint #12, (1874, 2845)
Clearing target.
Unsticking player... at position 1792,-3806. Trial 4 from maximum 10 trials
Moving to waypoint #12, (1874, 2845)
Clearing target.
Unsticking player... at position 1792,-3806. Trial 5 from maximum 10 trials
Moving to waypoint #12, (1874, 2845)
Paused. (DELETE) to continue, (CTRL+L) exit to shell, (CTRL+C) quit
And this is the script:

Code: Select all

<!-- FUNCTION CHOICE NUMBER RUN -->
		Nbrun = 0
		repeat
			cprintf(cli.lightgreen,"\n\n\n          Welcome On DoD's farm V5 !\n\n")
			print("Choose run's number: ")
			print("\nExample: 1400M=350run, 840M=210run, 770M=193run...")
			print("\nNbrun>")
			Nbrun = io.stdin:read()
			Nbrun = tonumber(Nbrun)
		until Nbrun and Nbrun > 0
		
		cprintf(cli.blue, "\n\n			Have nice farm on DoD V5 !\n		Create by Solembum05 inspired by Xm3n's work !\n\n\n")
	
		if Nbrun > 750
			then cprintf(cli.red,"\n\n Sorry, Maximum is 750 ! Because 750*4=3000 ! You can't have more of 3000 Mementos \n\n")
			yrest(3000)
			loadPaths("DoDV5.xml");
		end
	
	<!-- FUNCTION TO DEFINE ORIGIN'S WAYPOINT -->
		__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))	

	<!-- FUNCTION UNBRIDLED ENTHUSIAM+LUCKY TARGET -->
		function Buff()
			player:update()
			if not player:hasBuff("506684") 
				then inventory:useItem(207200);
			end
			
			if (not player:hasBuff("506687")) 
				then inventory:useItem(207203);
			end 
		end
		
	<!-- FUNCTION COUNT SELL -->
		Mcount = 0
		function Mcountround()
			Mcount = Mcount+1;
		end
		
	<!-- FUNCTION COUNT REPAIR -->
		Rcount = 0
		function Rcountround()
			Rcount = Rcount+Mcount+1;
		end
		
	<!-- FUNCTION COUNT DEAD -->
		Dcount = 0
		function Dcountround()
			Dcount = Dcount+1;
		end	
		
	<!-- FUNCTION COUNT BUG -->
		Bcount = 0
		function Bcountround()
			Dcount = Bcount+1;
		end	
		
	<!-- FUNCTION COUNT ANCIENT MEMENTO -->
		Acount = 0
		function Acountround()
			Acount = Count*4;
		end
		
	<!-- FUNCTION COUNT RUN -->
		Count = 0
		function Countround()
			Count = Count+1;
		end
		
	<!-- FUNCTION NUMBER RUN & CHECK MEMENTO'S NUMBER -->
		function number()
			EndA = 0
			EndB = 0
			EndC = 0
			if ( Nbrun == Count )
				then
					EndA = 1
					EndC = 1
					__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
			end
			
			Mentos = inventory:itemTotalCount(206879)
			if ( Mentos == 3000 )
				then
					EndB = 1
					EndC = 1
					__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))			
			end
		end
		
	<!-- FUNCTION NUMBER RUN & CHECK MEMENTO'S NUMBER -->
		function lastrun()
			restmentos = 3000 - Mentos;
			lrun= restmentos / 4;		
		end
					
	<!-- FUNCTION CHECKS STRUCTURE ARMS -->
		function checkdura()
			if ( reparight == true and dura > inventory:getMainHandDurability() )
				then
					Rcountround()
					cprintf(cli.lightred, "\nGoing to repair !\n\n");
					__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
			end
		end
		
	<!-- FUNCTION CHECK BAG -->
		function bag()
			bcount = inventory:getItemCount(0)
			if ( sellright == true and 4 > bcount )
				then
					Mcountround()
					cprintf(cli.lightred, "\nGoing to sell !\n\n");
					__WPL:setWaypointIndex(__WPL:findWaypointTag("mech"))
			end		
		end
		
	<!-- FUNCTION SELL PNJ -->

		function sellrepair()
			if ( sellright == true )
				then	
				player:openStore(115536)
					if ( sellbag1 == true )
						then 
							RoMScript("Sellslots1()")
							yrest(1000)
					end
					if ( sellbag2 == true )
						then 
							RoMScript("Sellslots2()")
							yrest(1000)
						end
					if ( sellbag3 == true )
						then 
							RoMScript("Sellslots3()")
							yrest(1000)
						end
					if ( sellbag4 == true )
						then 
							RoMScript("Sellslots4()")
							yrest(1000)
						end
					if ( sellbag5 == true )
						then 
							RoMScript("Sellslots5()")
							yrest(1000)
						end
					if ( sellbag6 == true )
						then 
							RoMScript("Sellslots6()")
							yrest(1000)
						
					end
			end
			
			if ( reparight == true )
				then
					player:merchant(115536)
					yrest(500)
			end
		
			if ( EndC == 1 )
				then
					if ( EndA == 1 )
						then 
							Info()
							printf("\nAll run done !\n\n");
							player:sleep();
					end
				
					if ( EndB == 1 )
						then
							Info()
							printf("\nFull Ancient Memento !\n\n");
							player:sleep();
					end
				else
					__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
			end						
		end	
		
	<!-- FUNCTION GROUP -->
		function ireset()
			SlashCommand("ILG destroy")
			yrest(500)
			SlashCommand("ILG inv")
		end		
		
	<!-- FUNCTION INFORMATION -->
		function Info()
			cprintf(cli.pink, "\n\nNbr Round done: %s for %s Mementos win !\n", Count, Acount)
			cprintf(cli.pink, "You have %s Mementos ! You chose %s run ! You can do again %s run ! \n",Mentos, Nbrun, lrun)
			cprintf(cli.yellow, "Nbr Sell: %s and Nbr Repair: %s\n", Mcount, Rcount )
			cprintf(cli.red, "Nbr Dead: %s and Nbr Bug: %s\n\n", Dcount, Bcount)
		end
	
</onLoad>
						<!-- WAYPOINT MEADOW TO ENTER+GROUP -->
	<!-- #  1 -->	<waypoint x="1645" z="-4908" y="752" tag="start" type="TRAVEL"> player:update() checkdura() bag() number() lastrun() yrest(500)  </waypoint>
	<!-- #  2 -->	<waypoint x="1649" z="-4918" y="752" type="TRAVEL"> Info() ireset() </waypoint>
	<!-- #  3 -->	<waypoint x="1687" z="-5142" y="772" type="TRAVEL"> waitForLoadingScreen() Buff()  </waypoint>
	
						<!-- WAYPOINT ON DoD -->
	<!-- #  4 -->	<waypoint x="1874" z="2845" y="433">  </waypoint>
	<!-- #  5 -->	<waypoint x="1953" z="2772" y="433"> </waypoint>
	<!-- #  6 -->	<waypoint x="2061" z="2658" y="434"> </waypoint>
	<!-- #  7 -->	<waypoint x="2190" z="2493" y="401"> </waypoint>
	
						<!-- WAYPOINT USE PREMIDITATION BEFORE BOSS -->
	<!-- #  8 -->	<waypoint x="2297" z="2391" y="401"> Countround() Acountround() yrest(300) </waypoint>
	
						<!-- WAYPOINT AFTER BOSS -->
	<!-- #  9 -->	<waypoint x="2190" z="2493" y="401"> </waypoint>
	<!-- # 10 -->	<waypoint x="2061" z="2658" y="434" type="TRAVEL"> </waypoint>
	<!-- # 11 -->	<waypoint x="1953" z="2772" y="433" type="TRAVEL"> </waypoint>	
	<!-- # 12 -->	<waypoint x="1874" z="2845" y="433"> </waypoint>	
	
						<!-- WAYPOINT HIDE'S ROGUE -->
	<!-- # 13 -->	<waypoint x="1737" z="2883" y="433"> </waypoint>
	
						<!-- WAYPOINT EXIT+LEAVE GROUP IF NOT PORTAL  -->
	<!-- # 14-->	<waypoint x="1700" z="2886" y="433" type="TRAVEL"> 
						keyboardPress( key.VK_SPACE );
						if not waitForLoadingScreen(15)
							then
								ireset()
								waitForLoadingScreen()
								Bcountround()
								__WPL:setWaypointIndex(__WPL:findWaypointTag("return"))
							else
								__WPL:setWaypointIndex(__WPL:findWaypointTag("start"))
						end 	</waypoint>					
						
						<!-- WAYPOINT SELL PNJ -->
	<!-- # 16 -->	<waypoint x="1707" z="-4755" y="752" tag="mech"> sellrepair() </waypoint>
				
						<!-- WAYPOINT RETURN -->			
	<!-- # 17 -->	<waypoint x="-3812" z="5117" y="30" tag="return" type="TRAVEL">
						if ( not player:hasBuff("506688") )
							then inventory:useItem(207204);
						end
						if ( not player.Mounted )
							then player:mount();
						end </waypoint>						
	<!-- # 18 -->	<waypoint x="-3382" z="5466" y="23" type="TRAVEL"> </waypoint>
	<!-- # 19 -->	<waypoint x="-3100" z="5624" y="14" type="TRAVEL"> </waypoint>
	<!-- # 20 -->	<waypoint x="-2918" z="5898" y="25" type="TRAVEL"> </waypoint>
	<!-- # 21 -->	<waypoint x="-2627" z="6184" y="23" type="TRAVEL"> </waypoint>
	<!-- # 22 -->	<waypoint x="-2482" z="6432" y="28" type="TRAVEL"> </waypoint>
	<!-- # 23 -->	<waypoint x="-2490" z="6534" y="43" type="TRAVEL"> </waypoint>
	<!-- # 24 -->	<waypoint x="-2602" z="6606" y="62" type="TRAVEL"> </waypoint>
	<!-- # 25 -->	<waypoint x="-2836" z="6756" y="52" type="TRAVEL"> </waypoint>
	<!-- # 26 -->	<waypoint x="-2859" z="6949" y="52" type="TRAVEL"> </waypoint>
	<!-- # 27 -->	<waypoint x="-2904" z="7219" y="-84" type="TRAVEL"> </waypoint>
	<!-- # 28 -->	<waypoint x="-2977" z="7237" y="-88" type="TRAVEL"> waitForLoadingScreen() </waypoint>
	<!-- # 29 -->	<waypoint x="51" z="-890" y="869" type="TRAVEL">
						player:target_NPC(115572)
						sendMacro("ChoiceOption(1);")
						waitForLoadingScreen()						
						__WPL:setWaypointIndex(__WPL:findWaypointTag("mech")) </waypoint>
</waypoints>
Any ideas??

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

Re: Getting stuck a lot.

#5 Post by BlubBlab » Tue Jan 21, 2014 5:34 pm

Are you sure that you aren't full of mementos or something similar.
The script has a lots of abort term which are triggerd at the merchant.

I think I saw even loading a follow script after "finish" I would check that all out first.
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

powerattack
Posts: 37
Joined: Thu Jan 09, 2014 7:44 am

Re: Getting stuck a lot.

#6 Post by powerattack » Wed Jan 22, 2014 2:07 am

I'm not full with mementos or need repair when something like that happens, but maby its in the script at those points

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

Re: Getting stuck a lot.

#7 Post by BlubBlab » Wed Jan 22, 2014 6:23 am

AH by compering the log and the waypoint.
It seems for me that your are leave the DoD to early.

You are still moving to waypoint 13 the code for leaving dod is on waypoint 14.
So when you left the Dod the bot wants still to move to waypoint 13 which is inside the DoD, that cause the strange behavior.

You may change the waypoint a bit away from the entry and use rock's Portal Function.
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

powerattack
Posts: 37
Joined: Thu Jan 09, 2014 7:44 am

Re: Getting stuck a lot.

#8 Post by powerattack » Wed Jan 22, 2014 5:04 pm

Hahaha, thats exactly what I did and came here to post :D thank you

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest