• 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

Any solution?
Post automatically merged:

I copied all files and I can see this plugin on the list of plugins. I can't import .zip file by admin panel because I got that info:
Code:
 This plugin requires php extension: curl to be installed.

Ok I find solution by myself:

If You use UniServer find that files:
php_production.ini
php_development.ini


and make that changes:

INI:
;extension=php_curl.dll

to

INI:
extension=php_curl.dll

Simply just delete the comment ";" to activate curl work fine.

Can You install all plugins without the problems ;)
 
Last edited:
I already installed the plugin on my myaac page but when buying an item, it is not delivered within the client.
and add into my globalevents
Lua:
<globalevent name="gesior-shop-system" type="startup" script="gesior-shop-system.lua" />
 
I already installed the plugin on my myaac page but when buying an item, it is not delivered within the client.
and add into my globalevents
Lua:
<globalevent name="gesior-shop-system" type="startup" script="gesior-shop-system.lua" />


try this:
Lua:
<globalevent name="gesior-shop-system" interval="30000" script="gesior-shop-system.lua" />

I think You need just add interval time ;)
 
try this:
Lua:
<globalevent name="gesior-shop-system" interval="30000" script="gesior-shop-system.lua" />

I think You need just add interval time ;)
Edited: Yeah is working!
Could you tell me why I do not receive a message in the game?
 
Last edited:
Hi, its me again, amm i am having trouble to understand how put updated outfits/mounts in my gifts pages, the items was easy but with the outfits is kinda hard, can someone help me? Btw i want to add images of version12+ outfits
 
Hi, its me again, amm i am having trouble to understand how put updated outfits/mounts in my gifts pages, the items was easy but with the outfits is kinda hard, can someone help me? Btw i want to add images of version12+ outfits

add your shop offers from myaac admin panel, you should be able to add them easily just with the outfit id (in outfits.xml)
 


I am using the myaac-master website. And I have the error:
This plugin requires php extension: curl to be installed.

Any solution?
Post automatically merged:



Ok I find solution by myself:

If You use UniServer find that files:
php_production.ini
php_development.ini


and make that changes:

INI:
;extension=php_curl.dll

to

INI:
extension=php_curl.dll

Simply just delete the comment ";" to activate curl work fine.

Can You install all plugins without the problems ;)

I couldn't find that.



@Edit


I solved the problem. I just installed it using the command:

sudo apt-get install php5-curl


And then I restarted apache using the command:
sudo service apache2 restart
 
Last edited:
I have a problem. When I add a new item to the site. As an example: Thunder Hammer which is Item ID: 3309 on my server (Nostalrius 7.72), the photo of the item is random and ugly. Obviously the system and my server IDs are different. But how do I fix this? Where do I change the images? Where do I find these photos that are displayed on the website when I add a new item? can anybody help me? Thankful!

@Edit:

Look:

ON: /var/www/html/system/pages gifts.php

