#issue with this skript

1 messages · Page 1 of 1 (latest)

hollow roost
#

do /sk info and send output

cerulean nacelle
#

💀

hollow roost
#

remove query

cerulean nacelle
#

its SkQuery isnt it

#

i just like the glowing thingie

#

it causes less lagg

hollow roost
#

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

cerulean nacelle
#

do i need to up this in my function skript?

#

or where?

hollow roost
#

put it in a skript

#

reload the skript

#

happy skript

cerulean nacelle
#

everyone happy

hollow roost
cerulean nacelle
#

thnx

#

ow

#

glowing doesnt work?

hollow roost
#

as usual gab is bad

cerulean nacelle
keen solar
keen solar
#

100%

cerulean nacelle
#

so like

keen solar
#

because i've tested it

keen solar
cerulean nacelle
#

now it does

keen solar
#

@hollow roost see he just has skill issue

#

ok bye

#

i willgo sleep

hollow roost
#

it works btw

cerulean nacelle
#

but the issue still isnt fixed

cerulean nacelle
#

this issue

hollow roost
#

make sure that you are broadcasting them in order

cerulean nacelle
#

ik

hollow roost
#

also you should make it >=

#

instead of >

cerulean nacelle
#
        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

hollow roost
#

try parsing the vars as numbers

cerulean nacelle
#

so set {_%{_1}%price} to {_%{_1}%price} parsed as number

hollow roost
#

also i dont really know what to tell you when i dont have the full skript

cerulean nacelle
#

ye that worked

hollow roost
#

im awesome

teal hazel
#

real

cerulean nacelle
#

can you btw change a lore of a item?

#

like change a 0 in a lore to a 1

hollow roost
#

yes

cerulean nacelle
#

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}%"```
hollow roost
#

bcos text cant contain a number

#

it is text

#

is 512"6123"12 a number? (no)

#

it is numbertextnumber

cerulean nacelle
#

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

proven oracle
#
    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?
hollow roost
#

debug

proven oracle
#

thats what the add 250 is for

hollow roost
#

if type of event-block = stone

proven oracle
#

aihgt

#

Nope

hollow roost
#

do /sk info

proven oracle
hollow roost
#

theres your problem

proven oracle
#

?

#

how

hollow roost
#

query

proven oracle
#

whats worng with wit?

#

outdated?

hollow roost
#

yes

proven oracle
#

nah imma just remove it