#issue with this skript
1 messages · Page 1 of 1 (latest)
remove query
1s
get:
set {_item} to expr-1
enchant {_item} with (infinity if {_item} is not a bow, else (lure))
return {_item} with enchant flags hidden```
you need reflect
everyone happy
made by my husband @keen solar
as usual gab is bad
it does work
so like
because i've tested it
what did u try
now it does
but the issue still isnt fixed
make sure that you are broadcasting them in order
ik
set {_u} to uuid of {_p}
broadcast "debug 1"
broadcast "%{_%{_1}%price}%"
broadcast "%{token::balance::%{_u}%}%"
if {token::balance::%{_u}%} >= {_%{_1}%price}:
broadcast "debug 2"
remove {_%{_1}%price} from {token::balance::%{_u}%}
enchant {_p}'s tool with {_r}
send action bar "%{actionbar}% %{corecolor}%Payment succeed!" to {_p}
close {_p}'s inventory
else:
close {_p}'s inventory
send action bar "%{actionbar}% %{corecolor}%Payment cancelled!" to {_p}```
but it is else
but i have 401 te and i need 200
try parsing the vars as numbers
so set {_%{_1}%price} to {_%{_1}%price} parsed as number
also i dont really know what to tell you when i dont have the full skript
ye that worked
im awesome
real
yes
caus this didnt work out
{_2} is EFFICIENCY
{_e} is like the number in the lore
and {_5} is the line of the lore
replace " %{_2}%" and ": " in {_t} with ""
if {_t} contains 0:
set {_e} to 1
else:
set {_e} to {_t}+1
set {_e} to "efficiency %{_e}%"```
bcos text cant contain a number
it is text
is 512"6123"12 a number? (no)
it is numbertextnumber
so wdym
replace " %{_2}%" and ": " in {_enchant} with ""
if {_enchant} is "0":
set {_e} to 1
else:
set {_e} to {_enchant}+1
set {_e} to "efficiency %{_e}%"```
ow wait i found out but how do i replace 0 to 1?
ow wait this just changes every line
it will say this
if block = stone:
add 150 to {xp::%player's uuid%}
if block = coal ore:
add 250 to {xp::%player's uuid%}```
Why is the stone not reacting?
debug
thats what the add 250 is for
if type of event-block = stone
do /sk info
theres your problem
query
yes
nah imma just remove it