Right click

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

ErkS

Member
Dec 24, 2017
40
0
6
Don't work any errors. Spigot 1.12
code_language.skript:
command /zs:
 permission: hap
 trigger:
  if player has emerald named "c" in his inventory:
   if player is holding any sword:
    remove emerald named "c" from player's inventory
    enchant the player's tool with sharpness 25
    send "&e&lHAP> &fOprava bola &a&luspesna&f! Zaplatil si &e&l5000 &feur!"
   else:
    send "&e&lHAP> &c&lChyba! &fV ruke &c&lnedrzis ziadny &fnastroj!"
  else:
   send "&e&lHAP> &c&lChyba! &fNemas &a&lgem&f!"
 
I press command /zs and send me send "&e&lHAP> &c&lChyba! &fNemas &a&lgem&f!" the last one else
 
I press command /zs and send me send "&e&lHAP> &c&lChyba! &fNemas &a&lgem&f!" the last one else
Youre sure you got a emerald named "c" ?

Btw for me works fine

code_language.skript:
command /zs:
 permission: hap
 trigger:
  if player has emerald named "c" in his inventory:
   if player is holding any sword:
    remove emerald named "c" from player's inventory
    enchant the player's tool with sharpness 25
    send "&e&lHAP> &fOprava bola &a&luspesna&f! Zaplatil si &e&l5000 &feur!"
   else:
    send "&e&lHAP> &c&lChyba! &fV ruke &c&lnedrzis ziadny &fnastroj!"
  else:
   send "&e&lHAP> &c&lChyba! &fNemas &a&lgem&f!"

command /item:
    trigger:
        give player emerald named "c"
 
I hope, you didn't named the Emerald with anvil?

upload_2018-1-14_22-45-21.png

(Yes, im not holding any sword. but worked for me)

upload_2018-1-14_22-46-25.png
 
No with
code_language.skript:
command /pridatmeno <text>:
    description: Renames the item in your inventory slot.
    usage: /rename <name>
    permission: FlintName.rename
    permission message: &e&lHAP> &c&lNemas prava.
    trigger:
        if arg-1 is set:
            set the name of player's tool to "&r%colored arg-1%"
            send "&e&lHAP> &fItem premenovany &a&l%colored arg-1%&r."
[doublepost=1515966554,1515966453][/doublepost]Ok with /pridatmeno don't work but with your /item work thanks for help :emoji_slight_smile:
 
Just remain,

If you color anythings your Emerald name, you have too enter the Color inside the code! Else doing this:

if player has emerald named uncolored "c" in his inventory:
 
Status
Not open for further replies.