Other available versions. Ordered by newest to oldest versions:
Just so you know, we don't know the file format for every file. If it's just a bunch of random characters, it's probably a .zip or .jar.
# WowSK
# In-game USD-WOW converter
# If you like this, please donate to:
# Wownero: WW2JvX4qdyqJS8yzREmNYSdbEXDrtdCxnGC61DqiYu6fJVAdw24ZfQ2J3bYXHSFN9LU3Ezm4ZkNBjWUYzFrBLW3x1F8mJYoDK
options:
prefix: §7[§6WowSK§7] §c
c: §f # The messages color
every 2 minutes:
refresh()
on skript load:
refresh()
function refresh():
set {_a} to text from "https://funding.wownero.com/api/1/convert/wow-usd?amount=1000"
if {_a} is "<none>":
stop
replace all "{" with "" in {_a}
replace all "}" with "" in {_a}
replace all ":" with "" in {_a}
replace all "usd" with "" in {_a}
replace all """""" with "" in {_a}
set {wow.Val} to ({_a} parsed as number) / 1000.0
command /wow2usd [<number = 1>]:
trigger:
set {_a} to ((arg-1) * ({wow.Val}))
send "{@prefix}{@c}%arg-1% {@c}WOW = {@c}%{_a}%{@c}$ (wow value: %wowValDiff(player)%{@c})"
command /usd2wow [<number = 1>]:
trigger:
set {_a} to ((arg-1) / ({wow.Val}))
send "{@prefix}{@c}%arg-1% {@c}$ = {@c}%{_a}%{@c} WOW (wow value: %wowValDiff(player)%{@c})"
function wowValDiff(p: player) :: text:
if {wow.lpval.%{_p}%} is not set:
set {wow.lpval.%{_p}%} to {wow.Val}
set {_a} to (({wow.Val} - {wow.lpval.%{_p}%}) / ({wow.lpval.%{_p}%} / 100))
if {_a} = 0:
set {_b} to "§e0%%"
else if {_a} > 0:
set {_b} to "§a+%{_a}%%%"
else if {_a} < 0:
set {_b} to "§c%{_a}%%%"
set {wow.lpval.%{_p}%} to {wow.Val}
return "%{_b}%"
command /setwowval <number>:
trigger:
set {wow.Val} to arg-1