Autorank

Autorank

380k Downloads

Autorank: special ways to rank up

Caddy54 opened this issue ยท 15 comments

commented

Hey, sorry to bother again. I want to have the rank of Fighter rank up by breaking blocks and killing mobs, same with Warlord. Here is the AdvancedConfig http://pastebin.com/8XR1ewjM @Staartvin @Armarr @ldrrp @SonarBeserk

commented

Autorank automatically identifies 'blocks broken1' as a block break requirement (See here: https://github.com/Armarr/Autorank-2/blob/master/src/me/armar/plugins/autorank/util/AutorankTools.java#L162). You can do blocks broken 1, blocks broken 2, etc.

commented

Ok, that should solve Caddy's issue then.
@Caddy54 What you have to do instead is:

        requirements:
            blocks broken1: 4;1000
            blocks broken2: 15:200
            blocks broken3: 162;200:1
[...]

Still I wish I had just used lists instead of key-value pairs for these things :P

commented

Yeah, Armarr is right. I think I'll add an example of multiple requirements of the same type to the Advanced config.

commented

I believe that right now Autorank does not support multiple block types for the "blocks broken" requirement or multiple mob types for the "mobs killed" requirement. Though I'd like Staartvin to confirm this.
I made the mistake in designing the Advanced config of not using the YML list format for results and requirements. If the config was designed slightly differently you would just be able to have multiple copies of a requirement/result. It's a hassle to change that around now so instead the requirements themselves have to support this.

commented

You cannot use multiple blocks in one block requirement, but you can create multiple block requirements for different blocks.

commented

Create multiple block requirements, how so? Because the YML uses key-value pairs you can't do this:

        requirements:
            blocks broken: 4;1000
            blocks broken: 15:200
            blocks broken: 162;200:1
commented

So would it be the same for mobs?

commented

Yes, for all requirements.

commented

http://pastebin.com/jJ876EB1

Here is the updated AdvancedConfig.yml. When I set a player to group Fighter and they do /ar check, it show them their time, group, and "an internal error has occured."

commented

Can you show us the internal error that is shown on the console?

commented

Autorank tells you what the problem is: 11.04 22:04:53 [Server] INFO [22:04:53 INFO]: [Autorank] Stats (by Lolmewn) does not have beta functions enabled!

commented

http://prntscr.com/3du2wd

So that is what it says now, however, I did not break any blocks on this account after I ranked up. Is it also possible to update every time you break a block? So it goes 1. Break at least 1000 stone blocks
then the player breaks a stone block and it goes to Break at least 1000 stone blocks (999 more!)

commented

You have to check your Stats database if it has logged over 200 as well. I didn't like to add progress on there, so there is a special command to see the progress: /ar complete.

commented

Closed due to inactivity, reopen if still occuring!