Discord Thread Can someone help me setup a pricing system? Its really laggy with my current code

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

This thread came from the skUnity Discord. You can't reply to it here but if you join the skUnity Discord, you'll be able to post a reply there. The thread link is part of the thread's message.
Status
Not open for further replies.
Last time I did it with the inventory click it was hell and basically nothing worked
code_language.skript:
applescript
on inventory click:
    if name of event-item is "&a&lAdd 1":
        add 1 to item amount of slot 13 of event-inventory

on inventory click:
    if name of event-item is "&a&lAdd 10":
        add 10 to item amount of slot 13 of event-inventory

on inventory click:
    if name of event-item is "&a&lSet to 64":
        set item amount of slot 13 of event-inventory to 64

on inventory click:
    if name of event-item is "&a&lSet to 16":
        set item amount of slot 13 of event-inventory to 16

on inventory click:
    if name of event-item is "&c&lRemove 1":
        remove 1 from item amount of slot 13 of event-inventory

on inventory click:
    if name of event-item is "&c&lRemove 10":
        remove 10 from item amount of slot 13 of event-inventory

on inventory click:
    if name of event-item is "&c&lSet to 1":
        set item amount of slot 13 of event-inventory to 1

Posted by: harfull from the skUnity Discord.
 
code_language.skript:
applescript
on inventory click:
    if name of event-item is "&c&lSet to 1":
        set item amount of slot 13 of event-inventory to 1
    else if name of event-item is "&c&lRemove 10":
        remove 10 from item amount of slot 13 of event-inventory
    else if name of event-item is "&c&lRemove 1":
        remove 1 from item amount of slot 13 of event-inventory
    else if name of event-item is "&a&lAdd 1":
        add 1 to item amount of slot 13 of event-inventory
    else if name of event-item is "&a&lSet to 16":
        set item amount of slot 13 of event-inventory to 16
    else if name of event-item is "&a&lSet to 64":
        set item amount of slot 13 of event-inventory to 64
    else if name of event-item is "&a&lAdd 10":
        add 10 to item amount of slot 13 of event-inventory

Posted by: harfull from the skUnity Discord.
 
Status
Not open for further replies.