Following Character in Goblin Mines

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
Francam
Posts: 9
Joined: Wed Jul 17, 2013 9:25 am

Following Character in Goblin Mines

#1 Post by Francam » Wed Jul 24, 2013 4:08 pm

Hi

Im new here, I just started learning how to make waypoints for bot to use. I would like to make waypoint allowing 2 players to enter goblin mines, 1 char kills mobs in there, and 2nd just follow gaining exp. It could be a good way to Power Level some players.

Waypoint would require entering to goblin mines, going through whole thing, leaving party, re-party and repeat. I think I can do it for one char (I try to learn by watching completed waypoints, example Goblin_pot WP to farm potions), but the other one is huge problem...

Do I have to start 2 rombots, for each char? 2nd WP would just be w8 for pop up (to get in), and just follow.
Or can it be done in one WP?

I searched for topics like that, I tried to read whole "party bot" topic but I cant understand it yet ;/

I would really appreciate any kind of help.

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

Re: Following Character in Goblin Mines

#2 Post by lisa » Wed Jul 24, 2013 9:08 pm

Each character would need their own MM running and controlling it, so you can't do both characters with just 1 MM, well technically you could but way to painful.

Successfully repeating of following in instances can be a pain in itself, do a forum search for DoD and have a look at some of the ways other people have handled it for that instance.
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

Francam
Posts: 9
Joined: Wed Jul 17, 2013 9:25 am

Re: Following Character in Goblin Mines

#3 Post by Francam » Thu Jul 25, 2013 7:02 am

Thank you for answer Lisa :]

I did searched for it. The only topic that could help me is "DoD First Boss spam solo and party, full DoD now too". I tried to check waypoint made in there, but they are kinda complicated... I think I have a lot of learning to do.

When I created that topic I thought that it could be easily done. Leader has whole WP to kill all mobs, but follower just something like:
wait for invite -> wait for window to accept enterace (waitFor RoMScript("StaticPopup_OnClick(StaticPopup1, 1);") ?) -> yrest (same as leader) -> follow by name (so just follow that one person) -> leader kills all, re party and repeat.

But I guess thats just a dream xD I tried to learn how the following Wabbit was done in Spring Festival WP but that failed too. I tried to find some simple command to follow, but I couldnt find one. Anything like that exist?

Thanks again for answer and looking forward to next one :]

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

Re: Following Character in Goblin Mines

#4 Post by lisa » Thu Jul 25, 2013 7:32 am

The trouble with automating things is you need to account for things to go wrong, you could do up a basic thing to do what you said but
what happens when the leader dies,
what happens if follower dies,
what happens if you get stuck on an object in the instance,
what happens if you miss some mobs and so instance isn't fully cleared,
what happens if either character gets disconnected
what happens if ........


As humans we make decisions very quickly but as a computer programme it needs to be told what to do for each decision that needs making otherwise it will just stop working at some stage.
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

Francam
Posts: 9
Joined: Wed Jul 17, 2013 9:25 am

Re: Following Character in Goblin Mines

#5 Post by Francam » Thu Jul 25, 2013 8:46 am

I understand what you are saying, that really would be troublesome but still that WP doesnt have to be perfect, I have to start with something and try to improve it :]

