Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

Avvi

Members
  • Content Count

    392
  • Joined

  • Last visited

6 Followers

About Avvi

  • Rank
    Advanced Member

Recent Profile Visitors

1690 profile views
  1. If your desire is to wait 5 minutes, and sometimes wait 1 minute, then something like this will work: public void pluginLoop() { bool lootStuff = false; int longerTimeToWait = 300000; int shortTimeToWait = 60000; int actualTimeToWait = shortTimeToWait; while (Products.IsStarted && _isLaunched) { if (!Products.InPause) { wManager.wManagerSetting.CurrentSetting.LootMobs = lootStuff; lootStuff= !lootStuff; if(actualTimeToWait == longerTimeToWait){ actualTimeToWait = shortTimeToWait; } else{ actualTimeToWait = longerTimeToWait } Logging.Write("Waiting this long until switching looting status: " + actualTimeToWait); Thread.Sleep(actualTimeToWait); } } }
  2. unfortunately, that won't work. That will make it do the following: Set looting to the variables value. Wait 5 minutes before doing anything Flip the looting variable to the opposite value Wait for 1 minute Repeat So you'll get something like this: Variable value = false: Set looting to false. Make plugin wait 5 minutes before doing anything Set looting variable to true Make plugin wait 1 minute before doing anything Repeat: Set looting to True. Make plugin wait 5 minutes before doing anything Set looting variable to False Make plugin wait 1 minute before doing anything Repeat Set looting to false. Make plugin wait 5 minutes before doing anything Set looting variable to true Make plugin wait 1 minute before doing anything Repeat I think your desired outcome is something else. I'm guessing you want it to sometimes wait 5 minutes, and sometimes wait 1 minute? I am glad I could help 🙂 !!!
  3. Oh, well then that's great news! In that case, you can swap out my plugin template's pluginLoop with this: public void pluginLoop() { bool lootStuff = false; while (Products.IsStarted && _isLaunched) { if (!Products.InPause) { wManager.wManagerSetting.CurrentSetting.LootMobs = lootStuff; lootStuff= !lootStuff; Thread.Sleep(300000); } } } It will wait 300,000 (5 minutes ) milliseconds and then it will flip the LootMobs value from False to True. After another 300,000 milliseconds (5 minutes ) it will go from True to False. It will flip it over and over until the WRobot it turned off. Regarding my template, there are a lot of extra things in there. I added them so that there would be examples of many things 🙂 . If you'd like, you can create a Setting that lets you set the milliseconds manually. Or, you can copy what I've done below. (Replace pluginLoop and pluginSettings : Settings public void pluginLoop() { bool lootStuff = false; while (Products.IsStarted && _isLaunched) { if (!Products.InPause) { wManager.wManagerSetting.CurrentSetting.LootMobs = lootStuff; lootStuff= !lootStuff; Thread.Sleep(_settings.timetowait); } } } [Serializable] public class pluginSettings : Settings { public pluginSettings() { timetowait = 300000; } [Setting] [Category("General Settings")] [DisplayName("Time to wait before looting stuff")] [Description("This is a Description.")] public int timetowait { get; set; } public static pluginSettings CurrentSetting { get; set; } public bool Save() { try { return Save(AdviserFilePathAndName("TemplateProjectName", ObjectManager.Me.Name + "." + Usefuls.RealmName)); } catch (Exception e) { Logging.WriteError("TemplateProjectName > Save(): " + e); return false; } } public static bool Load() { try { if (File.Exists(AdviserFilePathAndName("TemplateProjectName", ObjectManager.Me.Name + "." + Usefuls.RealmName))) { CurrentSetting = Load<pluginSettings>(AdviserFilePathAndName("TemplateProjectName", ObjectManager.Me.Name + "." + Usefuls.RealmName)); return true; } CurrentSetting = new pluginSettings(); } catch (Exception e) { Logging.WriteError("TemplateProjectName > Load(): " + e); } return false; } }
  4. I think that that WRobot will only try looting after it kills something. So if the line that droidz (LootMobs = false;) sent was used, and you killed 20 mobs, it would only loot things for after when you did LootMobs = true
  5. Avvi

    How to log GM messages

    Do you know what channel that is in?
  6. 1. The plugin _should_ gather for friendly and enemy players. It uses the WRobot API to determine if players are nearby, so unless this is broken by Droidz, it should pull back both. 2. Yes you can set a range for players before it sounds.
  7. bumping for visibility
  8. Ooops. Sorry about that. The coupon expired over night while I was asleep! I have renewed it so that it stays open through June 11th.
  9. Hmm. Is this true? I thought you were allowed to bot on as many as you wanted, as long as you were on the same IP? https://web.archive.org/web/20160422023648/https://wrobot.eu/store/category/2-wrobot/
  10. Go to https://wrobot.eu/clients/purchases/ . It will show your key on the right hand side.
  11. @Mike-Mail / @Radoi I've added the Pause / Resume / and Pause Status features. Let me know what you think!
  12. Avvi

    Why is admin using my account?!

    Ha... Are you above the law or something?
×