Jump to content

BetterSister

Elite user
  • Posts

    1887
  • Joined

  • Last visited

Reputation Activity

  1. Like
    BetterSister got a reaction from LunaAlfie in Can i use Protected functions from the Blizzard api?   
    Yes you can 
  2. Like
    BetterSister reacted to Runaro in Anyone els enjoying downloading 7.0?   
    I've learned that lesson some years ago...
    Ordered hardware worth 1300€ and then the company signed insolvent and i got nothing...
    No hardware and no money back.
    That's why i recommend, always use paypal for buying stuff online. ( you can chargeback money for 90 days )
  3. Like
    BetterSister reacted to CaughtUMirin in Get WoWPlayer Realm   
    I'm basically doing what Droidz is doing. Using the GUIDs to get make sure the user is correct.
     
     
     
     
    This code is tested and should work (I modified it to return any role, but I'll test again and make sure). Here's my code:
    public enum Roles { TANK, HEALER, DAMAGER } public static List<string> GetGUIDsByRole(Roles role) { string lua = @"guids = """"; for groupindex = 1,GetNumGroupMembers() do if IsInRaid() then local role = UnitGroupRolesAssigned(""raid"" .. groupindex); if role == ""{0}"" then local name = UnitGUID(""raid"" .. groupindex); guids = guids .. name .. "" ""; end elseif IsInGroup() then local role = UnitGroupRolesAssigned(""party"" .. groupindex) if role == ""{0}"" then local name = UnitGUID(""party"" .. groupindex); guids = name; return; end end end "; var val = Lua.LuaDoString(string.Format(lua, role), "guids"); if (string.IsNullOrWhiteSpace(val)) { Logging.WriteFight("No tanks found!"); return new List<string>(); } var tankNames = val.Split(new char[] { ' ' }, StringSplitOptions.RemoveEmptyEntries).ToList(); return tankNames; }  
     
     
    And Here's where I map them to units:
    public static List<WoWPlayer> GetPartyMembersByRole(Roles role, Vector3 positionCenter, int maxHealthPercent = 100, float maxDistance = float.MaxValue, bool orderByHealth = true) { var guids = GetGUIDsByRole(role); if (guids.Count == 0) return new List<WoWPlayer>(); var units = Party.GetPartyHomeAndInstance().Where(m => guids.Contains(m.Guid128.ToString()) && m.IsValid && m.IsAlive && m.HealthPercent < maxHealthPercent && m.Position.DistanceTo(positionCenter) <= maxDistance); if (orderByHealth) units = units.OrderBy(p => p.HealthPercent); return units.ToList(); }  
     
     
     
     
    This issue would also break SpellManager.CastSpellByNameOn(), so I do this to get the full/CRZ name when casting a heal:
    public static string GetCRZName(WoWUnit unit) { if (!(unit is WoWPlayer)) return unit.Name; string lua = @"class, classFilename, race, raceFilename, sex, name, realm = GetPlayerInfoByGUID(UnitGUID(""{0}"")); if(realm ~= nil and realm ~= """") then name = name .. ""-"" .. realm; end"; var name = Lua.LuaDoString(string.Format(lua, unit.Guid128.ToString()), "name"); return name; } public static async Task<bool> CastHeal(Spell spell, WoWUnit unit, bool reqs, bool ignoreUsable = false) { if (!reqs) return false; string myspell = spell.Name; if (!spell.KnownSpell) return false; if (!spell.IsSpellUsable && !ignoreUsable) return false; if (SpellManager.GetSpellCooldownTimeLeft(myspell) > 0) return false; try { SpellManager.CastSpellByNameOn(myspell, GetCRZName(unit)); if (LastLog != myspell) { Logging.WriteFight(myspell); LastLog = myspell; } await Task.Delay(Usefuls.Latency); return true; } catch (Exception e) { Logging.WriteFight("CastOn: " + myspell + " " + e.ToString()); } return false; }  
     
    Note: I check to see if realm is nil or empty because realm isn't returned if the player is on the same realm. I also check to make sure the WoWUnit is a player before executing the code because it will error out otherwise.
  4. Like
    BetterSister reacted to Droidz in Get WoWPlayer Realm   
    Other same (not tested):
    public enum GroupRoles { NONE, TANK, HEALER, DAMAGER } public static List<WoWPlayer> GetMembersByRoles(GroupRoles role) { var r = new List<WoWPlayer>(); var lua = @"local retMembers = ''; for groupindex = 1,GetNumGroupMembers() do if IsInRaid() then local role = UnitGroupRolesAssigned('raid' .. groupindex); if role == '"+ role + @"' then local guid = UnitGUID('raid' .. groupindex); retMembers = retMembers .. guid .. ';'; end elseif IsInGroup() then local role = UnitGroupRolesAssigned('party' .. groupindex) if role == '" + role + @"' then local guid = UnitGUID('party' .. groupindex); retMembers = retMembers .. guid .. ';'; end end end return retMembers; "; var val = Lua.LuaDoString<string>(lua); if (string.IsNullOrWhiteSpace(val)) return r; // no tank var membersGUID = val.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries); if (membersGUID.Length <= 0) return r; foreach (var p in Party.GetPartyHomeAndInstance()) { if (!p.IsValid) continue; foreach (var guid in membersGUID) { if (string.IsNullOrWhiteSpace(guid)) continue; if (p.Guid128.ToString().ToLower() == guid.Trim().ToLower()) r.Add(new WoWPlayer(p.GetBaseAddress)); } } return r; }  
  5. Like
    BetterSister reacted to Pasterke in Druid cat change.   
    private Spell catForm = new Spell("Cat Form");
    If (!ObjectManager.Me.HaveBuff("Cat Form") && Fight.InFight) { catForm.launch(); }
  6. Like
    BetterSister reacted to Runaro in Partybot doesn't work with worgan   
    Don't think that matters, but i gonna try it with a male worgen during the day.
  7. Like
    BetterSister reacted to ofn in Druid cat change.   
    thanks for your help bettersister :)
  8. Like
    BetterSister got a reaction from Runaro in How to combine "Unit Attack Player Near" with "Unit being attacked is NOT a Tank" ?   
    learning a programming language for 1 purpose is always bullshit. I first learned Java for runescape private server programming when i was around 15 years old (~10 years ago) then i learned VB for creating private runescape item database then i learned python and xml for counter strike source addons then i learned lua for editing WoW addons then i learned more java while making addons for minecraft and now i'm learning C# for WoW. All the previous experience helps me at creating scripts for this bot. It's been 10 years since i started learning about programming and all the random learning here and there sure hasn't gone into trash for nothing (few thousands of euros later)
  9. Like
    BetterSister got a reaction from Droidz in WRobot for Wow 7.0.3 bugs reports   
    noticed 5secs before u posted
  10. Like
    BetterSister reacted to colderpotato in Anyone els enjoying downloading 7.0?   
    Ally US duh pointless to start horde when got a level blood elf sitting there since wod launch and like 10 allys at 100
     
  11. Like
    BetterSister reacted to colderpotato in Anyone els enjoying downloading 7.0?   
    OH yah finally about to be in green with 10 gb left to down thank god, but deff need gpu with fps was getting
  12. Like
    BetterSister reacted to Runaro in How to combine "Unit Attack Player Near" with "Unit being attacked is NOT a Tank" ?   
    "Just for this one purpose"?
    If you really want to do some stuff with this bot, you need basic knowledge in lua and C#.
    Don't think anyone is going to do your stuff for free, just cuz ur lazy and... nvm. this is not going to end well.
    I'm out of this topic, good luck.
  13. Like
    BetterSister reacted to hugojiayiwang in You can support Chinese?   
    software is not support Chinese, But so far the profile is working in TW and CN sver, I play both.
    I think Wrobot is using ID for the stuffs and spells. 
  14. Like
    BetterSister reacted to hugojiayiwang in Building a "Can Interrupt" condition (need help)   
    No, no, no . So far I knew one thing can't be fast, if you are a male. Lol
  15. Like
    BetterSister got a reaction from LunaAlfie in WRobot for Wow 7.0.3 bugs reports   
    EDIT looks like i have the same issue with all own buff checks than before. Even dark succor is now "always on"
    Correct buff id for dark succor is 101568
    After starting to use C sharp code for buff checking all but killing machine buff checks started working. Trying to figure out a way to workaround it
  16. Like
    BetterSister got a reaction from colderpotato in Anyone els enjoying downloading 7.0?   
    I don't really know tho why i'm downloading it cuz i don't have legion nor gametime
    edit: well now i have gametime but still no legion :D
  17. Like
    BetterSister reacted to colderpotato in Anyone els enjoying downloading 7.0?   
    yah if had norm speed got at the grace period of my internet i'd had  1 mb/s last night, but left to assume alot of people downloading or should have modem reset
  18. Like
    BetterSister got a reaction from Droidz in WRobot for Wow 7.0.3 bugs reports   
    Closed teamviewer service via Windows Services. No effect. Changing DX now
    EDIT no freezes so far with DX9
  19. Like
    BetterSister got a reaction from Runaro in Blacklists too fast   
    Yeah the blacklisting logic is currently too strict. Should wait little longer than this
    Main problem is the bot doesn't have a real Caster/range mode than most bots have. Just changing the distance from fight class doesn't stop the bot from trying to be a melee one
  20. Like
    BetterSister reacted to Runaro in Blacklists too fast   
    The best bug is, where the Bot thinks he's stuck while casting.
    Only a bug for caster classes..
    [N] XX:XX:XX - [MovementManager] Think we are stuck
    [N] XX:XX:XX - [MovementManager] Trying something funny, hang on
  21. Like
    BetterSister reacted to Droidz in Wrong Gameversion   
    Hello, http://wrobot.eu/articles/news/wrobot-for-wow-legion-pre-expansion-patch-available-r102/ 
     
  22. Like
    BetterSister reacted to magicmutley in Won't Eat   
    Thank you, sorry bit of a noob as first time user and loads of settings looking up
  23. Like
    BetterSister got a reaction from Batman in Convert from Vanilla Botter (.cpr) to WRobot   
    Currently it isn't possible. Profile converters are low priority currently so you can't expect for it to be implemented anytime soon
  24. Like
    BetterSister reacted to eeny in Cast Shadow Bolt on Shadow Trance Proc   
    Jumping is possible for people who write profiles in C# i think. 
    Using flight class editor: For instances like this i simply make a second Shadow bolt entry up the top of the rotation with a "has buff :  shadow trance = true".  Honestly- some times the bot will do something else instead .... but realistically its a bot.. most of the time it will do the right thing, if it skips a proc...meh
  25. Like
    BetterSister reacted to Droidz in How do I embed spells / items on these forums?   
    Hello, I have added openwow support
×
×
  • Create New...