#Skript Malfunctioning

1 messages · Page 1 of 1 (latest)

analog osprey
#
    if world of victim is "ElytraBox":
        set {moneygiven3} to 0
        set {moneygiven} to 20
        set {moneygiven1} to victim's balance
        add {moneygiven} to {money3}
        add {moneygiven1} / 10 to {money3}
        execute console command "eco give %{lastdamage::%uuid of victim%}% %{money3}%"
        execute console command "eco take %victim% 10%"
        send "Money taken from %victim%!" to {lastdamage::%uuid of victim%}
        delete {lastdamage::%uuid of victim%}```

This skript should work because everything is right but instead of giving 10% the balance which is given to the player seems significantly more and it seems to build up over multiple kills. Also skript says that I cannot write 10%.
rotund grail
#
  1. Use local variables for this
  2. If you have vault installed, simply (add|remove) x to player's balance
analog osprey
#

I tried remove x from player's balance but it didn't seem to do anything

#

that's why I used execute console command

rotund grail
#

do you have the vault plugin?

analog osprey
#

yes

rotund grail
#

show /sk info

analog osprey
#

Also whenever I kill it usually does not send the message

rotund grail
#

delete skrayfall

analog osprey
#

I can't because all my other skripts in my network need it in some way

rotund grail
#

they do not

#

skrayfall is so outdated anything it has is now in skript or skbee
skrayfall is also known to cause some bugs

analog osprey
#

I removed it

#

But it seems I can't use bossbar's now

rotund grail
#

skbee ahs bossbars

analog osprey
#

is it the same format as skrayfall tho?

rotund grail
#

not the same syntax; youll need to do a bit of re-working