Transition

  • 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.

Deku

Member
Jul 12, 2020
36
0
6
19
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:
command /kalskmx:
    trigger:
        if balance of player is greater than 699:       
            give 10 eggs named "&bBullets" to player
            send ""
            send "&9&lPurchase successful!"
            send ""
            wait 1 second
            send "&7Items: &9Bullets"
            send "&7Quantity: &910"
            send "&7Cost: &9700€"
            set {_IDcode} to "4653: "
            add 1 to {IDcode}               
            send "&7Purchase ID: {IDcode}"
            make console execute command "eco take %executor% 700"           
            send ""
        else:
            send "&cYou don't have enough money to complete the transition!"       
        stop
 
Status
Not open for further replies.