The-Legion-Preservation-Project / LegionCore-7.3.5

LegionCore for 7.3.5 26972
GNU General Public License v2.0
27 stars 27 forks source link

Does not credit combat coins to the in-game store #105

Open Etoyspeh opened 1 month ago

Etoyspeh commented 1 month ago

Снимок1 Снимок In the auth database in columns: coins, balans, donate there is no response. Currency is not credited to the player's account

jasongdove commented 1 month ago

I don't know what those columns are, or what the "donate" system is. Looking at the code (LOGIN_SEL_ACCOUNT_TOKENS), battle pay seems to use the account_tokens table.

d3athbl0w commented 1 month ago

image

In LegionCore for add BattleCoins is the table: account_tokens

Remember relog after change this points

Etoyspeh commented 1 month ago

thank you for the prompt replies. Today is definitely not my day, I'm not paying attention. I managed to accrue myself coins with some difficulty, as well as filling the shop with goods but when you buy an item, it says it's not enough, even though there are coins. INSERT INTO legion_auth.account_tokens (account_id, tokenType, amount) VALUES (2, 1, 10000);

Снимок2

I noticed that. With this request: INSERT INTO legion_auth.account_tokens (account_id, tokenType, amount) VALUES (2, 0, 10000); Payment and purchase pass and I get the item in my bag

Снимок3

jasongdove commented 1 month ago

Look at the table battlepay_tokens - I think you want to use 1 instead of 0 when you add products. This PR also updated the level boost to fix the token type https://github.com/The-Legion-Preservation-Project/LegionCore-7.3.5/pull/103