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

[bitaac][Laravel 5.3] The AAC built for oldschool community

Did anyone in this thread download bitaac? Anyone still got it?
 
Started a adminpanel.. :rolleyes:

BV2p8mE.png
evgesqo.png
EDEG8aS.png
Djx-pmT.png
 
Is it compatible with TFS 1.2? - Would like to use it :p
It is. Would not recommend use it quite yet until I do some type of stable release.
I will most likely do a 1.0 beta release within this week, or next.

By the way, it would be great if someone wanna do the LUA part for bitaac store. :oops:
 
It is. Would not recommend use it quite yet until I do some type of stable release.
I will most likely do a 1.0 beta release within this week, or next.

By the way, it would be great if someone wanna do the LUA part for bitaac store. :oops:
I may can help you with that :)
 
I just need a picture of the database. Where you store the shop orders.
Table name is __bitaac_store_orders, the columns is account_id(INT 11), player_id(INT 11), item_id(INT 11) and claimed(INT 1)

account_id will most likely be removed though. Thanks! :)
 
Table name is __bitaac_store_orders, the columns is account_id(INT 11), player_id(INT 11), item_id(INT 11) and claimed(INT 1)

account_id will most likely be removed though. Thanks! :)

This is a fast sketch, not tested. It's not depended on the account_id, but on the player_id. But i included it, so it wont do any weird things Until it get removed.
Code:
function onThink(interval)
    local players = Game.getPlayers()
    if #players == 0 then -- 0 players online, no need to execute the script
        return true
    end

    for _, player in ipairs(players) do
        local query = db.storeQuery('SELECT `account_id`, `player_id`, `item_id`, `item_count`, `claimed`, FROM `__bitaac_store_orders` WHERE `player_id` = '.. player:getGuid() ..' LIMIT 1;')
        if query then
            local accountId = result.getNumber(query, 'account_id')
            local playerId = result.getNumber(query, 'player_id')
            local itemId = result.getNumber(query, 'item_id')
            local itemCount = result.getNumber(query, 'item_count')
            local claimed = result.getNumber(query, 'claimed')
            result.free(query)

            if claimed ~= 1 then
                player:getInbox():addItem(itemId, itemCount or 1, false, 1)
                player:sendTextMessage(MESSAGE_INFO_DESCR, ("Congratulations! You have received %dx %s!"):format(itemCount, ItemType(itemId):getName()))
                db.query("UPDATE `__bitaac_store_orders` SET `claimed` = `1' WHERE `player_id` = " .. player:getGuid())
            end
        end
    end

    return true
end
 
This is a fast sketch, not tested. It's not depended on the account_id, but on the player_id. But i included it, so it wont do any weird things Until it get removed.
Code:
function onThink(interval)
    local players = Game.getPlayers()
    if #players == 0 then -- 0 players online, no need to execute the script
        return true
    end

    for _, player in ipairs(players) do
        local query = db.storeQuery('SELECT `account_id`, `player_id`, `item_id`, `item_count`, `claimed`, FROM `__bitaac_store_orders` WHERE `player_id` = '.. player:getGuid() ..' LIMIT 1;')
        if query then
            local accountId = result.getNumber(query, 'account_id')
            local playerId = result.getNumber(query, 'player_id')
            local itemId = result.getNumber(query, 'item_id')
            local itemCount = result.getNumber(query, 'item_count')
            local claimed = result.getNumber(query, 'claimed')
            result.free(query)

            if claimed ~= 1 then
                player:getInbox():addItem(itemId, itemCount or 1, false, 1)
                player:sendTextMessage(MESSAGE_INFO_DESCR, ("Congratulations! You have received %dx %s!"):format(itemCount, ItemType(itemId):getName()))
                db.query("UPDATE `__bitaac_store_orders` SET `claimed` = `1' WHERE `player_id` = " .. player:getGuid())
            end
        end
    end

    return true
end
Perfect! Thanks =)
 
Have been working on the installer, it will be CLI based at beginning. Probably making other solutions later.

Code:
bitaac requirements // Check if bitaac requirements are satisfied.
biaac new <name>  // Install a new copy of bitaac at given folder.
1_RlVzF.png
 
Have been working on the installer, it will be CLI based at beginning. Probably making other solutions later.

Code:
bitaac requirements // Check if bitaac requirements are satisfied.
biaac new <name>  // Install a new copy of bitaac at given folder.
1_RlVzF.png
Great :) Will make it people easier to get it working
 
Back
Top