#Need help with vault-based shop skript
1 messages · Page 1 of 1 (latest)
Without reading the entirity of that, i'm gonna ask if you have added Vault to you server?
Because that is the only requirement to make Vault syntax work
Where does your skript appear to fail?
it doesnt fail
so for example it sais: "&fBalance: %{balance::%uuid of player%}%"
this isnt the vault balance display
hey blok can you send /vault-info
probs
if you have vault it'll show up in game
that'll give us the needed information to see if you're missing anything
ok so u do not need to store player's balances if you are using vault {balance::%uuid of player%}
because vault knows for itself
so u can just do "player's balance" every time
ah ok
example of a invalid vault currency
ye u ofc don't want that xD
so if i do players balance will that show the vault balance?
yes
it will also use whatever format vault is setup to use
that good?
yeah so you can freely use
%offlineplayers%'[s] balance
balance of %offlineplayers%
Essentials also hooks into vault, so any of their commands will act on the same balances
ohhhhhhhhhhh
true
so if i just replace balance::uuid of player with offlineplayer balance in the entire skript it will showcase the essetials economy ?
yup
%offlineplayer% refers to the player var but yes
with the %right ?
without
% is used as a type definition in syntax so player's balance is correct but %player%'s balance is incorrect
as for strings it's "%player's balance%"
yea
What is wrong here?
nvm got it alreaddy
@wheat glacier now i got the problem that the shop and the economy isn't connected, if i try to buy something it sais "you don't have enought money to buy this" while i have 100million
do you know what causes this?
not %{%offlineplayer%}% try just %player%
oh i might just forgot to chance somme player uuids to players balance
ye i forgot to replace them from every item too
u'll usually never need offlineplayer for a command used by an online player
ah ok makes sence 🤣🤣
This is the last error i get its prob another dumb fault but i dont see it, u got an idea?
^
Without the %?
indeed
rule of thumb, you almost never need %'s outside of " "
because it is mostly used to parse a variable to a string in one way or another