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.

Solved i am making a deposit skript (when you right click a paper/money it deposits into a balance) can i h

Discussion in 'Requests' started by PugZ, Apr 14, 2022.

  1. PugZ

    PugZ Member

    Feb 23, 2021
    Likes Received:
    this is what i have so far:

    on right click with paper:
    if name of event-item contains "&a$":
    set {_amount} to uncolored name of event-item
    replace all "$ " in {_amount} with ""
    remove 1 of player's tool from player
    add {_amount} to player's balance
    --- Double Post Merged, Apr 14, 2022, Original Post Date: Apr 14, 2022 ---
    the right click works just it doesnt add any money to my bal
  2. Best Answer:
    Post #2 by Jake*, Apr 14, 2022
  3. Jake*


    Jan 30, 2022
    Likes Received:
    first of all you'd need a way to actually withdraw the money

    once that is done:
    Code (Text):
    1. on right click with paper:
    2.   name of event-item contains "$"
    3.   set {_s::*} to name of event-item split at "$"
    4.   set {_money} to "%{_s::2}%" parsed as a number
    5.   set {_ia} to item amount of player's tool
    6.   remove {_ia} of player's tool from player's tool
    7.   add ({_money} * {_ia}) to player's balance
    Hope this helped :emoji_slight_smile:
  4. PugZ

    PugZ Member

    Feb 23, 2021
    Likes Received:
    I already got a script for this but i forgot to mark it as done but ty and yes i have already made a withdraw command
    Jake* likes this.

Share This Page