foreach($offers_fetch as $id => $item) {
$item_type = $item['type'];
if($item_type == "item" || $item_type == "container") {
$item_id = isset($item['item_id']) ? $item['item_id'] : null;
if ($item_id) {
$offers_fetch[$id]['item_img'] = getItemImage($item_id);

I tried to do that:

$offers_fetch[$id]['/mysite/site/html/itemshop/'] = getItemImage($item_id);

But it did not work. Extract the images from the Tibia 7.72 Client and change the ids I need for the shop, but without success. When changing this on the website the items in the shop just disappear.




I tried this because I saw a tutorial that said:

I tried to go in /config/config.php and go in line that it says:
PHP:
$config['site']['item_images_url'] = 'http://item-images.ots.me/1030/';

Can I replace this for:
PHP:
$config['site']['item_images_url'] = '/home/items/';
And inside the folder items there are the pictures of items.

Can someone help me? I'll keep trying and post if I get a solution.
 
Last edited:
I haven't solved my last question yet. If I can, post it here. I'm also looking for a way to change the facebook button. It's not the way I think about just getting the code from my page and putting it somewhere is it? I think it's something related to javascript.
 
This is Shop System taken from Gesior, converted to MyAAC.

Configuration you can find in files: system/pages/points.php and system/pay/*

Demo: Gifts - MyAAC Demo (http://demo.my-aac.org/gifts)

Installation:

Go to Admin Panel, select 'Plugins', and then select gesior-shop-system.zip and click upload. Thats all!

Enable:
Paste in config.local.php this:
Code:
$config['gifts_system'] = true;

Done! MySQL schema will be automatically imported when you first time visit points/gifts page.

Download: slawkens/myaac-gesior-shop-system

Pagseguro and Paypal
Do you deliver points automatically?
 
I have a problem. When I add a new item to the site. As an example: Thunder Hammer which is Item ID: 3309 on my server (Nostalrius 7.72), the photo of the item is random and ugly. Obviously the system and my server IDs are different. But how do I fix this? Where do I change the images? Where do I find these photos that are displayed on the website when I add a new item? can anybody help me? Thankful!

@Edit:

Look:

ON: /var/www/html/system/pages gifts.php

foreach($offers_fetch as $id => $item) {
$item_type = $item['type'];
if($item_type == "item" || $item_type == "container") {
$item_id = isset($item['item_id']) ? $item['item_id'] : null;
if ($item_id) {
$offers_fetch[$id]['item_img'] = getItemImage($item_id);

I tried to do that:

$offers_fetch[$id]['/mysite/site/html/itemshop/'] = getItemImage($item_id);

But it did not work. Extract the images from the Tibia 7.72 Client and change the ids I need for the shop, but without success. When changing this on the website the items in the shop just disappear.




I tried this because I saw a tutorial that said:


I tried to go in /config/config.php and go in line that it says:
PHP:
$config['site']['item_images_url'] = 'http://item-images.ots.me/1030/';

Can I replace this for:
PHP:
$config['site']['item_images_url'] = '/home/items/';
And inside the folder items there are the pictures of items.

Can someone help me? I'll keep trying and post if I get a solution.
if your items folder is located under (example): localhost/images then you need to put in config.local.php

Code:
$config['item_images_url'] = '/items/';
 
I was performing tests and removing the account that had the privileges to access the administration part. Is there a way to recover without affecting a database?

"his account has no admin privileges."
 
I was performing tests and removing the account that had the privileges to access the administration part. Is there a way to recover without affecting a database?

"his account has no admin privileges."

In database - accounts table, set web_flags to 3.
 
Hello. Can you help me with a question? The way it is configured it looks like the player is making a purchase. I think the correct thing would be that it was a donation, as is my Paypal. So I went to Pagseguro and generated a Donation link that would be:

Even so when clicking on donation the player is taken to a BUY page. Why do I want it to be a donation? It seems that the points are not going to the accounts of the players who donate with Pagseguro. In paypal, points fall. I believe it is because it is like "buying" and not "giving". I also believe that I have to wait 14 days for the money to be released to me on Pagseguro. I still don't know if at the end of those days the points will be delivered, and that is my biggest concern.


I literally don't understand anything about it and would like some kind of instruction if possible. Sorry about anything and thank you.



Lua:
$config['pagseguro'] = array(
    'enabled' => true,
    'email' => '[email protected]',
    'environment' => 'production', // production, sandbox
    'token' => array(
        'production' => 'MyTokenPagseguro',
        'sandbox' => 'MyTokenPagseguro',
    ),
    'urlRedirect' => 'https://pag.ae/7WxgjmA6a', // default should be good
    'productName' => 'Points', // or Coins
    'productValue' => 1.00,
    'doublePoints' => false, // should points be doubled? for example: for 5 points donated you become 10.
    'options' => array( // cost => points/coins
        '5,00' => 5,
        '10,00' => 10,
        '20,00' => 30,
        '40,00' => 60,
        '60,00' => 100,
    )
);
 
Where did you write that? In what console?
Post automatically merged:

I am using the myaac-master website. And I have the error:
This plugin requires php extension: curl to be installed.



I couldn't find that.



@Edit


I solved the problem. I just installed it using the command:

sudo apt-get install php5-curl


And then I restarted apache using the command:
sudo service apache2 restart
Where did you write this? In what console?
 
Where did you write that? In what console?
Post automatically merged:


Where did you write this? In what console?
The terminal on your server. if you are hosting it on a linux based system.
 
Back
Top