Can't I use this type of code?

  • 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 comminuty!

    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.

Danic

Member
Jul 23, 2020
42
0
6
Korea
www.youtube.com
I used this code.
But skript said "Can't understand this condition/effect".
Can't I use this type of code?

Code:
format slot 27 of player with charcoal named "목탄 5개" with lore "&6팔고싶어! : 1 에메" to close then run [
        if player has 5 charcoal:
            give player 1 emerald
            remove 1 charcoal from player
        else:
            send "{@prefix} 자원이 부족하네요! 저는 언제든지 기다리고 있으니 나중에 또 오세요!" to player]
 
I think you can do sth like this:
Code:
... to close then run [myFunction(player)]

function myFunction(p: player):
    if {_p} has 5 charcoal:
    #etc...
 
Change to vanilla..: :emoji_upside_down:
Code:
#....
    if {다나잡화점 메뉴.%player%} is "sell":
        open chest with 5 rows named "광물은 언제든지 환영이라구요!" to player
        set slot 10 of current inventory of player to coal named "석탄 1개" with lore "구매가 : 1 에메"
        #....

on inventory click:
    if name of current inventory of player is"광물은 언제든지 환영이라구요!":
        if clicked slot is 10:
            if clicked item is coal:
                execute console command "/give %player% emerald 1"
                execute console command "/clear %player%
(Quote from: https://forums.skunity.com/threads/another-gui-inside-the-gui.12257/#post-52169)
 
Status
Not open for further replies.