-
Posts
397 -
Joined
-
Last visited
Content Type
Forums
Articles
Bug Tracker
Downloads
Store
Everything posted by Avvi
-
How do the BeforeStates and NextStates work?
Avvi replied to Marsbar's topic in Developers assistance
I sort of talked about this in my post: -
Fastest/Best Way To Regularly Toggle Looting Off/On
Avvi replied to Stresse's topic in Developers assistance
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); } } } -
Fastest/Best Way To Regularly Toggle Looting Off/On
Avvi replied to Stresse's topic in Developers assistance
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 ? !!! -
Fastest/Best Way To Regularly Toggle Looting Off/On
Avvi replied to Stresse's topic in Developers assistance
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; } } -
Fastest/Best Way To Regularly Toggle Looting Off/On
Avvi replied to Stresse's topic in Developers assistance
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 -
Do you know what channel that is in?
-
Avvi's C# Tips & Tricks with Helpful Code Snippets
Avvi replied to Avvi's topic in Developers assistance
bumping for visibility -
2.0.1v Bot closing after 5 min
Avvi replied to Bogdan079's topic in WRobot for Wow The Burning Crusade - Help and support
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/ -
I do not know how to run the program. What to do?
Avvi replied to Mobilstend's topic in General assistance
Go to https://wrobot.eu/clients/purchases/ . It will show your key on the right hand side. -
Ha... Are you above the law or something?
-
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.
-
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 ?
-
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.
-
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; } };
-
Ah ok. Sorry I misread your initial post.
-
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?
-
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:
-
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.
-
Error while trying to get distance from Object (Ship)
Avvi replied to ScripterQQ's topic in Developers assistance
Great, cool to see the null check worked! -
Error while trying to get distance from Object (Ship)
Avvi replied to ScripterQQ's topic in Developers assistance
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()); } -
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.
-
[Free] Operator - Multiboxing & Multiboxing Assistance Plugin
Avvi commented on Yayybo's file in Plugins - TBC
- 15 comments
-
- multiboxing
- party
-
(and 1 more)
Tagged with:
-
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.