If leader enters by RoMScript("StaticPopup_OnClick(StaticPopup1, 1);"), can i just add "Waitfor" (WaitforRoMScript("StaticPopup_OnClick(StaticPopup1, 1);") in follower WP? so he would accept it when it pops up.

Is there a command to follow (maybe follow by name, something) or should I just make follower longer yrest and then just walk same path as Leader?

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Following Character in Goblin Mines

#6 Post by kuripot » Thu Jul 25, 2013 11:51 am

i think it can help

Code: Select all

	function waitForParty()
		repeat
			local we_ready = true
			player:update()
			for i = 1, #DOD_PARTY_MEMBERS do
				local _partymember = player:findNearestNameOrId(DOD_PARTY_MEMBERS[i])
				if not _partymember or (_partymember and distance(player.X,player.Z,player.Y,_partymember.X,_partymember.Z,_partymember.Y) > 150) then
					we_ready = false
					cprintf(cli.lightred,"Waiting for "..DOD_PARTY_MEMBERS[i].."\n")
				end
			end
			yrest(500)
		until we_ready
		cprintf(cli.lightgreen,"Party is ready!\n")
	end

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Following Character in Goblin Mines

#7 Post by kuripot » Thu Jul 25, 2013 11:53 am

maybe you need to put in onload of member profile?? but not sure

Code: Select all

	 if player:target_NPC(112651) then
		sendMacro("ChoiceOption(1);");
		yrest(5000);
		RoMScript("StaticPopup_OnClick(StaticPopup1, 1);")
		waitForLoadingScreen();
		__WPL:setWaypointIndex(2) -- or whatever point you want it to go to first.
	 else
		error("You are too far from Mahler Palo")
	 end

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Following Character in Goblin Mines

#8 Post by kuripot » Thu Jul 25, 2013 11:55 am

and

Code: Select all

sendPartyChat('com"nofollow"')
to not follow or to follow the leader... i forgot what userfunction for this.. partymonitoring??? not sure also

Francam
Posts: 9
Joined: Wed Jul 17, 2013 9:25 am

Re: Following Character in Goblin Mines

#9 Post by Francam » Thu Jul 25, 2013 1:41 pm

Well... thats a nice idea ! :D

I didnt thought about using yrest to get it right.
I would start with a party, then open 2 micromacro for both characters. Leader would go to NPC and start talking, choose 1 option, yrest 5 sec, click pop up and joins. Follower would just go to same WP as leader but he would do nothing, just longer yrest (10 sec?) then click pop up (it should apper but then) and enter.
Leader would wait for 2nd char (yrest again), and then... sendPartyChat('com"follow"') ? would that work ?

Thank you for answers kuripot :] and still looking forward to more.

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

Re: Following Character in Goblin Mines

#10 Post by lisa » Thu Jul 25, 2013 6:30 pm

Code: Select all

sendPartyChat('com"nofollow"')
the party chat is for party bot, so unless you are using partyhealer or partydps it won't do you any good.

What you are trying to do is pretty complicated stuff, maybe make your leaders WP first and get it running nicely before attempting to make a follower WP, while making the leaders WP you will probably learn a lot along the way.
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

Francam
Posts: 9
Joined: Wed Jul 17, 2013 9:25 am

Re: Following Character in Goblin Mines

#11 Post by Francam » Fri Jul 26, 2013 11:50 am

Actually, thanks to Kuripot tips I managed to make simple way to get 2nd char go in :]
<!-- # 1 --><waypoint x="-5885" z="3328" y="572">
yrest(10000);
RoMScript("StaticPopup_OnClick(StaticPopup1, 1);")
waitForLoadingScreen();

Leader goes to NPC, talks to him, choose option, yrest and click pop up. Follower had just longer yrest and click pop up :] way to simple but for now its enough.

Now harder part, following :/ I dont know if there is any command. Stupid but simple way would be adding yrest between every WP, follower would go same path but some seconds later, giving time to finish mobs.

Thats all I can think of now :] If there is any other way please tell me.

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: Following Character in Goblin Mines

#12 Post by lolita » Fri Jul 26, 2013 1:05 pm

i would do somthing like this insted of yrest(10000);

Code: Select all

repeat
	yrest(1000)
until RoMScript("StaticPopup1:IsVisible()")
AcceptPopup(StaticPopup1, 1)
waitForLoadingScreen();
not tested

and for folowing you can use

Code: Select all

RomScript("FollowUnit('party1')")
There is a range limit to this function and seems to be same as tab targeting range.
Life is a journey, not destination :D

Francam
Posts: 9
Joined: Wed Jul 17, 2013 9:25 am

Re: Following Character in Goblin Mines

#13 Post by Francam » Fri Jul 26, 2013 2:57 pm

Thank you very much lolita !

First command works perfectly, tested :]
Second one im trying to test.

But still i remember now that following is kinda hard in that instance cause of one gate. To go through with following char, follower must be really close.
Is there a function to wait for another player to come in a specific distance?
Something like waitForParty() but with a distance.
Or should I just turn wall hack on? xD

I guess those are last problems that I would encounter. Thanks again for help everyone, I really appreciate that :]

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

Re: Following Character in Goblin Mines

#14 Post by lisa » Fri Jul 26, 2013 5:52 pm

kuripot wrote:i think it can help
Been a function in bot for a while to cover that.

Code: Select all

checkparty(distance)
returns true or false.
Francam wrote:I guess those are last problems that I would encounter.
You must be an optimist ;)
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

Francam
Posts: 9
Joined: Wed Jul 17, 2013 9:25 am

Re: Following Character in Goblin Mines

#15 Post by Francam » Sun Jul 28, 2013 1:37 pm

