Jump to content
  • 0

skipt pvp pls make one for me


BlakeN

Question

skript saying 
Rank: 
Kills:
Deaths:
KDR:
Gold:
PLaytime:
and if ok can u make like an leveling rank so after 10 kills you get ranked up so like after 10 kill lp user {user} parent set 15 and it would go in to 16 17 18 19 20 ect pls 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

!!THIS IS MEANT AS A TUTORIAL, AND NOT A FREE SKRIPT!! !!NOT ALL VARIABLES WILL BE SKRIPTED FOR YOU!!

 

(Just to let you know, it would be way easier if you didn't make a LuckPerms group for every level, and instead you used a skript variable)


Alright. So step 1 would be to make variables for each player. Like this:

on join:
	if {kills.%UUID of player%} is not set:
	set {kills.%UUID of player%} to 0
	#and so on for your other variables

Step 2 is to make all of the conditions for the variables, like tracking kills and how to level up the player. You can do this like this:

#kills
on death:
	if attacker is player:
		if victim is player:
			add 1 to {kills.%UUID of attacker%}
			add 1 to {deaths.%UUID of victim%}
			#gold
			add 5 to {gold.%UUID of player%}
			#level
			if {kills.%UUID of attacker%} is (10 + (5 * {level.%UUID of attacker%})):
				add 1 to {level.%UUID of player%}

#playtime
on join:
	while player is online:
		wait 1 minute
		add 1 to {playtimeMinutes.%UUID of player%}

And step 3 is to implement this into a scoreboard. I'm not really sure how to do this without using SkRayFall, as I know that that scoreboard system is not the best. Here is an skRayFall half-example anyway, and if anyone has a better option PLEASE POST IT BELOW.

on join:
	while player is online:
		wipe player's sidebar
		set name of sidebar of player to "&aThe Pvp Arena"
		set score "Kills: &b{kills.%UUID of player%}" in sidebar of player to 5
		set score "Deaths: &c{deaths.%UUID of player%}" in sidebar of player to 4
		set score "Gold: &6{gold.%UUID of player%}" in sidebar of player to 3
		set score "Playtime: &3{playtimeMinutes.%UUID of player%} &3minutes" in sidebar of player to 2
		ect...
		wait 1 second

I hope by following this, you not only figured out your problem but learned something from it.

-Gam3rBoi

Edited by Gam3rBoi

Main MC account: Gam3rBoi (VIP in MH)

Alt MC account: *Gam3rBoi2147

Farcade server owner

Skripter with 6+ months experience + time learning coding concepts

Message me through the forums if you need anything!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...