• 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!

AAC add function to the shop system

_M4G0_

Well-Known Member
Joined
Feb 6, 2016
Messages
504
Solutions
16
Reaction score
98
@MyAAC

hello, somebody can help add this function. I want to add the function to PHP, where it will add the item when purchasing Points.

PHP:
INSERT INTO `z_ots_comunication` (`id`, `name`, `type`, `action`, `param1`, `param2`, `param3`, `param4`, `param5`, `param6`, `param7`, `delete_it`) VALUES (NULL, 'PLAYERNAME', 'login', 'give_item', '1987', '1', '0', '0', 'item', 'bag', 'item', '1');
 
Last edited by a moderator:
You need to have a shop.lua script in globalevents to receive items purchased through the website. I'm not sure which TFS version you're using, so I'll send both versions: TFS 1.x and TFS 0.4.

Tfs 1.x

Tfs 0.4
 
You need to have a shop.lua script in globalevents to receive items purchased through the website. I'm not sure which TFS version you're using, so I'll send both versions: TFS 1.x and TFS 0.4.

Tfs 1.x

Tfs 0.4
Thanks for answer, sorry, maybe my post is not specific, yes, I know about shop.lua... but not my case... I want to add the function to PHP, where it will add the item when purchasing Points.
 
Last edited:
In which payment system? You linked 'pagseguro' integration and slawkens deleted it 3 days ago with message `
gesior-shop-system: delete pagseguro, wasnt working anyway, the api is outdated`:
it would be something to add a chest that would give bonus items to the player... as soon as payment was confirmed

 
Last edited:
PHP:
$db->insert('z_ots_comunication', [
    'name' => 'playerName', //here player name
    'type' => 'login',
    'action' => 'give_item',
    'param1' => 2160, // here item id
    'param2' => 1, // count
    'param3' => 0,
    'param4' => 0,
    'param5' => 'item',
    'param6' => 'Crystal Coins', // offer name
    'param7' => '',
    'delete_it' => 1,
]);

You can use following function.

The question would be, as @Gesior.pl stated - where do you want to paste it - after paypal/stripe payment?

Then the location would be payments/paypal.php or payments/stripe.php somewhere at bottom.
 
Back
Top