Following Character in Goblin Mines
Following Character in Goblin Mines
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.
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.
Re: Following Character in Goblin Mines
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.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Following Character in Goblin Mines
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 :]
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 :]
Re: Following Character in Goblin Mines
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.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Following Character in Goblin Mines
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?
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?
Re: Following Character in Goblin Mines
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
Re: Following Character in Goblin Mines
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
Re: Following Character in Goblin Mines
and to not follow or to follow the leader... i forgot what userfunction for this.. partymonitoring??? not sure also
Code: Select all
sendPartyChat('com"nofollow"')
Re: Following Character in Goblin Mines
Well... thats a nice idea !
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.
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.
Re: Following Character in Goblin Mines
Code: Select all
sendPartyChat('com"nofollow"')
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Following Character in Goblin Mines
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.
<!-- # 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.
Re: Following Character in Goblin Mines
i would do somthing like this insted of yrest(10000);
not tested
and for folowing you can useThere is a range limit to this function and seems to be same as tab targeting range.
Code: Select all
repeat
yrest(1000)
until RoMScript("StaticPopup1:IsVisible()")
AcceptPopup(StaticPopup1, 1)
waitForLoadingScreen();
and for folowing you can use
Code: Select all
RomScript("FollowUnit('party1')")
Life is a journey, not destination
Re: Following Character in Goblin Mines
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 :]
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 :]
Re: Following Character in Goblin Mines
Been a function in bot for a while to cover that.kuripot wrote:i think it can help
Code: Select all
checkparty(distance)
You must be an optimistFrancam wrote:I guess those are last problems that I would encounter.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Following Character in Goblin Mines
<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.
<!-- # 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.
Re: Following Character in Goblin Mines
Well sorry man, it's my bad, i was little drunk that night capital "M" , not
Actaly it'sFrancam wrote: [string " ... ":2: attepmt to call global 'RomScript' (a nil value) "
Code: Select all
RoMScript("FollowUnit('party1')")
Code: Select all
RomScript("FollowUnit('party1')")
Yes wallon() is enough.Francam wrote:I would also want to turn on wall hack, is that ( wallon() ) enough to do it?
Last edited by lolita on Mon Jul 29, 2013 9:24 pm, edited 1 time in total.
Life is a journey, not destination
Re: Following Character in Goblin Mines
It works 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 :]
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 :]
Re: Following Character in Goblin Mines
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:You must be an optimistFrancam wrote:I guess those are last problems that I would encounter.
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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Following Character in Goblin Mines
maybe you can try something difrent for folowing, something like this (i edited part of rock5 cot_tele code)And add this to your waypoint 3maybe rock5 or lisa have better idea
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
Code: Select all
<!-- # 3 --><waypoint x="2253" z="2308" y="312"> FolowPlayer() </waypoint>
Life is a journey, not destination
Re: Following Character in Goblin Mines
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.
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.
Who is online
Users browsing this forum: No registered users and 2 guests