Coder Social home page Coder Social logo

Comments (5)

melkypie avatar melkypie commented on June 20, 2024

This currently not possible due to there not being a reliable way of detecting whether or not a world is us east or west. Until Jagex adds something like this, I don't believe I can do it

from clanchatcountryflags.

PhantomBoat avatar PhantomBoat commented on June 20, 2024

Would it be possible to have a config file with each server manually assigned location to override location provided by Jagex? And then a checkbox option inside of the plugins settings to enable or disable that list (in case it gets out of date).

I'd be happy to make the config file for you if you and try to keep it updated. I'd offer to help write the code to implement the feature, but I've not messed with programming plugins for RuneLite.

from clanchatcountryflags.

melkypie avatar melkypie commented on June 20, 2024

I wouldn't ever want to go that route and that seems like a terrible solution, also you have to account for Jagex to change the world locations, like they do with bounty hunter/pvp worlds every week. Also config options in Runelite are static not dynamic so if a new world gets added/removed that would be a mess to clean up.
If you are wanting to help I would suggest you maybe take the approach of looking up the ip of the world and try to find the us east/west based. Unfortunately I can't do it myself because of school but if you make a PR, I'll be happy to look at it.

from clanchatcountryflags.

Newbcake avatar Newbcake commented on June 20, 2024

Now that jagex added different flags for east and west coast would you reconsider this?

from clanchatcountryflags.

YvesW avatar YvesW commented on June 20, 2024

This currently not possible due to there not being a reliable way of detecting whether or not a world is us east or west. Until Jagex adds something like this, I don't believe I can do it

Can be done using client.getEnum(4992) now probably.

from clanchatcountryflags.

Related Issues (8)

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.