• 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] login.php for Tibia 11


Im using this plugin for 12+, yet, when I login in the client 12 from OTServ Global It shows that Im free account. I made a test and edited premdays and lastday at myphp but still shows that it's free account in the client and in the account management.

It's possible to make the premdays decay using the 12+ version?

@Edit, Solved - Years ago the changes were made in login.php, but now, I find out that you need to edit this in data/modules/scripts/gamestore/init.lua
So, if you are having the same issue, go to this file and put like this:

function GameStore.processPremiumPurchase(player, offerId)
db.query("UPDATE accounts SET lastday = ".. os.time() .." WHERE id = " .. player:getAccountId())
player:addPremiumDays(offerId-3000)
 
Last edited:
Mine is like this, but still not working...


function GameStore.processPremiumPurchase(player, offerId)
player:addPremiumDays(offerId-3000)

-- Update Prey Data
for slot = CONST_PREY_SLOT_FIRST, CONST_PREY_SLOT_THIRD do
player:sendPreyData(slot)
end
end
 
Back
Top