Rock5's Teleporter Helper Functions (aka GoToPortal)

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.
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Teleporter Helper Functions (aka GoToPortal)

#21 Post by rock5 » Fri Oct 12, 2012 11:52 pm

Try making a waypoint at each teleport point.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Rock5's Teleporter Helper Functions (aka GoToPortal)

#22 Post by Cindy » Sat Oct 13, 2012 7:29 am

I got it to work, just added 10 as parameter to the waitforloadingscreen calls, and done it 3 times in a row successively last nigh. I inevitably crash, now am trying to figure out how to restart rom and continue when that happens.

japanac
Posts: 16
Joined: Thu Aug 30, 2012 6:54 am

Re: Rock5's Teleporter Helper Functions (aka GoToPortal)

#23 Post by japanac » Tue Nov 06, 2012 6:30 pm

miss
Attachments
Halloween_Event.xml
(18.64 KiB) Downloaded 189 times

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's Teleporter Helper Functions (aka GoToPortal)

#24 Post by rock5 » Fri Dec 14, 2012 6:10 am

Version 2.10 released.

With Lisas help I've made the GoToPortal and GoThroughPortal more reliable.

I've also added an option to make it easier to find a portals ids when it goes to the wrong object and not the portal.

Lets say you use

Code: Select all

GoThroughPortal()
but instead of going to the portal it runs to another object nearby with no name. First thing to try is adjust the position of the waypoint closer to the portal. But if this doesn't work you can now have it target the second closest no name object.

Code: Select all

GoThroughPortal(nil, 2)
If by chance that still goes to the wrong object you can keep incrementing that number until it goes through the portal. Once it goes through the portal it will print its id.

Code: Select all

Targeting portal 110578, range 114.544510265
Then it is recommended you add the id to the command to make sure it targets the portal every time.

Code: Select all

GoThroughPortal(nil, 110578)
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

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

Re: Rock5's Teleporter Helper Functions (aka GoToPortal)

#25 Post by BlubBlab » Tue Jan 15, 2013 10:40 am

Only an idear how about this:

Code: Select all

function GoSaveThroughPortalpeerFile(_file)
	local WorldMap == RoMScript( "GetCurrentWorldMapID();" );
	if not GoThroughPortal() then
		if(RoMScript( "GetCurrentWorldMapID();" ) == WorldMap)then
			keyboardRelease( settings.hotkeys.MOVE_FORWARD.key );
			--changeProfileOption("WP_NO_STOP", false);
			__WPL:setWaypointIndex(__WPL.LastWaypoint - 1)
		else
			loadPaths(_file);
		end
	else
			loadPaths(_file);
	end
end
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

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Rock5's Teleporter Helper Functions (aka GoToPortal)

#26 Post by abron1 » Mon Feb 11, 2013 3:52 am

my go to portal works fine for the party leader but for the partyhealer it will target the portal but won't go through for some reason i downloaded the latest version but can't get the party healer to go in.

Code: Select all

We use the normal waypoint path partyhealer.xml now.
GM detection started
Party Monitor started.
Party member 1 has the name of *****
Targeting portal 112224, range 68.357533073678
The loading screen didn't appear...
Did not find any crashed game clients.
0:47am - IGF:\SendChatMessage('I didn't see a loadingscreen, please check I went
 through portal', 'PARTY')\ Error in command sent to IGF.
this is the error i get

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

Re: Rock5's Teleporter Helper Functions (aka GoToPortal)

#27 Post by lisa » Mon Feb 11, 2013 4:10 am

ok well that error is my mistake, I used a ' when I said didn't, but that still doesn't explain why it isn't going through the portal in the first place.
So yeah the issue of not going through portal should be discussed here, I'll post another party.lua in the other topic for party stuff.
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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests