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.

Transition

Discussion in 'Skript' started by Deku, Jul 12, 2020.

Tags:
Thread Status:
Not open for further replies.
  1. Deku

    Deku Member

    Joined:
    Jul 12, 2020
    Messages:
    36
    Likes Received:
    0
    I would like to create a skript that processes a purchase, I have reached a point but I would like to add a number to the transition code (ID), which increases every time the command is executed
    Code (Text):
    1. command /kalskmx:
    2.     trigger:
    3.         if balance of player is greater than 699:      
    4.             give 10 eggs named "&bBullets" to player
    5.             send ""
    6.             send "&9&lPurchase successful!"
    7.             send ""
    8.             wait 1 second
    9.             send "&7Items: &9Bullets"
    10.             send "&7Quantity: &910"
    11.             send "&7Cost: &9700€"
    12.             set {_IDcode} to "4653: "
    13.             add 1 to {IDcode}              
    14.             send "&7Purchase ID: {IDcode}"
    15.             make console execute command "eco take %executor% 700"          
    16.             send ""
    17.         else:
    18.             send "&cYou don't have enough money to complete the transition!"      
    19.         stop
     
Thread Status:
Not open for further replies.

Share This Page

Loading...