Jump to content
  • 0

On Death is not working properly


Chqwy

Question

There are no Skript error logs, but on death does not function, it doesn't add the number specified to my list variable. Someone help

on death:
	attacker is player
	victim is a husk
	if victim's display name is "&8[&c1&8] &2Zombified Bandit":
		make console execute command "givexp %player%"

command /summonmob:
	permission: rpg.summon
	permission message: {@prefix} &cInsufficient Permission!
	trigger:
		spawn 1 husk 1 meter above player's location
		set name of last spawned entity to "&8[&c1&8] &2Zombified Bandit"

command /givexp <player>:
	permission: rpg.givexp
	permission message: {@prefix} &cInsufficient Permissions!
	trigger:
		set {_xpinteger} to random integer between 10 and 20
		if arg-1 is set:
			set {xp::%arg 1%} to {xp::%arg 1%}+{_xpinteger}
			send "{@prefix} &aGained &c%arg-1% &aXP!"
		else:
			send "{@prefix} &cUsage: /givexp <player>"

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0
6 hours ago, Chqwy said:

There are no Skript error logs, but on death does not function, it doesn't add the number specified to my list variable. Someone help

on death:
	attacker is player
	victim is a husk
	if victim's display name is "&8[&c1&8] &2Zombified Bandit":
		make console execute command "givexp %player%"

command /summonmob:
	permission: rpg.summon
	permission message: {@prefix} &cInsufficient Permission!
	trigger:
		spawn 1 husk 1 meter above player's location
		set name of last spawned entity to "&8[&c1&8] &2Zombified Bandit"

command /givexp <player>:
	permission: rpg.givexp
	permission message: {@prefix} &cInsufficient Permissions!
	trigger:
		set {_xpinteger} to random integer between 10 and 20
		if arg-1 is set:
			set {xp::%arg 1%} to {xp::%arg 1%}+{_xpinteger}
			send "{@prefix} &aGained &c%arg-1% &aXP!"
		else:
			send "{@prefix} &cUsage: /givexp <player>"

 

Debug it maybe?

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

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...