• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

shisus420

New Member
Joined
Jan 20, 2017
Messages
16
Reaction score
2
Hi!
Is it possible to use this currency in Tibia store:

8heD2Ns.png


instead of this?:

3xc7YgE.png


If so, could you help me with this? (I'm using ZnoteAAC and OTX 3.8)
 
Since you didn't follow the rules and include your code there isn't alot I can do.
But you have to use the same column in your database, you can't use ex store_coins and premium_points.

You will either have to modify your AAC or the scripts that OTX uses for the store.
 
yes it is, what kind of store system are you using?
I'm using this Store system: https://github.com/brunominervino/custom_tfs/commit/ae72873aee1afc0760e1ead9aa8291d78b66d7a2

Since you didn't follow the rules and include your code there isn't alot I can do.
Sorry, I wasn't sure which code should I include. Can you tell me which code do I need to include to make it easier for you to help me?

Yes, it should not be that hard to achieve that.
Got any ideas?
 
I'm using this Store system: https://github.com/brunominervino/custom_tfs/commit/ae72873aee1afc0760e1ead9aa8291d78b66d7a2


Sorry, I wasn't sure which code should I include. Can you tell me which code do I need to include to make it easier for you to help me?


Got any ideas?

You should have posted the SQL schema for both systems.
Idk about Znote AAC but the PR uses this;
Code:
`coins` int(11) NOT NULL DEFAULT '0',

So accounts.coins, you have to check your database or the schema for znote to see what you need to change.
The easiest will probbly be to update znote seeing as you are more likely to update TFS than Znote.
Once this sytem is merged maybe @Gesior.pl, @Znote and @Don Daniello should update the schema to use accounts.coins insted of the "custom" column they are using atm.
 
@WibbenZ
Znote AAC uses `znote_accounts`.`points`
Schema

I will update my shop to support for this when/if it get merged to TFS master repo.

shop.php:
This need to load points from accounts.points (it current loads from znote_accounts.points)
https://github.com/Znote/ZnoteAAC/blob/master/shop.php#L18
https://github.com/Znote/ZnoteAAC/blob/master/shop.php#L33
https://github.com/Znote/ZnoteAAC/blob/master/shop.php#L43

This need to update accounts.points instead of znote_accounts.points:
https://github.com/Znote/ZnoteAAC/blob/master/shop.php#L41

ipn.php (paypal):
This needs to load points from accounts.points (it currently loads from znote_accounts.points)
https://github.com/Znote/ZnoteAAC/blob/master/ipn.php#L119

This need to update accounts.points instead of znote_accounts.points:
https://github.com/Znote/ZnoteAAC/blob/master/ipn.php#L123

pagseguro_ipn.php:
This need to load points from accounts.points (it current loads from znote_accounts.points)
https://github.com/Znote/ZnoteAAC/blob/master/pagseguro_ipn.php#L105

This need to update accounts.points instead of znote_accounts.points:
https://github.com/Znote/ZnoteAAC/blob/master/pagseguro_ipn.php#L109

paygol_ipn.php:
This need to load points from accounts.points (it current loads from znote_accounts.points)
https://github.com/Znote/ZnoteAAC/blob/master/paygol_ipn.php#L47

This need to update accounts.points instead of znote_accounts.points:
https://github.com/Znote/ZnoteAAC/blob/master/paygol_ipn.php#L51
 
@WibbenZ
Znote AAC uses znote_accounts.points
Schema

I will update my shop to support for this when/if it get merged to TFS master repo.

shop.php:
This need to load points from accounts.points (it current loads from znote_accounts.points)
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/shop.php#L18)
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/shop.php#L33)
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/shop.php#L43)

This need to update accounts.points instead of znote_accounts.points:
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/shop.php#L41)

ipn.php (paypal):
This needs to load points from accounts.points (it currently loads from znote_accounts.points)
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/ipn.php#L119)

This need to update accounts.points instead of znote_accounts.points:
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/ipn.php#L123)

pagseguro_ipn.php:
This need to load points from accounts.points (it current loads from znote_accounts.points)
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/pagseguro_ipn.php#L105)

This need to update accounts.points instead of znote_accounts.points:
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/pagseguro_ipn.php#L109)

paygol_ipn.php:
This need to load points from accounts.points (it current loads from znote_accounts.points)
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/paygol_ipn.php#L47)

This need to update accounts.points instead of znote_accounts.points:
Znote/ZnoteAAC (https://github.com/Znote/ZnoteAAC/blob/master/paygol_ipn.php#L51)
Hey, it is possible to change the (Shop Points) for (Tibia Coins), which when donating you give you tibia coins in the game and reflect them on the page
 
Back
Top