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

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Skript Can't Load the Script

Discussion in 'Skript' started by rustedst, May 4, 2020.

Thread Status:
Not open for further replies.
  1. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    I tried to paste the Script to skUnity Parser and it keeps on "Parsing...". When I start the server while the script is enabled, stays on enabling name.sk; when I try to enable it while the server is running, this error message appears:
    Code (Text):
    1. variables:
    2.     {hazir::%player%} = false
    3.     {ticaret::%player%} = false
    4. on rightclick:
    5.     player is sneaking:
    6.         if {teklif::%target player%::%player%} is true:
    7.             set {teklif::%player%::%target player%} to true
    8.             set {ticaret::%player%} to true
    9.             set {ticaret::%target player%} to true
    10.             open chest inventory with 3 rows named "&cTicaret" to player
    11.             set slot 3 of player's current inventory to red stained glass named "&4Hazır Değilsin"
    12.             set slot 4 and 13 and 22 and 31 of player's current inventory to black stained glass named " "
    13.             set slot 5 of player's current inventory to red stained glass named "&4%{nick::%target player%}% Hazır Değil"
    14.         else if {teklif::%target player%::*} is set:
    15.             send "&c%{nick::%target player%}% zaten biriyle ticaret yapıyor." to player
    16.         else:
    17.             send "&a%player% seninle ticaret yapmak istiyor." to target player
    18.             execute console command "tm amessage %target player% &a%player% seninle ticaret yapmak istiyor."
    19.             set {teklif::%player%::%target player%} to true
    20. on inventory click:
    21.     if display name of event-inventory is "&cTicaret":
    22.         if event-slot is slot 3 of event-inventory or slot 4 of event-inventory or slot 5 of event-inventory or slot 13 of event-inventory or slot 22 of event-inventory or slot 31 of event-inventory:
    23.             cancel event
    24.             if event slot is slot 3 of event-inventory:
    25.                 if event slot is red stained glass named "&4Hazır Değilsin":
    26.                     set slot 3 of player's current inventory to green stained glass named "&aHazırsın"
    27.                     loop {teklif::%player%::*}:
    28.                         set slot 5 of (loop-value parsed as player)'s current inventory to green stained glass named "&a%player% Hazır"
    29.                         if slot 3 of (loop-value parsed as player)'s current inventory is green stained glass named "&aHazırsın":
    30.                             set {_say} to 0
    31.                             set {_sayma} to 0
    32.                             set {_taraf} to 2
    33.                             loop 36 times:
    34.                                 if {_say} is not 3 or 4 or 5 or 13 or 22 or 31:
    35.                                     if {_taraf} is divisible by 2:
    36.                                         give (loop-value parsed as player) slot {_say} of event-inventory
    37.                                     else:
    38.                                         give player slot {_say} of event-inventory
    39.                                 if {_sayma} is 4:
    40.                                     set {_sayma} to 0
    41.                                     add 1 to {_taraf}
    42.                                 add 1 to {_say}
    43.                                 add 1 to {_sayma}
    44.                             delete {teklif::%player%::*}
    45.                             loop {teklif::%player%::*}:
    46.                                 delete {teklif::%loop-value%::%player%}
    47.                                 close (loop-value parsed as player)'s current inventory
    48.                             close player's current inventory
    49.                 else:
    50.                     set slot 3 of player's current inventory to red stained glass named "&4Hazır Değilsin"
    51.                     loop {teklif::%player%::*}:
    52.                         set slot 5 of (loop-value parsed as player)'s current inventory to red stained glass named "&4%player% Hazır Değil"
    53.         else:
    54.             if event slot is slot 6 of event-inventory or slot 7 of event-inventory or slot 8 of event-inventory or slot 14 of event-inventory or slot 15 of event-inventory or slot 16 of event-inventory or slot 17 of event-inventory or slot 23 of event-inventory or slot 24 of event-inventory or slot 25 of event-inventory or slot 26 of event-inventory or slot 32 of event-inventory or slot 33 of event-inventory or slot 34 of event-inventory or slot 35 of event-inventory:
    55.                 cancel event
    56.             else:
    57.                 set slot 3 of player's current inventory to red stained glass named "&4Hazır Değilsin"
    58.                 loop {teklif::%player%::*}:
    59.                     set slot 5 of (loop-value parsed as player)'s current inventory to red stained glass named "&4%player% Hazır Değil"
    60.                     set {_say} to 5
    61.                     set {_sayma} to 1
    62.                     loop 16 times:
    63.                         if {_say} is not 5:
    64.                             set slot {_say} of (loop-value parsed as player)'s current inventory to event-slot
    65.                         if {_sayma} = 4:
    66.                             set {_sayma} to 1
    67.                             add 6 to {_say}
    68.                         add 1 to {_say}
    69.                         add 1 to {_sayma}
    70. on inventory close:
    71.     if display name of event-inventory is "&cTicaret":
    72.         if {teklif::%player%::*} is not set:
    73.             send "&2El sıkışarak ticareti sonlandırdınız." to player
    74.         else:
    75.             loop {teklif::%player%::*}:
    76.                 loop 36 times:
    77.                     if {_say} is not 3 or 4 or 5 or 13 or 22 or 31:
    78.                         if {_taraf} is divisible by 2:
    79.                             give player slot {_say} of event-inventory
    80.                         else:
    81.                             give (loop-value parsed as player) slot {_say} of event-inventory
    82.                     if {_sayma} is 4:
    83.                         set {_sayma} to 0
    84.                         add 1 to {_taraf}
    85.                     add 1 to {_say}
    86.                     add 1 to {_sayma}
    87.                 send "&4%player% ticaretten vazgeçti." to (loop-value parsed as player)
    88.             send "&cTicaretten vazgeçtiniz" to player
     
  2. Lego_freak1999

    Lego_freak1999 Well-Known Member

    Joined:
    Jan 26, 2017
    Messages:
    664
    Likes Received:
    45

    try what is suggested here:

    https://github.com/SkriptLang/Skript/issues/2945
     
    • Like Like x 1
  3. rustedst

    rustedst Active Member

    Joined:
    Apr 24, 2020
    Messages:
    97
    Likes Received:
    4
    Thank you so much, now it doesn't give any errors but now it stays on enabling name.sk, I'll leave it tonight to see if it's loaded until morning.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...