#Rankup Config configuration

1 messages · Page 1 of 1 (latest)

flint palm
#

Hey there!

Im trying to figure out why the ''click_requirements'' are not working.

The main issue is - ''It should let you buy the coal rank once if you have at least 7500 currency, at least 2 cyber levels, and at least 1 hour of playtime.''

I need to figure how to set that up. Its not working atm...

https://paste.helpch.at/viwoboyeco.lua

#

Replying -> #general-plugins message

/papi parse me %clv_player_level% -> 1
/papi parse me %statistic_hours_played% -> 69
/papi parse me %luckperms_in_group_coal% -> yes

#

Here is what happens when I click the button: (clicked 3 times)

spare gazelle
#

Ah. That's a bit different than what I have. Let me fix it and send it back.

flint palm
#

Let me give it a go.

#

Oh no way! Now it says I dont have enough money, I think that we are on a good track!

#

Now I gave myself the required money, and tried to click again - now showing that I dont have the required Level.

#

And now I gave myself the required level and it sends this when I click.

#

Just noticed that I still had the coal rank - now I removed it from myself:

spare gazelle
#

nice. I think it works now.

#

just add some deny_commands when the user already has coal rank

#

and remove success_commands completely since those were just for testing.

flint palm
#

Perfect, I cant thank you more Blitz! Tysm for the help, ledend! 🤗

spare gazelle
#

No problem. Happy it works!

flint palm
# spare gazelle No problem. Happy it works!

Also, one last thing - at the moment when I click and try to rank up, butI dont meet for example all the requirements (0/3) then it only sends that I dont have enough money in the chat.

Is it possible for it to send all 3 of them?

Obviously its sending that first because its first in the line here:

#

Just wondering if its possible, its it would be to complicated then its okay I guess.. (ping me if you reply)

spare gazelle
flint palm
#

Alright, thats fine I guess. No big problem 👍

#

I also have one more question on how to do something. Let me explain

flint palm
# spare gazelle You can have deny commands per requirements or global. But you can't reach each ...

So one last thing I want to do is display this ''Locked'' item if the player hasnt unlocked the rank before yet.

So in this case (if the player is starting of with ''Unranked'') then they will only see and be able to preview and click the ''Coal Rank'' - the rest of the ranks will be locked

Then only once the player unlocks that rank, then the next one will open its ''preview'' of requirements.

https://paste.helpch.at/erijixiror.lua

#

What ''view_requirement'' do I need to set for it to work?

#

Example of the lore I want:

flint palm
#

@spare gazelle?

spare gazelle