Help add this function to sellwand
I am willing to pay for help. I don't understand much in scripts
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: