• 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

Can't edit my post.. so I'm posting again.


Check in your database (phpmyadmin) in table 'z_ots_comunication' look for wrong item ids in param3 and param1 (in your case most probably param3 is wrong item id). You need to modify it to correct id or remove.

This will fix your errors in console.
Thanks it worked !
 
I recently found there have been more things to be corrected about PayPal IPN. But now, we're sure, it's working!

This plugin is out of beta now! PayPal works 100%!

Wanna to have it? Download now!

slawkens/myaac-gesior-shop-system
 
Please help. Error console:
Code:
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/gesior-shop-system.lua:onThink
data/globalevents/scripts/gesior-shop-system.lua:219: attempt to call global 'doCreateItemEx' (a nil value)
stack traceback:
        [C]: in function 'doCreateItemEx'
        data/globalevents/scripts/gesior-shop-system.lua:219: in function <data/globalevents/scripts/gesior-shop-system.lua:153>
[Error - GlobalEvents::think] Failed to execute event: gesior-shop-system

Update new problem, I download new Gesior v.2 and can't uplaod to MyACC.

There was a problem with extracting zip archive.

Update new problem, I download new Gesior v.2 and can't uplaod to MyACC.

There was a problem with extracting zip archive.
Ok this done. I must reinstall MyAcc.

Now only
Please help. Error console:
Code:
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/gesior-shop-system.lua:onThink
data/globalevents/scripts/gesior-shop-system.lua:219: attempt to call global 'doCreateItemEx' (a nil value)
stack traceback:
        [C]: in function 'doCreateItemEx'
        data/globalevents/scripts/gesior-shop-system.lua:219: in function <data/globalevents/scripts/gesior-shop-system.lua:153>
[Error - GlobalEvents::think] Failed to execute event: gesior-shop-system
 
Last edited by a moderator:
Last edited by a moderator:
Please help. Error console:
Code:
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/gesior-shop-system.lua:onThink
data/globalevents/scripts/gesior-shop-system.lua:219: attempt to call global 'doCreateItemEx' (a nil value)
stack traceback:
        [C]: in function 'doCreateItemEx'
        data/globalevents/scripts/gesior-shop-system.lua:219: in function <data/globalevents/scripts/gesior-shop-system.lua:153>
[Error - GlobalEvents::think] Failed to execute event: gesior-shop-system

@Dvax delete everything from table "z_ots_comunication" .. i had the similar problem and make sure your current file is updated!
 
@Dvax delete everything from table "z_ots_comunication" .. i had the similar problem and make sure your current file is updated!
Not work :( Now i try add compat.lua

You need to add this function at the end of your data/lib/compat/compat.lua

Code:
function doCreateItemEx(itemid, count)
local item = Game.createItem(itemid, count)
if item then
return item:getUniqueId()
end
return false
end

Like it is here in TFS: otland/forgottenserver

Or use this script (it has been fixed my be here): https://raw.githubusercontent.com/slawkens/myaac-gesior-shop-system/master/gesior-shop-system.lua

Thanks men, I add function and all working :)

@slawkens
Can you help my one more :)?
because i can't add Tibia coin in Shop now :(
 
Last edited by a moderator:
Visit your_domain/?subtopic=gifts when being logged as admin (the account which you used on myaac install) - there should be a form that you can fill out to add new offers/items.
 
@slawkens with ur current updates, i managed to config my own style the shop offer :D

cmho5k7.png

@Dvax need help? in last case i suggest you do your item list in a [.SQL] file and then import to ur db and if you pretend to have TABS like mine you have to check each config bcus each tab = offer type
 
@slawkens
I installed this plugin, I would like to know if by doing a check of the VIPS items that do not have a SERIAL KEY (maybe the script could do the check), that is; those that did not have the KEY were cloned (did not leave the SHOP), and then by SQL command doing a globalevent I would be able to remove the cloned ones
 

Items images are automatically generated by the script. What is item id for that item? Are you sure its correct id and it exists?

@slawkens
I installed this plugin, I would like to know if by doing a check of the VIPS items that do not have a SERIAL KEY (maybe the script could do the check), that is; those that did not have the KEY were cloned (did not leave the SHOP), and then by SQL command doing a globalevent I would be able to remove the cloned ones

Sorry, but I don't understand what do you mean.
 
It works only for standard premium points or also with tibia coins and store ingame?

It works for both. When you want to use the in-game store, then you just change this directive:
Code:
$config['donation_type'] = 'points'; // what should be added to player account? points/coins

To 'coins', then tibia coins will be added.

Additionally, you can remove gifts.php, as you won't need that - the in-game store can be used instead.
 
Hello guys. I have a problem :/ I've downloaded and configured myaac-gesior-shop-system-v2.0. Everything is fine, but I have a problem with paypal. I've set email etc in config file. Then on page, I can send donation. Donations are sending but when I back to the page, I don't get any points. What's wrong?
 
Back
Top