<waypoints>
<!-- # 1 --><waypoint x="-5885" z="3328" y="572">
repeat
yrest(1000)
until RoMScript("StaticPopup1:IsVisible()")
AcceptPopup(StaticPopup1, 1)
waitForLoadingScreen();
yrest(1000)
wallon()
</waypoint>
<!-- # 2 --><waypoint x="2023" z="2233" y="310"> ;</waypoint>
<!-- # 3 --><waypoint x="2253" z="2308" y="312">
RomScript("FollowUnit('player1')")
waitForLoadingScreen();
yrest(5000);
</waypoint>
</waypoints>

Probably a total mess in here... but actually at least my char can enter goblins ;] I wanted it to go inside, then make it to 3rd waypoint and use follow on a leader that would wait there.
But that doesnt work, at 3rd WP micromacrto crashes " [string " ... ":2: attepmt to call global 'RomScript' (a nil value) "
Anyone would be kind enough to tell me how to fix it?

I would also want to turn on wall hack, is that ( wallon() ) enough to do it? I have right file for it in userfunction.

User avatar
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: Following Character in Goblin Mines

#16 Post by lolita » Sun Jul 28, 2013 4:45 pm

Well sorry man, it's my bad, i was little drunk that night :D
Francam wrote: [string " ... ":2: attepmt to call global 'RomScript' (a nil value) "
Actaly it's

Code: Select all

RoMScript("FollowUnit('party1')")
capital "M" , not

Code: Select all

RomScript("FollowUnit('party1')")
Francam wrote:I would also want to turn on wall hack, is that ( wallon() ) enough to do it?
Yes wallon() is enough.
Last edited by lolita on Mon Jul 29, 2013 9:24 pm, edited 1 time in total.
Life is a journey, not destination :D

Francam
Posts: 9
Joined: Wed Jul 17, 2013 9:25 am

Re: Following Character in Goblin Mines

#17 Post by Francam » Mon Jul 29, 2013 4:10 pm

It works :D I actually had to change 'player1' to 'party1' and finally he follows. Thanks a lot Lolita :]

I thought that it would be enough but even with wall hack on (atleaast MM says it is ON) I cant go through gates in middle of goblin mines, were it is really easy to get stuck. I dont think that swim hack can do trick ;/

Well it can be done with short yrest at specific place, but is there any other way? Everything else for now seems fine :]

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

Re: Following Character in Goblin Mines

#18 Post by lisa » Mon Jul 29, 2013 5:35 pm

wall hack makes you walk up walls and such, it doesn't make you walk through walls or doors. To get through doors you need to modify the model files, a few topics about that already on the forum.
lisa wrote:
Francam wrote:I guess those are last problems that I would encounter.
You must be an optimist ;)
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
lolita
Posts: 139
Joined: Thu Oct 20, 2011 5:39 am
Location: Serbia

Re: Following Character in Goblin Mines

#19 Post by lolita » Tue Jul 30, 2013 3:17 am

maybe you can try something difrent for folowing, something like this (i edited part of rock5 cot_tele code)

Code: Select all

-- Add this to your onload
_folowplayer = "player_name_here"

function FolowPlayer()
	local zoneid = RoMScript("GetZoneID()")
	if zoneid == 352 then -- we  are in Gobline Mines
		local lastSealAddress = 0
		fly()
		repeat
			player:update()
			local seal = player:findNearestNameOrId(_folowplayer, lastSealAddress)
			if seal then
				teleport(seal.X, seal.Z, seal.Y + 35) -- dont know what is the height of gate, so try difrent numbers
				yrest(1000)
			end
		until zoneid ~= 352 -- we Exited Goblin mines (change this line to whatever you want to be condition when to stop folowing)
	end
	flyoff()
	cprintf(cli.yellow,"Done with following.\n")
end
And add this to your waypoint 3

Code: Select all

<!-- # 3 --><waypoint x="2253" z="2308" y="312"> FolowPlayer() </waypoint>
maybe rock5 or lisa have better idea :D
Life is a journey, not destination :D

Francam
Posts: 9
Joined: Wed Jul 17, 2013 9:25 am

Re: Following Character in Goblin Mines

#20 Post by Francam » Sat Aug 03, 2013 9:55 am

Sorry for absence, I've been trying my WP.

Actually with really simple methods, thanks to your help, I managed to make it run :] ofc there are MANY problems with it (like Lisa said, sometimes my main hero dies and 2nd one cant do anything :p) but its enough for me :]

If I can ask one last thing, how to get item ID? I know how to get buff ID, and Item ID can be find on RoM Database, but what if its not there? What Im searching for is ID of "Meaningful Love Cake Slice". (buff for Exp and TP +15%), anyone know that ID?

Thank you again for advising me.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest