removing exp not working ;(
Code:
command /test [<text>] [<text>]:
trigger:
if arg-1 is "sword":
if arg-2 is "common":
if player's held item is sword:
player's level is higher or equal to 1395
remove 1395 from player's level
chance of 25%:
set {_l} to 1
if the 1st line of player's tool's lore is not set:
set the 1st line of the player's held item's lore to "&7Blind 1"
stop
while line {_l} of player's tool's lore is set:
if line {_l} of player's tool's lore is set:
add 1 to {_l}
if line {_l} of player's tool's lore is not set:
set the {_l}st line of the player's held item's lore to "&7Blind 1"
exit loop
chance of 20%:
set {_l} to 1
if the 1st line of player's tool's lore is not set:
set the 1st line of the player's held item's lore to "&7Blind 2"
stop
while line {_l} of player's tool's lore is set:
if line {_l} of player's tool's lore is set:
add 1 to {_l}
if line {_l} of player's tool's lore is not set:
set the {_l}st line of the player's held item's lore to "&7Blind 2"
exit loop
chance of 15%:
set {_l} to 1
if the 1st line of player's tool's lore is not set:
set the 1st line of the player's held item's lore to "&7Blind 3"
stop
while line {_l} of player's tool's lore is set:
if line {_l} of player's tool's lore is set:
add 1 to {_l}
if line {_l} of player's tool's lore is not set:
set the {_l}st line of the player's held item's lore to "&7Blind 3"
exit loop
chance of 20%:
set {_l} to 1
if the 1st line of player's tool's lore is not set:
set the 1st line of the player's held item's lore to "&7Poison 1"
stop
while line {_l} of player's tool's lore is set:
if line {_l} of player's tool's lore is set:
add 1 to {_l}
if line {_l} of player's tool's lore is not set:
set the {_l}st line of the player's held item's lore to "&7Poison 1"
exit loop
chance of 15%:
set {_l} to 1
if the 1st line of player's tool's lore is not set:
set the 1st line of the player's held item's lore to "&7Poison 2"
stop
while line {_l} of player's tool's lore is set:
if line {_l} of player's tool's lore is set:
add 1 to {_l}
if line {_l} of player's tool's lore is not set:
set the {_l}st line of the player's held item's lore to "&7Poison 2"
exit loop
chance of 5%:
set {_l} to 1
if the 1st line of player's tool's lore is not set:
set the 1st line of the player's held item's lore to "&7Poison 2"
stop
while line {_l} of player's tool's lore is set:
if line {_l} of player's tool's lore is set:
add 1 to {_l}
if line {_l} of player's tool's lore is not set:
set the {_l}st line of the player's held item's lore to "&7Poison 2"
exit loop
Last edited: