• 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

curlix.png
during installation I get an error saying that I don't have curl installed and I have this package installed.
Please Help
 
Lua Script Error: [GlobalEvent Interface]
data/globalevents/scripts/gesior-shop-system.lua:eek:nThink
data/lib/compat/compat.lua:1275: attempt to call method 'getUniqueId' (a nil value)
stack traceback:
[C]: in function 'getUniqueId'
data/lib/compat/compat.lua:1275: in function 'doCreateItemEx'
data/globalevents/scripts/gesior-shop-system.lua:221: in function <data/globalevents/scripts/gesior-shop-system.lua:155>
 
Why in acc 0.7.11 i can't edit shop system?
Edit:
OK i can in sql :)
 
Last edited:
@slawkens
Do you have instruction how to install myaac-gesior-shop-system-v2.2.zip in my engine (1.3) of course i copy myacc-gesior-shop.lua to globalevents/script and how register in globalevents.xml. ?

EDIT"
Ok i find this script!
It Works! :D
 
Last edited:
Hello guys!
I'm using the version 0.8.2-dev of Myacc and in getting an error when i'm trying to upload the plugin of gesior-shop-system.
I already tryied all versions of github, since v2.2 to 1.0 o think.

Someone can help to track the reason of the error?
Thanks!
The error:
"There was a problem with the upload. Please try again."
1588052437138.png
 
Code:
This plugin requires php extension: curl to be installed.
i get that aswell anyone can help?
 
There's a little issue, I'm testing buying items on shop and I can see players can recive their purchase but at shop history table still marks as "not realized yet." What am I doing wrong?
1588752975134.png
 
Last edited:
have you added the gesior-shop-system file to globalevents? and edited globalevents.xml?
Yep, sorry for not to mention it... but just as I said, player are reciving their purchases in-game... the only one issue is that state "not realized yet" from table doesn't change
 
Yep, sorry for not to mention it... but just as I said, player are reciving their purchases in-game... the only one issue is that state "not realized yet" from table doesn't change
Find in shop web files, tables that show on site. In database it use shop_history, and in web files is shop_history_item or something like that..
 
Find in shop web files, tables that show on site. In database it use shop_history, and in web files is shop_history_item or something like that..
I think here's the problem but I can't guess what is it... it's "show-history.html.twig" file
1588809335999.png


{% for item_received in items_history if items_history is not empty %}
<tr bgcolor="{{ config.lightborder }}">
<td>
<span style="color: {% if logged_id == item_received['to_account'] %}green{% else %}red{% endif %}">{{ item_received.to_name }}</span>
</td>
<td>
{% if logged_id == item_received.from_account %}
<i>Your account</i>
{% else %}
{{ item_received.from_nick }}
{% endif %}
</td>
<td>
{{ item_received.item_name.name }}
</td>
<td>
{{ item_received.trans_start|date("j F Y, H:i:s") }}
</td>
<td>
{% if item_received.trans_real and item_received.trans_real > 0 %}
{{ item_received.trans_real|date("j F Y, H:i:s") }}
{% else %}
<span style="color: red">Not realized yet.</span>
{% endif %}
</td>
</tr>
 
There's a little issue, I'm testing buying items on shop and I can see players can recive their purchase but at shop history table still marks as "not realized yet." What am I doing wrong?
View attachment 45239

Did it change in database in z_shop_history table? If so, it might be a problem with Twig template you posted.
 
Is this piece of code executing and updating correctly?
nope, it isnt... it only updates on 'z_shop_history_item' table not on z_shop_history

Did it change in database in z_shop_history table? If so, it might be a problem with Twig template you posted.
That's what I think, but have no idea how to fix...

Is this piece of code executing and updating correctly?
Here I found a posibly solution

gesior-shop-system.lua:Line 240


changed
Code:
doQuery("UPDATE `z_shop_history` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE comunication_id = " .. id .. ";")

for
Code:
doQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";")

1588819671823.png
 
Last edited:
nope, it isnt... it only updates on 'z_shop_history_item' table not on z_shop_history


That's what I think, but have no idea how to fix...


Here I found a posibly solution

gesior-shop-system.lua:Line 240


changed
Code:
doQuery("UPDATE `z_shop_history` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE comunication_id = " .. id .. ";")

for
Code:
doQuery("UPDATE `z_shop_history_item` SET `trans_state`='realized', `trans_real`=" .. os.time() .. " WHERE id = " .. id .. ";")

View attachment 45272
thats what i was talking about
 
Lol ure right, sorry my english is very bad :(

im using myaac 0.8.1
I meant the latest version of the plugin as it was renamed a number of versions ago according to the changelog.
Guessing you installed it in the older version and the database never got renamed.
 
Back
Top