-
Notifications
You must be signed in to change notification settings - Fork 332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MFHelper #1851
Comments
Hey bro, |
Yep I using the latest Kolbot files. I only add TeamCheck Function in Pather.js, and called by Attack.js (kill, clear, clearlevel). Recive command and response in MFHelper.js This code made MFLeader broadcast his position via chat message, then MFHelpers could use the determinate area instead Also I noticed that Here is my update: |
Bro your links dont work. You need to comment your work as otherwise I'd have to compare the current scripts with yours... no fun! Try and work out the pull request - reach out to those whom have submitted some for advice. youtube prolly has videos for github pulls too on that note, can you make a video of the changes you mention to see how it works? |
@Whyy0416 First of all, you should fork the main repository (check top-right line), then you can add your fixes to your forked repo, and the PR can be created-from-a-fork. atm there is another PR about MFHelper #1188 |
So here's the thing. I only tested it in local LAN game, I can't promise this will work in single player mode or official server. |
no worries - a PR would help us see what the changes are - sounds like you'll work out the PR ;) |
@mf022 aha! I Thought that had already been merged - this is what I'm waiting for! |
I pulled a request. Git Extensions is more complicated than I thought. Hope I didn't mess it up. |
youve got to be sure the PR mf022 referenced doesnt do what yours is trying to do.. |
I have used the tortoiseSVN > Commit function to add the changes on the forked repository, obtaining the same results. |
I really like this, but is there anyway I can get my MFHelper to forcefinish if the Leader is done? My Barb doesn't have teleport & takes forever wandering around Pit to check the map is cleared. I just want him to drop everything and move to the next area if my Leader (Sorc) is done. Again, this runs wonderful if everyone has Enigma. |
@DrShunk I dont know what the 2 PR's are doing but if they dont solve this then maybe something simple like having the leader say() a new unique command, like "scriptComplete" and add another check to mfhelper to gototown start the wait cycle for another command for the next script? |
Will try this, Im really a novice though but I'll do my best! Edit: I have no idea what I am doing and everything I do makes me sad |
No worries, should be easy! https://github.com/kolton/d2bot-with-kolbot/blob/master/d2bs/kolbot/libs/bots/MFHelper.js function ChatEvent(name, msg) {
if (!player) {
var i,
match = ["kill", "clearlevel", "clear", "quit", "cows", "council"]; it matches the commands issued by leader - you could add a command there. in attack.js is where the leader (or any bot) is told to use those commands. say("kill " + classId);" eg: modified attack.js (at each end of clear, clearlevel, kill etc): and the mfhelper will goto town and start the loop again (wait for a command from leader then look for their tp etc) |
Probably this is not a issue post.
I use bot in local LAN game. But when I use MFLeader and MFHelper, I met same problem as #280 and #1373. Cause my Sorc character mf too fast and left others behind, so that Sorc runs another script , they are still running last MF script.
And another issue is if (me.area === player.area) in MFHelper.js , If the leader called doChores() in town, and the others finished script and stay in town. then they will run all over the town.
Here is my solution, I made the leader wait for others at the beginning and the end in a script.
Attack.js:
https://pastebin.com/44FpE240
Pather.js:
https://pastebin.com/xvHBxxFj
MFHelper.js:
https://pastebin.com/dqm5TxSq
And I found another problem. while a character is loading, he can't recive chat message. Maybe it's better to use EventListener?
Sorry for I put my code here. But I don't know how to pull request.
The text was updated successfully, but these errors were encountered: