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

[MyAAC][Plugin] Gesior Shop System

For people that are trying to get other categories to work:
line 172 @ system/pages/gifts.php
Lua:
if($item_type == "item" || $item_type == "armor" || $item_type == "container" || $item_type == "equipment" || $item_type == "knight" || $item_type == "sorcerer" || $item_type == "druid" || $item_type == "paladin" || $item_type == "decoration") {
line 64 @ /system/templates/gesior-shop-system/gifts.html.twig
HTML:
{% if offer.type == "item" or offer.type == "container" or offer.type == "equipment" or offer.type == "knight" or offer.type == "sorcerer" or offer.type == "druid" or offer.type == "paladin" or offer.type == "decoration" %}
line 59 @ system/libs/shop-system.php - add last line default:..
Code:
            case 'pacc':
                $offer = array_merge($offer, array('days' => $offer_count1));
                break;

            case 'item':
                $offer = array_merge($offer, array('item_id' => $offer_itemid1, 'item_count' => $offer_count1));
                break;

            case 'container':
                $offer = array_merge($offer, array('item_id' => $offer_itemid1, 'item_count' => $offer_count1, 'container_id' => $offer_itemid2, 'container_count' => $offer_count2));
                break;

            case 'addon':
                $offer = array_merge($offer, array('look_female' => $offer_itemid1, 'addons_female' => $offer_count1, 'look_male' => $offer_itemid2, 'addons_male' => $offer_count2));
                break;

            case 'mount':
                $offer = array_merge($offer, array('mount_id' => $offer_itemid1));
                break;

            default:
                $offer = array_merge($offer, array('item_id' => $offer_itemid1, 'item_count' => $offer_count1));

For people with unsupported offer type
Line 150~ @ system/libs/shop-system.php
add case for each additional category
Code:
case 'item':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['item_id']).', '.$db->quote($buy_offer['item_count']).', 0, 0, \'item\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;

                case 'equipment':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['item_id']).', '.$db->quote($buy_offer['item_count']).', 0, 0, \'item\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;
                
                case 'knight':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['item_id']).', '.$db->quote($buy_offer['item_count']).', 0, 0, \'item\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;

                case 'sorcerer':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['item_id']).', '.$db->quote($buy_offer['item_count']).', 0, 0, \'item\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;

                case 'druid':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['item_id']).', '.$db->quote($buy_offer['item_count']).', 0, 0, \'item\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;

                case 'paladin':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['item_id']).', '.$db->quote($buy_offer['item_count']).', 0, 0, \'item\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;
                    
                case 'decoration':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['item_id']).', '.$db->quote($buy_offer['item_count']).', 0, 0, \'item\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;

                case 'addon':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['look_female']).', '.$db->quote($buy_offer['look_male']).', '.$db->quote($buy_offer['addons_female']).', '.$db->quote($buy_offer['addons_male']).', \'addon\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;

                case 'mount':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['mount_id']).', 0, 0, 0, \'mount\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;

                case 'container':
                    $query = 'INSERT INTO '.$db->tableName('z_ots_comunication').' (id, name, type, action, param1, param2, param3, param4, param5, param6, param7, delete_it) VALUES (NULL, '.$db->quote($buy_player->getName()).', \'login\', \'give_item\', '.$db->quote($buy_offer['item_id']).', '.$db->quote($buy_offer['item_count']).', '.$db->quote($buy_offer['container_id']).', '.$db->quote($buy_offer['container_count']).', \'container\', '.$db->quote($buy_offer['name']).', \'\', \'1\');';
                    break;

                default:
                    $errors[] = 'Unsupported offer type.';

I tried alot of different things, but I think these are the ones that are necessary. If you have custom items, you must add your item_id.gif (xxxx.gif) in images/items folder
 
TFS 0.3.6 8.60 - item does not deliver to player. Any idea why?
I am able to purchase an item for points on website.
 
what do you mean? please help me, i can send money and have changed my mail but doesnt get item :S
In your HTdocs you will have a Lua file "gesior-shop-system"

Open that up you have instructions in there, just need to add that script into globalevents
 
There was a problem extracting the zip file to the base directory

I can't even know where to start to solve the problem. Does anyone know the reason for the error? How can I fix it? I've used it before and haven't had this problem, but I'm on a new linux machine..

I tried uploading a plugin template to test it, and it was fine.
 
In your HTdocs you will have a Lua file "gesior-shop-system"

Open that up you have instructions in there, just need to add that script into globalevents
Hello. Thank for tip! Now script work but i still in tfs.exe have info > Shopsystem, added 0 items. Still waiting with 3 items. (have 3 items bought in premium shop on server page but have status "Not realized yet.")

Whats going on?


----------EDIT----------
If anyone have this problem, solved is low cap on target character.
 

Attachments

Last edited:
If i change name in my database
iQQUCA9.png
 
I have problem i admin panel, when i try go to Gifts category i got "The requested URL /admin/?p=gifts was not found on this server."
On page it working, players can buy items/points, but i can't do anything in admin panel
 
I have problem i admin panel, when i try go to Gifts category i got "The requested URL /admin/?p=gifts was not found on this server."
On page it working, players can buy items/points, but i can't do anything in admin panel

Move file system/pages/admin/gifts.php

To
admin/pages folder
 
1) how can i delete strings and numbers of item in gifts?

2) and question nr. 2, i know how add item to shop, but how can i add changenickname, unban? It doesn't work when i try.
Please help ; /
 
Last edited:
1) how can i delete strings and numbers of item in gifts?

2) and question nr. 2, i know how add item to shop, but how can i add changenickname, unban? It doesn't work when i try.
Please help ; /

1) don't understand
2) changenickname is not in shop, you can find it in accounts page now:
config.php
Code:
'account_change_character_name' => false, // can user change their character name for premium points?
'account_change_character_name_points' => 30, // cost of name change

unban is not there, you need to add unban rune to your server, then sell it in shop.
 
1) don't understand
2) changenickname is not in shop, you can find it in accounts page now:
config.php
Code:
'account_change_character_name' => false, // can user change their character name for premium points?
'account_change_character_name_points' => 30, // cost of name change

unban is not there, you need to add unban rune to your server, then sell it in shop.
1639013664156.png
Thanks! In first question i was thinking about that strings above ;D
 
Hi slaw,
just wanted to say that im glad I switched from other acc to this one. Your acc maker is prolly the easiest one to setup for a new person, even someone who doesnt know how it works can do most things by himself. Had some minor problems here and there but solutions are in this topic. Thanks!
 
Hi slaw,
just wanted to say that im glad I switched from other acc to this one. Your acc maker is prolly the easiest one to setup for a new person, even someone who doesnt know how it works can do most things by himself. Had some minor problems here and there but solutions are in this topic. Thanks!

You are welcome.

Hi!
Post automatically merged:

View attachment 63884
Thanks! In first question i was thinking about that strings above ;D

You have var_dump somewhere in code, remove it.
 
I will repeat myself guys - the latest version of ALL plugins for MyAAC can be found here: Index of /plugins (https://my-aac.org/plugins)

Link is also in my signature.

The version of shop system included in this thread is v2.3, this is not the latest one, because the latest one is v2.4, which can be downloaded from the link I provided.

Regards!

And Merry Christmas to everyone! 🎁
 
Back
Top