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

How to return donor points?

MxSoft

Leave Tibia, Live Life.
Joined
Dec 22, 2009
Messages
1,804
Solutions
1
Reaction score
44
Location
Mexico
Is there a way to return all the donor points wasted in the server-??
 
But if in gesior you can have a record of the points wasted per account, must be a way to return them to the accounts.......dont you think so?
 
If the script has been deleting records from table z_ots_comunication, it's not possible. It would've been possible if you fixed z_shop_history_item on time. :(
 
Last edited:
I meant z_shop_history_item, but offer_id is set to 0 for all rows
so it's not possible to see exactly what offer was it

now that you showed that picture it seems to be possible to return points, might look into it
 
Last edited:
Try:
SQL:
UPDATE accounts SET premium_points = premium_points + (SELECT SUM(price) FROM z_shop_history_item WHERE z_shop_history_item.to_account = accounts.id) WHERE (SELECT COUNT(id) FROM z_shop_history_item WHERE z_shop_history_item.to_account = accounts.id LIMIT 1) > 0;
If everything worked, you can delete all entries if you want:
SQL:
TRUNCATE TABLE z_shop_history_item;
 
Try:
SQL:
UPDATE accounts SET premium_points = premium_points + (SELECT SUM(price) FROM z_shop_history_item WHERE z_shop_history_item.to_account = accounts.id) WHERE (SELECT COUNT(id) FROM z_shop_history_item WHERE z_shop_history_item.to_account = accounts.id LIMIT 1) > 0;
If everything worked, you can delete all entries if you want:
SQL:
TRUNCATE TABLE z_shop_history_item;

Ok cyko thx i will try it in a couple of days, i need to recompile a server first, i will PM you if this works
 
Back
Top