#anyone know a simpler way of doing this?

1 messages · Page 1 of 1 (latest)

drifting mango
#

i have 14 suffixes and i dont think this is the most efficient way of doing it, and will take me ages. Also, it doe snt even work!

main hound
#

well do u have a function for each of them

drifting mango
#

not yet but if i do its gonna take ages

#

so i was wondering if there is a better way

main hound
#

then dont

#

so im guessing

#

the suffixes go with index, 1,2,3... right

#

if so

#

just look thru all their names like: loop ("air", "fire", "water", "whatever their name is"): then do if index-of event-slot = loop-number:, then just make the function code dynamic in the event like

if player does not have permission "%loop-value%.use":
  close player's inventory
  send "&cYou cannot equip this suffix as you do not own it! &7(/buy)"
else:
  execute console command "lp user %player% meta setsuffix %loop-value%" #You cant be dynamic in options, so either change options to variables or set the suffix names to whatever ur looping
drifting mango
#

the thing is

#

the

#

"lp user %player% meta setsuffix %loop-value%"

#

the loopp[ value

#

has hexes in

#

eg &8[&#6abefb&lA&#89c2fc&li&#a8c5fd&lr&8]

main hound
#

alright

#

so?

#

instead of doing

#
options:
  this: that

do 

variables:
  {suffix::this} = "that"
#

then do {suffix::%loop-value%}

drifting mango
main hound
#

send code

drifting mango
#

wait nvm

#

diodnt do <##

#

would this work as well?

#

ok

#

i made a mistake in the variables thing not removing the &'s

#

i changed it to correct

#

its still the old one

#

so i cant change the variable

#

do u know how?

pliant hare
#

send the code using hastebin and I'll try and optimize it

drifting mango
#

currently doing that way

pliant hare
#

It seems easy to optimize, wait a few minutes

pliant hare
#

add suffix in the on load like this:
addSuffix("cloud", "&7[hello this is example]", white wool named "&f&lCLOUD SUFFIX")

drifting mango
#

thing is

#

the suffixes, eg. the [hello] thing, are made from hexes

#

idk how to make that work

#

wait nvvmmmm

#

ty

pliant hare
#

luckperms will do it for you

drifting mango
#

can u add "with lore "eaeaea""

#

in it?

#

ill do it

#

i just wanna know if u can

#

like here

#

@pliant hare sorry for ping but got this error

pliant hare
pliant hare
drifting mango
#

ty and ty

pliant hare
#

Sorry for the double ping

pliant hare
drifting mango
#

npnp