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!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script Trading 1.0.0

A basic and highly configurable trading system.

  1. LimeGlass

    VIP Supporter Addon Developer

    Joined:
    Jan 24, 2017
    Messages:
    621
    Likes Received:
    436
    Medals:
    LimeGlass submitted a new resource:

    Trading - A basic and highly configurable trading system.

    Read more about this resource...
     
  2. Itzdlg

    Itzdlg Member

    Joined:
    Aug 6, 2017
    Messages:
    13
    Likes Received:
    0
    I think it looks A-OK, but the cancel should be in the middle where the gray is, I think it looks.. uhm.. weird.
     
  3. jsquared

    jsquared New Member

    Joined:
    Jun 1, 2019
    Messages:
    7
    Likes Received:
    0
    shift + right click trade:

    Code (Text):
    1. on right click on entity:
    2.     if entity is a player:
    3.         player is sneaking
    4.         if {trading::temp::player::%event-player%::request} isn't set:
    5.             if {trading::temp::player::%event-entity%::request} isn't set:
    6.                 execute event-player command "/trade %event-entity%"
    7.             else:
    8.                 if {trading::temp::player::%event-entity%::request} is set:
    9.                     execute event-player command "/trade accept"
    10.                 else:
    11.                     execute event-entity command "/trade accept"
    12.         else:
    13.             if {trading::temp::player::%event-entity%::request} isn't set:
    14.                 execute event-entity command "/trade accept"
    15.             else:
    16.                 execute event-player command "/trade accept"
     

Share This Page

Loading...