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.

Help-me Please

Discussion in 'Skript' started by TheRobs, Apr 1, 2020.

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

    TheRobs Member

    Joined:
    Jan 26, 2017
    Messages:
    14
    Likes Received:
    0
    Hello .. Good night! I am in need of help with this .sk I'm running 1.13.2 All adons, and the latest version of skript, it gives the following error:
    Code (Text):
    1. [01:38:11 ERROR]: Can't understand this condition/effect: invoke "FunnyShopComprar" from player and "%{_item}%" and "%{_x}%" and "%{_price}%" (novo.sk, line 174: invoke "FunnyShopComprar" from player and "%{_item}%" and "%{_x}%" and "%{_price}%"')
    2. [01:38:11 ERROR]: Can't understand this condition/effect: invoke "FunnyShopVender" from player and "%{_item}%" and "%{_x}%" and "%{_price}%" (novo.sk, line 177: invoke "FunnyShopVender" from player and "%{_item}%" and "%{_x}%" and "%{_price}%"')
    3. [01:38:11 ERROR]: Can't understand this condition/effect: invoke "FunnyShopMessages" from player (novo.sk, line 185: invoke "FunnyShopMessages" from player')
    4. [01:38:11 ERROR]: Can't understand this condition/effect: invoke "FunnyShopCMenu" from player (novo.sk, line 240: invoke "FunnyShopCMenu" from player')
    5. [01:38:11 ERROR]: Can't understand this condition/effect: invoke "FunnyShopMessages" from player (novo.sk, line 257: invoke "FunnyShopMessages" from player')
    6. [01:38:11 ERROR]: Can't understand this condition/effect: invoke "FunnyShopCMenu" from player (novo.sk, line 357: invoke "FunnyShopCMenu" from player')

    Here is the skript:

    Code (Text):
    1. on script load:    
    2.     if {FShop::Messages::GlobalPrefix} is not set:
    3.         set {FShop::Messages::GlobalPrefix} to "&6&lFunnyShop &8» "
    4.     if {FShop::Messages::ComprarSignLine1} is not set:
    5.         set {FShop::Messages::ComprarSignLine1} to "&4&lComprar Item"
    6.     if {FShop::Messages::ComprarSignLine2} is not set:
    7.         set {FShop::Messages::ComprarSignLine2} to "&0"
    8.     if {FShop::Messages::ComprarSignLine3} is not set:
    9.         set {FShop::Messages::ComprarSignLine3} to "&2&l&o"
    10.     if {FShop::Messages::ComprarSignLine4} is not set:
    11.         set {FShop::Messages::ComprarSignLine4} to "&8&nClique Aqui"
    12.     if {FShop::Messages::VenderSignLine1} is not set:
    13.         set {FShop::Messages::VenderSignLine1} to "&4&lVender Item"
    14.     if {FShop::Messages::VenderSignLine2} is not set:
    15.         set {FShop::Messages::VenderSignLine2} to "&0"
    16.     if {FShop::Messages::VenderSignLine3} is not set:
    17.         set {FShop::Messages::VenderSignLine3} to "&2&l&o"
    18.     if {FShop::Messages::VenderSignLine4} is not set:
    19.         set {FShop::Messages::VenderSignLine4} to "&8&nClique Aqui"
    20.     if {FShop::Messages::ComprarMenuTitle} is not set:
    21.         set {FShop::Messages::ComprarMenuTitle} to "&7» &8&lComprar Item"
    22.     if {FShop::Messages::VenderMenuTitle} is not set:
    23.         set {FShop::Messages::VenderMenuTitle} to "&7» &8&lVender Item"
    24.     if {FShop::Messages::ComprarMenuText} is not set:
    25.         set {FShop::Messages::ComprarMenuText} to "&c&l"
    26.     if {FShop::Messages::VenderMenuText} is not set:
    27.         set {FShop::Messages::VenderMenuText} to "&a&l"
    28.  
    29.  
    30.  
    31.  
    32. on sign change:
    33.     line 1 of event-block is "l" or "l"
    34.     set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    35.     if player's gamemode is creative:
    36.  
    37.         if line 2 of event-block is "Comprar":
    38.             if player has permission "fshop.Comprarsign":
    39.                 if line 3 of event-block is not empty:
    40.                     if line 4 of event-block is not empty:
    41.                         set {_Line1} to "%{FShop::Messages::ComprarSignLine1}%"
    42.                         set {_Line2} to "%{FShop::Messages::ComprarSignLine2}%"
    43.                         set {_Line3} to "%{FShop::Messages::ComprarSignLine3}%"
    44.                         set {_Line4} to "%{FShop::Messages::ComprarSignLine4}%"
    45.                         set {guild::shopitem::%line 3%} to line 3 parsed as item
    46.                         set {guild::priceitem::%line 3%} to line 4 parsed as number
    47.                         set line 1 of event-block to "%{_Line1}%"
    48.                         set line 2 of event-block to "%{_Line2}%%line 3%"
    49.                         set line 3 of event-block to "%{_Line3}%$%line 4%"
    50.                         set line 4 of event-block to "%{_Line4}%"
    51.                     else:
    52.                         message "%{_prefix}% &cVocê esqueceu de digitar o preço!"
    53.                 else:
    54.                     message "%{_prefix}% &cVocê esqueceu de colocar o item!"
    55.             else:
    56.                 message "%{_prefix}% &cVocê não tem permissão para isso!"
    57.  
    58.         else if line 2 of event-block is "Vender":
    59.             if player has permission "fshop.Vendersign":
    60.                 if line 3 of event-block is not empty:
    61.                     if line 4 of event-block is not empty:
    62.                         set {_Line1} to "%{FShop::Messages::VenderSignLine1}%"
    63.                         set {_Line2} to "%{FShop::Messages::VenderSignLine2}%"
    64.                         set {_Line3} to "%{FShop::Messages::VenderSignLine3}%"
    65.                         set {_Line4} to "%{FShop::Messages::VenderSignLine4}%"
    66.                         set {guild::Vendershopitem::%line 3%} to line 3 parsed as item
    67.                         set {guild::Venderpriceitem::%line 3%} to line 4 parsed as number
    68.                         set line 1 of event-block to "%{_Line1}%"
    69.                         set line 2 of event-block to "%{_Line2}%%line 3%"
    70.                         set line 3 of event-block to "%{_Line3}%$%line 4%"
    71.                         set line 4 of event-block to "%{_Line4}%"
    72.                     else:
    73.                         message "%{_prefix}% &cVocê esqueceu de colocar o preço!"
    74.                 else:
    75.                     message "%{_prefix}% &cVocê esqueceu de colocar o item!"
    76.             else:
    77.                 message "%{_prefix}% &cVocê não tem permissão para isso!"
    78.         else:
    79.             message "%{_prefix}% &cEscreva na segunda linha Vender or Comprar."
    80.     else:
    81.         message "%{_prefix}% &cVocê precisa estar em modo criativo para isso!"
    82.                      
    83.  
    84. right click on sign:
    85.     set {_Line1-Comprar} to "%{FShop::Messages::ComprarSignLine1}%"
    86.     set {_Line4-Comprar} to "%{FShop::Messages::ComprarSignLine4}%"
    87.     set {_Line1-Vender} to "%{FShop::Messages::VenderSignLine1}%"
    88.     set {_Line4-Vender} to "%{FShop::Messages::VenderSignLine4}%"
    89.     line 2 of event-block is set
    90.     line 3 of event-block is set
    91.     if line 1 of event-block is "%{_Line1-Comprar}%":
    92.         line 4 of event-block is "%{_Line4-Comprar}%"
    93.         set {_ItemName} to uncoloured line 2
    94.         set {_item1} to "1 %{_ItemName}%" parsed as item
    95.         set {_item4} to "4 %{_ItemName}%" parsed as item
    96.         set {_item8} to "8 %{_ItemName}%" parsed as item
    97.         set {_item16} to "16 %{_ItemName}%" parsed as item
    98.         set {_item32} to "32 %{_ItemName}%" parsed as item
    99.         set {_item64} to "64 %{_ItemName}%" parsed as item
    100.         set {_price1} to 1*{guild::priceitem::%{_ItemName}%}
    101.         set {_price4} to 4*{guild::priceitem::%{_ItemName}%}
    102.         set {_price8} to 8*{guild::priceitem::%{_ItemName}%}
    103.         set {_price16} to 16*{guild::priceitem::%{_ItemName}%}
    104.         set {_price32} to 32*{guild::priceitem::%{_ItemName}%}
    105.         set {_price64} to 64*{guild::priceitem::%{_ItemName}%}
    106.         wait 1 tick
    107.         set {_menu} to "%{FShop::Messages::ComprarMenuTitle}%"
    108.         set {_color} to "%{FShop::Messages::ComprarMenuText}%"
    109.         open chest with 1 rows named "%{_menu}%" to player
    110.         wait 1 tick
    111.         set slot 1 of player's current inventory to 1 of {_item1} named "%{_color}%Comprar 1x" with lore "&7&oCosts $%{_price1}%"
    112.         set slot 2 of player's current inventory to 4 of {_item4} named "%{_color}%Comprar 4x" with lore "&7&oCosts $%{_price4}%"
    113.         set slot 3 of player's current inventory to 8 of {_item8} named "%{_color}%Comprar 8x" with lore "&7&oCosts $%{_price8}%"
    114.         set slot 4 of player's current inventory to 16 of {_item16} named "%{_color}%Comprar 16x" with lore "&7&oCosts $%{_price16}%"
    115.         set slot 5 of player's current inventory to 32 of {_item32} named "%{_color}%&e&lComprar 32x" with lore "&7&oCosts $%{_price32}%"
    116.         set slot 6 of player's current inventory to 64 of {_item64} named "%{_color}%&e&lComprar 64x" with lore "&7&oCosts $%{_price64}%"
    117.         set slot 8 of player's current inventory to nether star named "&c&lClose" with lore "&7&oClose this Menu"
    118.  
    119.  
    120.     else if line 1 of event-block is "%{_Line1-Vender}%":
    121.         line 4 of event-block is "%{_Line4-Vender}%"
    122.         set {_ItemName} to uncoloured line 2
    123.         set {_item1} to "1 %{_ItemName}%" parsed as item
    124.         set {_item4} to "4 %{_ItemName}%" parsed as item
    125.         set {_item8} to "8 %{_ItemName}%" parsed as item
    126.         set {_item16} to "16 %{_ItemName}%" parsed as item
    127.         set {_item32} to "32 %{_ItemName}%" parsed as item
    128.         set {_item64} to "64 %{_ItemName}%" parsed as item
    129.         set {_price1} to 1*{guild::Venderpriceitem::%{_ItemName}%}
    130.         set {_price4} to 4*{guild::Venderpriceitem::%{_ItemName}%}
    131.         set {_price8} to 8*{guild::Venderpriceitem::%{_ItemName}%}
    132.         set {_price16} to 16*{guild::Venderpriceitem::%{_ItemName}%}
    133.         set {_price32} to 32*{guild::Venderpriceitem::%{_ItemName}%}
    134.         set {_price64} to 64*{guild::Venderpriceitem::%{_ItemName}%}
    135.         wait 1 tick
    136.         set {_menu} to "%{FShop::Messages::VenderMenuTitle}%"
    137.         set {_color} to "%{FShop::Messages::VenderMenuText}%"
    138.         open chest with 1 rows named "%{_menu}%" to player
    139.         wait 1 tick
    140.         set slot 1 of player's current inventory to 1 of {_item1} named "%{_color}%Vender 1x" with lore "&7&oVenders for $%{_price1}%"
    141.         set slot 2 of player's current inventory to 4 of {_item4} named "%{_color}%Vender 4x" with lore "&7&oVenders for $%{_price4}%"
    142.         set slot 3 of player's current inventory to 8 of {_item8} named "%{_color}%Vender 8x" with lore "&7&oVenders for $%{_price8}%"
    143.         set slot 4 of player's current inventory to 16 of {_item16} named "%{_color}%Vender 16x" with lore "&7&oVenders for $%{_price16}%"
    144.         set slot 5 of player's current inventory to 32 of {_item32} named "%{_color}%Vender 32x" with lore "&7&oVenders for $%{_price32}%"
    145.         set slot 6 of player's current inventory to 64 of {_item64} named "%{_color}%Vender 64x" with lore "&7&oVenders for $%{_price64}%"
    146.         set slot 8 of player's current inventory to nether star named "&c&lClose" with lore "&7&oClose this Menu"
    147.      
    148.      
    149. on inventory click:
    150.     set {_Comprarmenu} to "%{FShop::Messages::ComprarMenuTitle}%"
    151.     set {_Vendermenu} to "%{FShop::Messages::VenderMenuTitle}%"
    152.     set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    153.     if inventory name of clicked inventory is "%{_Vendermenu}%" or "%{_Comprarmenu}%":
    154.         cancel event
    155.         if clicked slot is 1:
    156.             set {_x} to 1
    157.         else if clicked slot is 2:
    158.             set {_x} to 4
    159.         else if clicked slot is 3:
    160.             set {_x} to 8
    161.         else if clicked slot is 4:
    162.             set {_x} to 16
    163.         else if clicked slot is 5:
    164.             set {_x} to 32
    165.         else if clicked slot is 6:
    166.             set {_x} to 64
    167.         else if clicked slot is 8:
    168.             close player's inventory
    169.         clicked slot is 1 or 2 or 3 or 4 or 5 or 6
    170.         set {_block} to targeted block
    171.         set {_item} to uncoloured line 2 of {_block}
    172.         if inventory name of clicked inventory is "%{_Comprarmenu}%":
    173.             set {_price} to {_x}*{guild::priceitem::%{_item}%}
    174.             invoke "FunnyShopComprar" from player and "%{_item}%" and "%{_x}%" and "%{_price}%"
    175.         else if inventory name of clicked inventory is "%{_Vendermenu}%":
    176.             set {_price} to {_x}*{guild::Venderpriceitem::%{_item}%}
    177.             invoke "FunnyShopVender" from player and "%{_item}%" and "%{_x}%" and "%{_price}%"
    178.      
    179.      
    180.     else if inventory name of clicked inventory is " &7&l» &8&lConfiguration":
    181.         cancel event
    182.         if clicked slot is 10:
    183.             if clicked item is a paper:
    184.                 name of clicked item is "&e&l&nMessages & Text Editor"
    185.                 invoke "FunnyShopMessages" from player
    186.             else if clicked item is a book:
    187.                 name of clicked item is "&6&l&nPrefix&r "
    188.                 set {FShop::ChangingText::%uuid of player%} to "GlobalPrefix"
    189.         else if clicked slot is 11:
    190.             if clicked item is a book:
    191.                 name of clicked item is "&c&l&nComprar Sign&r &7- &e&l&nInfo&r "
    192.                 set {FShop::ChangingText::%uuid of player%} to "ComprarSignLine1"
    193.         else if clicked slot is 12:
    194.             if clicked item is a book:
    195.                 name of clicked item is "&c&l&nComprar Sign&r &7- &e&l&nItem Color&r "
    196.                 set {FShop::ChangingText::%uuid of player%} to "ComprarSignLine2"
    197.         else if clicked slot is 13:
    198.             if clicked item is a book:
    199.                 name of clicked item is "&c&l&nComprar Sign&r &7- &e&l&nMoney Color&r "
    200.                 set {FShop::ChangingText::%uuid of player%} to "ComprarSignLine3"
    201.         else if clicked slot is 14:
    202.             if clicked item is a book:
    203.                 name of clicked item is "&c&l&nComprar Sign&r &7- &e&l&nClique Aqui&r "
    204.                 set {FShop::ChangingText::%uuid of player%} to "ComprarSignLine4"
    205.         else if clicked slot is 15:
    206.             if clicked item is a book:
    207.                 name of clicked item is "&a&l&nVender Sign&r &7- &e&l&nInfo&r "
    208.                 set {FShop::ChangingText::%uuid of player%} to "VenderSignLine1"
    209.         else if clicked slot is 16:
    210.             if clicked item is a book:
    211.                 name of clicked item is "&a&l&nVender Sign&r &7- &e&l&nItem Color&r "
    212.                 set {FShop::ChangingText::%uuid of player%} to "VenderSignLine2"
    213.         else if clicked slot is 19:
    214.             if clicked item is a book:
    215.                 name of clicked item is "&a&l&nVender Sign&r &7- &e&l&nMoney Color&r "
    216.                 set {FShop::ChangingText::%uuid of player%} to "VenderSignLine3"
    217.         else if clicked slot is 20:
    218.             if clicked item is a book:
    219.                 name of clicked item is "&a&l&nVender Sign&r &7- &e&l&nClique Aqui&r "
    220.                 set {FShop::ChangingText::%uuid of player%} to "VenderSignLine4"
    221.         else if clicked slot is 21:
    222.             if clicked item is a book:
    223.                 name of clicked item is "&a&l&nComprar Menu&r &7- &d&l&nTitle&r "
    224.                 set {FShop::ChangingText::%uuid of player%} to "ComprarMenuTitle"
    225.         else if clicked slot is 22:
    226.             if clicked item is a book:
    227.                 name of clicked item is "&a&l&nVender Menu&r &7- &d&l&nTitle&r "
    228.                 set {FShop::ChangingText::%uuid of player%} to "VenderMenuTitle"
    229.         else if clicked slot is 23:
    230.             if clicked item is a book:
    231.                 name of clicked item is "&a&l&nComprar Menu&r &7- &b&l&nText Color&r "
    232.                 set {FShop::ChangingText::%uuid of player%} to "ComprarMenuText"
    233.         else if clicked slot is 24:
    234.             if clicked item is a book:
    235.                 name of clicked item is "&a&l&nVender Menu&r &7- &b&l&nText Color&r "
    236.                 set {FShop::ChangingText::%uuid of player%} to "VenderMenuText"
    237.         else if clicked slot is 27:
    238.             clicked item is red glass pane
    239.             name of clicked item is " &c&l« Go Back "
    240.             invoke "FunnyShopCMenu" from player
    241.          
    242.         clicked slot is 10 or 11 or 12 or 13 or 14 or 15 or 16 or 19 or 20 or 21 or 22 or 23 or 24
    243.         clicked item is a book
    244.         close inventory of player
    245.         message "&6&l%{_prefix}% &eWrite the Text you want in the Chat."
    246.  
    247.  
    248.  
    249. on chat:
    250.     {FShop::ChangingText::%uuid of player%} is set
    251.     cancel event
    252.     set {FShop::Messages::%{FShop::ChangingText::%uuid of player%}%} to coloured message
    253.     delete {FShop::ChangingText::%uuid of player%}
    254.     message "%{FShop::Messages::GlobalPrefix}% &8| &aYou've succesfully changed the Text!"
    255.     wait 10 ticks
    256.     open chest with 4 rows named " &7&l» &8&lConfiguration" to player
    257.     invoke "FunnyShopMessages" from player
    258.     set {_x::*} to 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 28, 29, 30, 31, 32, 33, 34 and 35
    259.     loop {_x::*}:
    260.         set slot loop-value of player's current inventory to black stained glass named ""
    261.  
    262. sub "FunnyShopComprar":
    263.     set {_p} to "%parameter 1%" parsed as player
    264.     set {_item} to "%parameter 2%" parsed as item
    265.     set {_ItemName} to "%parameter 2%"
    266.     set {_amount} to "%parameter 3%" parsed as integer
    267.     set {_price} to "%parameter 4%" parsed as integer
    268.     set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    269.     if balance of {_p} >= {_price}:
    270.         if {_p} has enough space for {_amount} of {_item}:
    271.             remove {_price} from balance of {_p}
    272.             give {_amount} of {_item} to {_p}
    273.             message "%{_prefix}% &a&lYou've bought &f&l%{_amount}%x %{_ItemName}% &a&lfor &f&l$%{_price}%!" to {_p}
    274.         else:
    275.             message "%{_prefix}% &cYour inventory is full!" to {_p}
    276.     else:
    277.         message "%{_prefix}% &cNot enough money!" to {_p}
    278.  
    279.  
    280. sub "FunnyShopVender":
    281.     set {_p} to "%parameter 1%" parsed as player
    282.     set {_item} to "%parameter 2%" parsed as item
    283.     set {_ItemName} to "%parameter 2%"
    284.     set {_amount} to "%parameter 3%" parsed as integer
    285.     set {_price} to "%parameter 4%" parsed as integer
    286.     set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    287.     set {_ItemSize} to amount of {_item} in {_p}'s inventory
    288.     if {_ItemSize} >= {_amount}:
    289.         add {_price} to balance of {_p}
    290.         remove {_amount} of {_item} from {_p}'s inventory
    291.         message "%{_prefix}% &a&lYou've sold &f&l%{_amount}%x %{_ItemName}% &a&lfor &f&l$%{_price}%!" to {_p}
    292.     else:
    293.         message "%{_prefix}% &cYou haven't got %{_amount}%x %{_ItemName}%!" to {_p}
    294.      
    295. sub "FunnyShopCMenu":
    296.     set {_p} to "%parameter 1%" parsed as player
    297.     if inventory name of {_p}'s current inventory is " &7&l» &8&lConfiguration":
    298.         set {_x1::*} to 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24 and 25
    299.         loop {_x1::*}:
    300.             set slot loop-value of {_p}'s current inventory to air
    301.             wait 1 tick
    302.     else:
    303.         open chest with 4 rows named " &7&l» &8&lConfiguration" to {_p}
    304.         wait 2 ticks
    305.         set {_x2::*} to 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 17, 18, 26, 27, 28, 29, 30, 31, 32, 33, 34 and 35
    306.         loop {_x2::*}:
    307.             set slot loop-value of {_p}'s current inventory to black stained glass named ""
    308.     set slot 10 of {_p}'s current inventory to paper named "&e&l&nMessages & Text Editor" with lore " ||&7Clique Aqui to change the messages||&7of this small FunnyShop Script!|| "
    309.     set slot 12 of {_p}'s current inventory to barrier named "&c&l&nComing Soon" with lore " || &7... || "
    310.     set slot 14 of {_p}'s current inventory to barrier named "&c&l&nComing Soon" with lore " || &7... || "
    311.     set slot 16 of {_p}'s current inventory to barrier named "&c&l&nComing Soon" with lore " || &7... || "
    312.     set slot 20 of {_p}'s current inventory to barrier named "&c&l&nComing Soon" with lore " || &7... || "
    313.     set slot 22 of {_p}'s current inventory to barrier named "&c&l&nComing Soon" with lore " || &7... || "
    314.     set slot 24 of {_p}'s current inventory to barrier named "&c&l&nComing Soon" with lore " || &7... || "
    315.  
    316.      
    317. sub "FunnyShopMessages":
    318.     set {_p} to "%parameter 1%" parsed as player
    319.     if slot 10 of {_p}'s current inventory is not air:
    320.         set {_x::*} to 10, 11, 12, 13, 14, 15, 16, 19, 20, 21, 22, 23, 24 and 25
    321.         loop {_x::*}:
    322.             set slot loop-value of {_p}'s current inventory to air
    323.             wait 1 tick
    324.     set slot 10 of {_p}'s current inventory to a book named "&6&l&nPrefix&r " with lore " || &7Current Prefix: || &8» &7'&f%{FShop::Messages::GlobalPrefix}%&7'&r  || "
    325.     set slot 11 of {_p}'s current inventory to a book named "&c&l&nComprar Sign&r &7- &e&l&nInfo&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::ComprarSignLine1}%&7'&r  || "
    326.     set slot 12 of {_p}'s current inventory to a book named "&c&l&nComprar Sign&r &7- &e&l&nItem Color&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::ComprarSignLine2}%Example&7'&r  || "
    327.     set slot 13 of {_p}'s current inventory to a book named "&c&l&nComprar Sign&r &7- &e&l&nMoney Color&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::ComprarSignLine3}%Example&7'&r  || "
    328.     set slot 14 of {_p}'s current inventory to a book named "&c&l&nComprar Sign&r &7- &e&l&nClique Aqui&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::ComprarSignLine4}%&7'&r  || "
    329.     set slot 15 of {_p}'s current inventory to a book named "&a&l&nVender Sign&r &7- &e&l&nInfo&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::VenderSignLine1}%&7'&r  || "
    330.     set slot 16 of {_p}'s current inventory to a book named "&a&l&nVender Sign&r &7- &e&l&nItem Color&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::VenderSignLine2}%Example&7'&r  || "
    331.     set slot 19 of {_p}'s current inventory to a book named "&a&l&nVender Sign&r &7- &e&l&nMoney Color&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::VenderSignLine3}%Example&7'&r  || "
    332.     set slot 20 of {_p}'s current inventory to a book named "&a&l&nVender Sign&r &7- &e&l&nClique Aqui&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::VenderSignLine4}%&7'&r  || "
    333.     set slot 21 of {_p}'s current inventory to a book named "&a&l&nComprar Menu&r &7- &d&l&nTitle&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::ComprarMenuTitle}%&7'&r  || "
    334.     set slot 22 of {_p}'s current inventory to a book named "&a&l&nVender Menu&r &7- &d&l&nTitle&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::VenderMenuTitle}%&7'&r  || "
    335.     set slot 23 of {_p}'s current inventory to a book named "&a&l&nComprar Menu&r &7- &b&l&nText Color&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::ComprarMenuText}%Example&7'&r  || "
    336.     set slot 24 of {_p}'s current inventory to a book named "&a&l&nVender Menu&r &7- &b&l&nText Color&r " with lore " || &7Currently: || &8» &7'&f%{FShop::Messages::VenderMenuText}%Example&7'&r  || "
    337.     wait 3 ticks
    338.     set slot 27 of {_p}'s current inventory to a red glass pane named " &c&l« Go Back "
    339.  
    340.  
    341. command /funnyshop [<text>]:
    342.     permission: fshop.command
    343.     aliases: /fshop
    344.     trigger:
    345.         set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    346.         if arg-1 is "help":
    347.             if player has permission "fshop.help":
    348.                 message "&8&l&m--------------------------------------" to player
    349.                 message " &7»  &6/fshop help &8» &7&oThis little help menu :)" to player
    350.                 message " &7»  &6/fshop reload &8» &7&oReload the Script!" to player
    351.                 message " &7»  &6/fshop configure &8» &7&oIn-Game configuration!" to player
    352.                 message "&8&l&m--------------------------------------" to player
    353.             else:
    354.                 message "%{_prefix}% &cYou haven't got the permission for this!"
    355.         else if arg-1 is "configure" or "config" or "c":
    356.             if player has permission "fshop.config":
    357.                 invoke "FunnyShopCMenu" from player
    358.             else:
    359.                 message "%{_prefix}% &cYou haven't got the permission for this!"
    360.  
    361.          
    362.         else:
    363.             if player has permission "fshop.help":
    364.                 make player execute command "/fshop help"
    365.             else:
    366.                 message "%{_prefix}% &cYou haven't got the permission for this!"
    367.  
    368.  
    369.  
    370. #on inventory click:
    371. #    if {guildshop::Compraring::%uuid of player%} is set:
    372. #        if "%click type%" is "SHIFT_LEFT":
    373. #            cancel event
    374. #        if "%click type%" is "SHIFT_RIGHT":
    375. #            cancel event
    376.  
    377. on break of sign:
    378.     set {_Line1-Comprar} to "%{FShop::Messages::ComprarSignLine1}%"
    379.     set {_Line4-Comprar} to "%{FShop::Messages::ComprarSignLine4}%"
    380.     set {_Line1-Vender} to "%{FShop::Messages::VenderSignLine1}%"
    381.     set {_Line4-Vender} to "%{FShop::Messages::VenderSignLine4}%"
    382.     set {_prefix} to "%{FShop::Messages::GlobalPrefix}%"
    383.     line 2 of event-block is set
    384.     line 3 of event-block is set
    385.     if line 1 of event-block is "%{_Line1-Comprar}%":
    386.         line 4 of event-block is "%{_Line4-Comprar}%"
    387.         if player is not sneaking:
    388.             cancel event
    389.             if player has permission "fshop.destroysign":
    390.                 message "%{_prefix}% &cYou need to Sneak when you want to destroy a Shop sign!"
    391.         else:
    392.             if player has permission "fshop.destroysign":
    393.                 message "%{_prefix}% &a&lYou successfully removed a Shop Sign!"
    394.             else:
    395.                 cancel event
    396.     if line 1 of event-block is "%{_Line1-Vender}%":
    397.         line 4 of event-block is "%{_Line4-Vender}%"
    398.         if player is not sneaking:
    399.             cancel event
    400.             if player has permission "fshop.destroysign":
    401.                 message "%{_prefix}% &cYou need to Sneak when you want to destroy a Shop sign!"
    402.         else:
    403.             if player has permission "fshop.destroysign":
    404.                 message "%{_prefix}% &a&lYou successfully removed a Shop Sign!"
    405.             else:
    406.                 cancel event
    407.  
    408.  
    409.                            
    --- Double Post Merged, Apr 10, 2020, Original Post Date: Apr 1, 2020 ---
    Can someone help me?
     
  2. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    5
    I am sorry, but you are probably going to have to figure this out yourself. This code is super long and I don't think anyone wants to go through a mile of code.
     
  3. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    714
    Likes Received:
    31
    You need Skellet 1.9.6 to do it. If you have Skellet, try doing this:

    Code (Skript):
    1. invoke method "FunnyShopComprar" from player and "%{_item}%%new line%%{_x}%%new line%%{_price}%"
    I have rarely used the "invoke" effect, so I don't know if this will work for you.
     
Thread Status:
Not open for further replies.

Share This Page

Loading...