Sellwand

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

g1ps

New Member
May 1, 2021
6
0
1
24
Help add this function to sellwand
I am willing to pay for help. I don't understand much in scripts
Code:
function money2XP(p: player):
  set {_u} to {_p}'s uuid
  set {_temp} to ({totalsold::%{_u}%}/1000)
  set {_num} to "%{_temp}%"
  set {_calcing::*} to {_num} split at "."
  set {_calc1} to ({_calcing::1} parsed as number)
  remove (1000*{_calc1}) from {totalsold::%{_u}%}
  AddXP({_p}, (10*{_calc1}))
  UpdateStats({_p}, {level::%{_u}%}, {xp::%{_u}%}, {prestige::%{_u}%})
 
Last edited:
1. Put codes in code blocks
2. I don't get what you mean
I have 2 scripts. one for levels. another scenario
for the wand that sells all the items in the chest.
When I sell inventory items using the sell command it gives me 1k +10 experience,
but when I sell items using a wand it only gives me money with no experience.

I need to make sure that this experience comes from selling with a wand.
 
Could you send everything, please, so I can try it out? If you don't wish to send it publicly, you can also write me on discord Jonas L. | Minecoll_YT#0741
 
Status
Not open for further replies.