Seminko 40 Posted November 1, 2017 Share Posted November 1, 2017 It looks really crappy / bot-like when you're eating, a player comes within range and you just stand up with 30% HP without finishing eating. The same way bot waits for combat to finish before it pauses itself, it should wait for regen to finish. EDIT: Wrote a plugin for this. Once properly tested, I will release it... Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/ Share on other sites More sharing options...
Droidz 2738 Posted November 2, 2017 Share Posted November 2, 2017 Hello, I'll not add this feature Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34390 Share on other sites More sharing options...
Seminko 40 Posted November 2, 2017 Author Share Posted November 2, 2017 What a shame. What's the reason for that? Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34396 Share on other sites More sharing options...
Marsbar 228 Posted November 2, 2017 Share Posted November 2, 2017 Probably because you could quite easily write it in a plugin and not use the setting Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34398 Share on other sites More sharing options...
Seminko 40 Posted November 2, 2017 Author Share Posted November 2, 2017 Can't really imagine it. Like if me.havebuff.food then wrobot.settings.pauseifplayer = false ? That would mess up the timer though. Also, not even sure if that can be controlled. Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34400 Share on other sites More sharing options...
Marsbar 228 Posted November 2, 2017 Share Posted November 2, 2017 No i mean not using the setting at all and just setting the bot to be in a paused state while a player is near (unless in combat or regenerating) Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34401 Share on other sites More sharing options...
Seminko 40 Posted November 2, 2017 Author Share Posted November 2, 2017 Just now, Marsbar said: No i mean not using the setting at all and just setting the bot to be in a paused state while a player is near (unless in combat or regenerating) Right... Hmmm, will look into it :) Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34402 Share on other sites More sharing options...
Seminko 40 Posted November 2, 2017 Author Share Posted November 2, 2017 Realized Me Human Plugin has this functionality. That will do nicely as a template to start from. Thanks Marsbar Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34403 Share on other sites More sharing options...
Seminko 40 Posted November 2, 2017 Author Share Posted November 2, 2017 Well it was easier then I thought :) Marsbar 1 Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34413 Share on other sites More sharing options...
Seminko 40 Posted November 2, 2017 Author Share Posted November 2, 2017 One more thing @Marsbar. I have this line, look below. How do I get all of the names of the player so I can print it in the log? var PlayersNearby = ObjectManager.GetObjectWoWPlayer().Where(p => p.GetDistance <= 120).ToList(); Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34415 Share on other sites More sharing options...
Marsbar 228 Posted November 2, 2017 Share Posted November 2, 2017 foreach (var player in ObjectManager.GetObjectWoWPlayer().Where(p => p.GetDistance <= 120)) { Logging.Write("Player '" + player.Name + "' is close by!"); } Guess you could do that. May want to add a timer in there though so it doesn't spam the log like mad. edit: Maybe something like that around it> using Timer = robotManager.Helpful.Timer; public Timer PlayerNotificationTimer = new Timer(); public void GetPlayers() { if (PlayerNotificationTimer.IsReady) { foreach (var player in ObjectManager.GetObjectWoWPlayer().Where(p => p.GetDistance <= 120)) { Logging.Write("Player '" + player.Name + "' is close by!"); } PlayerNotificationTimer = new Timer(1000 * 5); } } Seminko 1 Link to comment https://wrobot.eu/forums/topic/7536-resolved-pause-if-player-nearby-only-after-regen-finishes/#findComment-34416 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now