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. :)

Macro

WRobot user
  • Content Count

    12
  • Joined

  • Last visited


Reputation Activity

  1. Thanks
    Macro reacted to t00z in How do you make and use variables?   
    public class Example1 { private static var newVarible = "something"; public static string newVariable { get { return name; } set { name = value; } } } public class Example2 { if (Example1.newVariable == "something") { print(Example1.newVariable); //Output: something } } Keep in mind these are very loosely based examples just to depict what is going on
    Ugh...stupid edits removed my code examples...im kind of mad I had a quick lesson in variables for you =/. The above one that survived tries to explain how variables can cross "scopes" and be used across multiple classes. If you are just working with variables within a single class, you only need to declare the variable above the code you will use it in:
    public class Example3 { var newVariable = "something"; if (1 = 1) { print(newVariable); //output: something newVariable = "something else"; print(newVariable); //output: something else } else { print(newVariable); //output: something newVariable = "something new"; } print(newVariable); //output: something else as 1 = 1 }  
    Anyway, here's a snipplet that will work for your particular case:
    string[] spells = new [] {"frostbolt", "arcane missles", "fireball"}; string[] shuffled = spells.OrderBy(n => Guid.NewGuid()).ToArray(); if (wManager.Wow.Helpers.SpellManager.KnowSpell(shuffled[0]) && ObjectManager.Target.GetDistance < 30) {     wManager.Wow.Helpers.SpellManager.CastSpellByNameLUA(shuffled[0]); } Arrays are just groups of variables under one umbrella that are given index numbers (starting at 0) so they can be referenced in a plethora of ways. In this snipplet, your spell names populate a string array called "spells". another array "shuffled" takes the values in "spells" and assigns/reorders them with new Guids- which is basically a tricking the array into shuffling the index numbers of the spells. This means every time the code is called, the contents of shuffled[0] changes randomly.
    Tip: declaring a "var" simply tells the interpreter it's on it's own when it comes to parsing the value of the variable. var can be replaced with things like string,int,float etc to designate specifically what kind of value you are storing. In the case above, string[] designates the array will consist of strings, where int[] would designate the array consists of numbers/intergers.
  2. Thanks
    Macro reacted to Marsbar in How do you make and use variables?   
    var random = new Random().Next(1,4); You can test it in the dev tools, do this (with execution type set to C#):
     
    var random = new Random().Next(1,4); Logging.Write(random.ToString()); DevTools help:https://marsbars.gitlab.io/unoffical-wrobot-api-docs/articles/devtools.html
  3. Thanks
    Macro reacted to Droidz in How can I do two actions at once?   
    Hello,
    wManager.Wow.Helpers.Move.Forward(Move.MoveAction.DownKey); wManager.Wow.Helpers.Keybindings.PressKeybindings(wManager.Wow.Enums.Keybindings.JUMP); System.Threading.Thread.Sleep(1500); wManager.Wow.Helpers.Move.Forward(Move.MoveAction.UpKey); or
    wManager.Wow.Helpers.Move.Forward(Move.MoveAction.DownKey); wManager.Wow.Helpers.Move.JumpOrAscend(); System.Threading.Thread.Sleep(1500); wManager.Wow.Helpers.Move.Forward(Move.MoveAction.UpKey);  
  4. Like
    Macro reacted to zeeb in Stop Bot on Teleport   
    @Droidz Could you add this function to the bot?
    Having the game close onTeleport is instant ban on all private servers because it is a dead giveaway that you're botting.

    Instead having the bot stop/pause when teleported, add a 5 second delay and then send a message with squares (as if you're russian or chinese) will improve chances of not getting banned.
    However small a margin, we should always strive to improve our odds.

    Having the option to decide what action to take on each bot security option would be a great addition! (Stop, Close, Pause, Send Message, whatever)

    Kind regards, Z.
  5. Like
    Macro reacted to zeeb in Stop Bot on Teleport   
    Hey dude, I cincerely appreciate you taking time to help the community, but I'm unsure if you simply misunderstood me or didn't read all of my previous post.
    "Close bot" also closes WoW.exe which makes you sit and logout, it's a dead giveaway to GM's which will just ban you on the spot.
    If you turn it off, your character "presumably" will wander around in whichever area the GM teleported you to, which in turn will show that you're not /AFK.
    (Trying to move to the bot location)

    That in turn removes the option to play dumb or simply tell the GM that you were AFK. GM's generally dont follow players around, they read a report stating that the character is botting, teleports the target to a selected area, watch the characters actions, whisper and then decide if they smite with the banhammer or teleport them back to where they were.

    I could be wrong, but I've botted on another game called Tibia and those bots had options if you were to be teleported; Close, Stop, Say etc.
    Common sense, experience and basic human logic tells me this is the action with most % probability a GM will take on each report of botting.
    (We're inherently lazy creatures, which is why we invent things to make tasks easier to complete)

    So many times has it saved my ass in that game when the bot simply stopped and my character looked to be AFK. I get 30~ seconds to get my ass to the computer, respond to whatever the GM asks me and then sent on my way to continue on. There were even times when the GM would simply leave because being AFK was not a crime and without evidence he didn't felt like wasting his time.

    My previous post states that "Close bot" is not efficient enough for this very reason, more options could and should be added to further improve the user's odds.
    However small % increase to botting success, we should always strive to increase those %.

    Afterall this is why we're all here in the first place.
  6. Like
    Macro reacted to zeeb in Stop Bot on Teleport   
    bump
  7. Like
    Macro reacted to angelo in Stop Bot on Teleport   
    Yeah also got a ban on my fishing bot on northale.. bot was runnin on my 2. monitor and i played some Rocket league games on my main screen.. then i got teleportet and i tried to hit the stop button as fast as possible but char was still runnin 2 sec. or somethin agains a wall after teleport.. 
    i turned that close bot if teleportet off because it also logout game and i also think thats deadly if u are already teleportet..
    so i think the option to just stop bot if teleportet would be a good start..
    also maybe if u can save some words wich /say after teleport would be next level..
    but i would rly like just that /stop wrobot solution 😄
     
    Grettings
  8. Like
    Macro reacted to Bambo in What features are you missing?   
    1. wDiscord
    2. MovementRandomizer + SmoothMove
  9. Like
    Macro got a reaction from Bambo in What features are you missing?   
    What about a feature / plugin that sets an alarm if the bot is stuck accepting/ completing quests, stuck on terrain, gets teleported, gets a group invite etc etc. I like alarms to notify me rather than the game closing.
     
    I think it would be really cool as well to develop a feature/plugin that puts variation in to the path the bot takes to the target so that its not always just a 100% straight line. Maybe sway the character or have a calculation that allows you to strafe slightly before going directly toward your target (at random)... but maybe that can only be done inside of the fight class.
  10. Like
    Macro reacted to Marsbar in Unofficial WRobot API Documentation   
    Hi!
    There are often questions regarding the wrobot api and what functions it has, generally you're told to either decompile the dlls or reference them in your visual studio project and use the object browser.
    Some people only want to know a certain function name and don't wish to go into the deeper realms of development. There isn't a resource they can use to obtain that info without some effort on their part, that's hopefully where this site I generated will come in handy:

    Unofficial WRobot API Docs
    It was created by decompiling the vanilla wmanager and robotmanager dlls and generating an api web template using docfx.
    Currently it doesn't give you anything more than you'd have by decompiling the dlls yourself but I'm hoping to update this with method, property, constructer etc. descriptions and potentially basic code snippets for a better understanding of the wrobot api.
    If you're interested in contributing let me know and I can add you to the gitlab project (sorry if you don't like gitlab but it was quick and easy with free private repos).
  11. Like
    Macro reacted to RADON in Is there a resource for finding C# Wow scripts?   
    These are about the extent of it, there isn't any 'official' WRobot documentation. The Developer's Assistance forum is always helpful too.
     
×