Jump to content

Avvi

Members
  • Posts

    397
  • Joined

  • Last visited

Everything posted by Avvi

  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. Do you know what channel that is in?
  6. 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/
  7. Go to https://wrobot.eu/clients/purchases/ . It will show your key on the right hand side.
  8. Ha... Are you above the law or something?
  9. By the way, not using your 'own name' on paypal is against their ToS and is also considered a felony depending on where you live. I'd be careful about what else you reveal about yourself here.
  10. I hope you like being linked to a crime. You'll be the first we'll report , and the first they'll gather information from. Good luck ?
  11. You do know that that is a threat and that this website has your IP address, right? On top of your IP address, you've also already revealed your age, and that your a student. To top it off, Droidz also knows what your paypal account information is. It wouldn't take long to figure out your full name and your exact location. We already have enough information to report you to authorities if you were to do anything as stupid as you suggest. I wouldn't recommend trying it.
  12. Yes this is exactly how I achieve it in my code. Not the best solution, but an easy one.
  13. My plug-in can do this. Currently the default for 'player nearby' after go to town is 30 seconds but you can change this if you'd like. https://wrobot.eu/files/file/1332-paid-roboalert-game-alerts-discord-phone-notification-email-sound-on-whisper-rare-mob-teleport-logout-death-pause-etc/
  14. If you would like to ignore states, you can do so. Below is an example of ignoring/cancelling the To Town State. robotManager.Events.FiniteStateMachineEvents.OnBeforeCheckIfNeedToRunState += (engine, state, cancelable) => { if (state != null && state.DisplayName == "To Town") { Logging.Write("We have cancelled the To Town State"); cancelable.Cancel = true; } };
  15. Ah ok. Sorry I misread your initial post.
  16. I talk about States on my Tips & Tricks Thread. Does that provide enough information, or do you think additional information/tips should be added for that section?
  17. This isn't what I'd consider an 'api' doc, but if you need somewhere to get started, you can take a look at this:
  18. Is F# fight class development supported? I know that WRobot supports .net 4.0 but hadn't ever seen things written in anything other than that.
  19. I think it might be crashing because FirstOrDefault is not returning an instance of an object. So, you'll need to check if the object returned is null or not before checking its distance property. For example: var tram = ObjectManager.GetWoWGameObjectByyId(176082).FirstOrDefault(); if(tram!=null){ var distance = tram.GetDistance(); if(distance<=25){ Logging.Write("Tram is within 25 units"); } else{ Logging.Write("Tram is farther than 25 units"); } } else{ Logging.Write("Tram is null"); } Also, to be safe, you can wrap the entire thing in a try catch block. This will prevent WRobot from crashing. try{ var tram = ObjectManager.GetWoWGameObjectByyId(176082).FirstOrDefault(); if(tram!=null){ var distance = tram.GetDistance(); if(distance<=25){ Logging.Write("Tram is within 25 units"); } else{ Logging.Write("Tram is farther than 25 units"); } } else{ Logging.Write("Tram is null"); } } catch(Exception e){ Logging.Write("Uh oh... something happened:"+ e.ToString()); }
  20. Can you provide a URL to the cracked version or more details on who to contact for a copy of it so that Droidz can work with getting it taken down? Might be better to do this over PM to prevent other people from using this method.
  21. I have not experienced this issue myself. I think this to be an issue on your side. I suggest that you open a Bug Report https://wrobot.eu/bugtracker/ so that Droidz can work to help you fix this problem.
×
×
  • Create New...