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.

Skripting...

Discussion in 'Skript' started by jotoko3, Apr 27, 2018.

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

    jotoko3 Member

    Joined:
    Apr 27, 2018
    Messages:
    4
    Likes Received:
    0
    Hello guys... So just before, i made a skript... there were some errors, so i added some plugins.... After i added them, i couldn't reload my skript, because when i typed in /sk reload cookie it just said:

    [Skript] Reloading cookie.sk...
    An internal error occurred while attempting to perform this command


    I would be very happy if someone could help!

    iConomy
    Adminshop
    Chestshop
    Worldedit
    Worldguard

    Code (Text):
    1.  
    2. options:
    3.     powerclick.1: 5000
    4.     powerclick.2: 10000
    5.     powerclick.3: 20000
    6.     powerclick.4: 40000
    7.  
    8. on join:
    9.     if {cookie.%player%} is not set:
    10.         set {cookie.%player%} to 0
    11.     if {cpk.%player%} is not set:
    12.         set {cpk.%player%} to 1
    13.  
    14. every 5 seconds:
    15.     loop all players:
    16.         if {cpk.%loop-player%} is not set:
    17.             set {cpk.%loop-player%} to 1
    18.          
    19.          
    20. command /cookie:cookieclicker:
    21.     aliases: cookie, cookieclicker, cookiec, cclicker
    22.     trigger:
    23.         wait 3 ticks
    24.         open chest with 1 row named "&d&lCookie" to player
    25.         wait 3 ticks
    26.         format slot 4 of player with light green wool named "&dCookies" with lore "&dKlik for at få cookies!" to run [make console execute command "/getcookies %player%"]
    27.         format slot 0 of player with arrow named "&2Opgraderinger!" with lore "&aKlik, for at gå til opgraderinger" to close then run [make player execute command "/upgradecookies"]
    28.         format slot 8 of player with arrow named "&2Opgraderinger!" with lore "&aKlik for at gå til opgraderinger" to close then run [make player execute command "/upgradecookies"]
    29.      
    30. command /cookie:getcookies [<player>]:
    31.     executable by: console
    32.     aliases: getcookies
    33.     trigger:
    34.         add {cpk.%arg-1%} to {cookie.%arg-1%}
    35.      
    36. command /cookie:cookies:
    37.     aliases: cookies
    38.     trigger:
    39.         send "&aDu har &2%{cookie.%player%}% &aCookies!"
    40.      
    41. command /cookie:setcookies [<offline player>] [<number>]:
    42.     aliases: setcookies
    43.     permission: Cookie.set
    44.     permission message: &fUnknown command. Type "/help" for help.
    45.     trigger:
    46.         if arg-1 is set:
    47.             if arg-2 is set:
    48.                 set {cookie.%arg-1%} to arg-2
    49.                 send "&aDu satte &2%arg-1%&a's cookies til &2%arg-2%"
    50.             else:
    51.                 send "&6&l::: &e&oKORREKT BRUG &6&l::: &a/setcookies <Spiller> <Antal>"
    52.         else:
    53.             send "&6&l::: &e&oKORREKT BRUG &6&l::: &a/setcookies <Spiller> <Antal>"
    54.          
    55. command /cookie:upgrade:
    56.     aliases: upgradecookies
    57.     trigger:
    58.         wait 3 ticks
    59.         open chest with 3 rows named "&2Cookie Upgrades" to player
    60.         wait 3 ticks
    61.         format slot 26 of player with red wool named "&4Tilbage" with lore "&cKlik for at komme tilbage!" to close then run [make player execute command "/cookie"]
    62.         if {cpk.%player%} is 1:
    63.             format slot 0 of player with wooden hoe named "&6&lPowerClick" with lore "&aUpgrader, så du får 2 cookies per click!||&r||&cKoster: {@powerclick.1}" to close then run [make player execute command "/opgradercookie powerclick.1"]
    64.  
    65.  
    66. command /cookie:opgradercookie [<text>]:
    67.     trigger:
    68.         if arg-1 is "powerclick.1":
    69.             if player's balance is greater than {@powerclick.1}:
    70.                 subtract {@powerclick.1} from player's balance
    71.                 set {cpk.%player%} to 2
    72.                 send "&2&lSUCCES - &aDu købte opgraderingen: &6&lPowerClick &7- &aEr nu i level 1 &2(2 Cookies per klik!)"
    73.             else:
    74.                 send "&4&lFEJL - &cDu har ikke penge nok"
    75.         if arg-1 is "powerclick.2":
    76.             if player's balance is greater than or equal to {@powerclick.2}:
    77.                 subtract {@powerclick.2} from player's balance
    78.                 set {cpk.%player%} to 3
    79.                 send "&2&lSUCCES - &aDu købte opgraderingen: &6&lPowerClick &7- &aEr nu i level 2 &2(3 Cookies per klik!)"
    80.             else:
    81.                 send "&4&lFEJL - &cDu har ikke penge nok"
    82.              
    83.  
    84.          
    85.          
    86.            
     
  2. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Which version/author of Skript are you running and on which version of MC?
    Also your Spoiler/attachment is not working
     
  3. jotoko3

    jotoko3 Member

    Joined:
    Apr 27, 2018
    Messages:
    4
    Likes Received:
    0
    Attachment:
    lort.lort.png

    Version of MC: 1.8.9
    Skript Version: Don't know how to find it but it says "you're currently running the latest stable version of skript"
    Screenshot:
    2018-04-28_15.56.42.png
    --- Double Post Merged, Apr 28, 2018, Original Post Date: Apr 28, 2018 ---
    + the funny thing is that it's only on that server... If i go to my other server, everything is fine...
     
  4. Pikachu

    Supporter Addon Developer

    Joined:
    Jan 25, 2017
    Messages:
    871
    Likes Received:
    139
    Medals:
    post what the error is, it will be in console
     
  5. ShaneBee

    Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    227
    Also if you do /version Skript (it will tell you the version) Or at least if you know where you downloaded it from.... for example if you are running Njols 4 year old version you probably got it from Bukkit, if you are running bensku's current version you probably got it from Skunity's download page.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...