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

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

PugZ

Member
Feb 23, 2021
14
1
1
23
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
[doublepost=1649911710,1649893936][/doublepost]
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
the right click works just it doesnt add any money to my bal
 
first of all you'd need a way to actually withdraw the money


once that is done:
Code:
on right click with paper:
  name of event-item contains "$"
  set {_s::*} to name of event-item split at "$"
  set {_money} to "%{_s::2}%" parsed as a number
  set {_ia} to item amount of player's tool
  remove {_ia} of player's tool from player's tool
  add ({_money} * {_ia}) to player's balance

Hope this helped :emoji_slight_smile:
 
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
 
  • Like
Reactions: Jake