November 1, 20178 yr 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...
November 2, 20178 yr Probably because you could quite easily write it in a plugin and not use the setting
November 2, 20178 yr Author 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.
November 2, 20178 yr 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)
November 2, 20178 yr Author 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 :)
November 2, 20178 yr Author Realized Me Human Plugin has this functionality. That will do nicely as a template to start from. Thanks Marsbar
November 2, 20178 yr Author 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();
November 2, 20178 yr 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); } }
Create an account or sign in to comment