Giter VIP home page Giter VIP logo

Comments (4)

implave avatar implave commented on August 25, 2024

Saw some logic to determine if the addon should be enabled or not based on map data, maybe that's where it stops working? Some raids like ZG return 20 man. BWL and AQ are supposed to be 40 man.

from automaticweaponremoval.

SecretX33 avatar SecretX33 commented on August 25, 2024

Hello, life's been busy and I've just seen your issue today. First of all, let me thank you for taking the time to open this issue, I'm glad that you liked the addon and also that you want to contribute to it.

Let me help you with that. There are two steps you need to do to get the addon working on any instance and identify any mind control spell you add.

1. Add the desired instance to the "valid instance" list

First of all, let me tell you that I also had issues when testing this addon, thus I've added two things to help me develop the addon, which still exists and can be used.

You can "ask" the addon its current state by using /awr status, the addon will print to you why it is or isn't enabled at that specific moment. You can use that to determine why the addon doesn't work in a specific instance. For example, if I use that command in Dalaran, I'll see something like:

AWR: status: the addon is currently off because you are not in a valid instance.

Which indicates the area I'm currently in is not a valid instance. What is a valid instance, you ask? All instances that have their name present in this list are considered a valid instance for the addon, thus it automatically turns itself on when you are inside one of them, and off then you step outside.

There's also another command that is very useful called /awr debug. When you turn this option ON, the addon will start printing lots of useful things about what is happening on the addon, and why they're happening. I recommend you turn that option ON and let it ON the entire time while you're modifying on the addon, and the insights the debug messages provide you might be helpful.

Ok, but how do I get an instance exact name?

See this, but long story short, enter the instance you want to get the name, and paste this on your chat:

/run print((select(1,GetInstanceInfo())))

You'll see something like this being print on your chat:

Icecrown Citadel

You must write the instance name exactly as you see, remember that the comparison is case-sensitive.

2. Add the mind control spells of that instance to the mind spell control lists

After adding the desired instance to the instance list, now it's time to add the spells of that instance. To add a specific mind control spell to the list of supported mind control spells, add:

  • The spell ID to the spell ID list.
  • The spell cast entry on the spell cast list.
  • The spell duration on the spell duration list.
    • Follow the examples, if the spell duration is permanent, indefinite, or the player always dies after it fades, just set it to -1 and the addon will handle the spell appropriately.
    • These durations are very important because they're used to calculate when/if some buffs should be removed when the player gets mind-controlled.

Some tips that might be useful:

  • Watch out for bosses that cast different spells (even if it's the same name, they might have different IDs depending on the raid size and difficulty). In these cases, a database website like evowow shines a lot.

And then?

After you modify the addon, and test that your new changes are working, please contribute back to the addon, open a PR to this repository and I'll gladly merge any improvements you make to this codebase.

from automaticweaponremoval.

SecretX33 avatar SecretX33 commented on August 25, 2024

If you'd like me to perform these changes in your regard let me know, but be aware that I'm currently very busy, and because of that the changes might take a while to happen. And since I'm not actively playing WoW anymore I won't be able to test them, especially because I can't do classic dungeons/raids since the players in the server I used to play aren't very fond of legacy content.

from automaticweaponremoval.

implave avatar implave commented on August 25, 2024

Thanks for the reply! I managed to track down the issue and it did appear to be tied to the logic determining if the addon should be on or off for a particular dungeon, likely relating to the number of players for those particular mapids. I hacked around it by just removing the check and leaving it constantly on. The solution is subpar in terms of implementation but with my very limited knowledge of coding it should work for the use cases we have. Thank you again for your time!

from automaticweaponremoval.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.