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

GESIOR 2012 - Version 1.0.1 for 0.2.x, 0.3.6 and all 0.4

highscores DO NOT work !

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\highscores.php on line 87

foreach($skill as $skills)

foreach($skill as $skills)
foreach($skill as $skills)
foreach($skill as $skills)

this line is wrong, why ?

Wrong version, re-download the correct version for your tfs.
 
Only possible reason is that your Player class got in table $fields some fields (columns) that does not exist in database.
 
Only possible reason is that your Player class got in table $fields some fields (columns) that does not exist in database.
which fields?

and the next problem:

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\spells.php on line 20
Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\spells.php on line 55

http://wklej.org/id/1465260/
 
which fields?

and the next problem:

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\spells.php on line 20
Warning
: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\spells.php on line 55

http://wklej.org/id/1465260/

Check classes/player.php
But I stand by that you are using the wrong version, ex. 1.0 version with 0.4 since as Gesior said uses diffrent tables and columns.
 
which fields?

and the next problem:

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\spells.php on line 20
Warning
: Invalid argument supplied for foreach() in C:\xampp\htdocs\pages\spells.php on line 55

http://wklej.org/id/1465260/
I can't help you. Bugs that you report are from OLD acc. maker from 2009, this is thread for 2012 version and there is no 'spells' page anymore.
 
Code:
doPlayerSendMailByName(getCreatureName(cid), new_item, getPlayerTown(cid))
This part of code is sending a letter instead of sending item, why?

Code:
local lettersUsedToGenerateHash = "AaBbCcDdEeFfGgHhIiJjKkLlMmOoPpQqRrSsTtUuVvWwXxYyZz"
math.randomseed(os.time()) -- required!
function generateSerial()
    local newSerial = "!"
    for k = 1, 10 do
        local l = math.random(1, string.len(lettersUsedToGenerateHash))
        newSerial = newSerial .. string.sub(lettersUsedToGenerateHash, l, l)
    end
    local newSerialInt  = math.random(899999) + 100000 -- this will return always same lenght
    newSerial = newSerial .. "-" .. os.time() .. "-" .. newSerialInt
    -- length: ![10 letters]-[10 numbers (unix date)]-[6 numbers]
    -- length = 29 [always!]
    return newSerial
end

local function doPlayerAddDepotItems(cid, items, town)
    if (not isPlayer(cid)) then
        error("Player not found")
    end
    local town = town or getPlayerTown(cid)

    local attritemid = doCreateItemEx(2596, 1)
    for item, count in pairs(items) do
        if (type(item) == "number") then
            local thing = doAddContainerItem(attritemid, item, count)
            doItemSetAttribute(thing, "description", "This item belongs to " .. getPlayerName(cid) .. ".")
            doItemSetAttribute(thing, "owner", getPlayerGUID(cid))
            doItemSetAttribute(thing, "aid", getPlayerGUID(cid)+10000)
            doItemSetAttribute(thing, "serial", generateSerial())
        elseif (type(item) == "string") then
            if getItemIdByName(item) then
                local thing = doAddContainerItem(attritemid, item, count)
                doItemSetAttribute(thing, "description", "This item belongs to " .. getPlayerName(cid) .. ".")
                doItemSetAttribute(thing, "owner", getPlayerGUID(cid))
                doItemSetAttribute(thing, "aid", getPlayerGUID(cid)+10000)
                doItemSetAttribute(thing, "serial", generateSerial())
            end
        else
            error("Undefinied type of item name")
        end
    end

    return doPlayerSendMailByName(getCreatureName(cid), attritemid, getPlayerTown(cid))
end

function onThink(interval, lastExecution, thinkInterval)

    local result = db.getResult("SELECT * FROM shop_history WHERE `processed` = 0;")

        if(result:getID() ~= -1) then
            while(true) do
                cid = getCreatureByName(tostring(result:getDataString("player")))
                product = tonumber(result:getDataInt("product"))
                itemr = db.getResult("SELECT * FROM shop_offer WHERE `id` = "..product..";")
                    if isPlayer(cid) then
                        local id = tonumber(itemr:getDataInt("item"))
                        local tid = tonumber(result:getDataInt("id"))
                        local count = tonumber(itemr:getDataInt("count"))
                        local tipe = tonumber(itemr:getDataInt("type"))
                        local productn = tostring(itemr:getDataString("name"))
                            if isInArray({5,8},tipe) then
                                if isPlayer(cid) then
                                    local received = doPlayerAddDepotItems(cid, {[id]=count})
                                    if received then
                                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You received "..productn.." in depot of your hometown.")
                                        db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";")
                                        doPlayerSave(cid)
                                    else
                                        doPlayerSendTextMessage(cid,19, "Report to a gamemaster..")
                                    end
                                else
                                    doPlayerSendTextMessage(cid,19, "Report to a gamemaster.")
                                end
                            elseif isInArray({6,7},tipe) then
                                    if tipe == 6 then
                                        bcap = 8
                                        bid = 1987
                                    elseif tipe == 7 then
                                        bcap = 20
                                        bid = 1988
                                    end
                                    if isItemRune(id) then
                                        count = 1
                                    end
                                    if isPlayer(cid) then
                                        local bag = doCreateItemEx(bid, 1)
                                            for i = 1,bcap do
                                                doAddContainerItem(bag, id, count)
                                            end
                                        received = doPlayerAddItemEx(cid, bag, true)
                                        if received then
                                            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You received "..productn.." in depot of your hometown.")
                                            db.executeQuery("UPDATE `shop_history` SET `processed`='1' WHERE id = " .. tid .. ";")
                                            doPlayerSave(cid)
                                        else
                                            doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need a free slot on container to receive "..productn..".")
                                        end
                                    else
                                        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You need "..getItemWeightById(id, count).." of free capacity to receive "..productn..".")
                                    end
                            end
                    end
                itemr:free()
                if not(result:next()) then
                    break
                end
            end
            result:free()
        end
    return true
end
 
1-And how removed flags in higcore and characters?

2-How I can put green this text?
echo "<b>Welcome to the Beregond Shop. Now you have $user_premium_points premium points</b>.<br />";

3-in your script serverinfo work nice but times

How fix?

thanks you
Hellow can fixed this? :)
 
Friend as I place the window para supply store and purchase items without selling the window the rest of the excellent shopping guide I alone I run this foul
 
STEP 2
Check database connection
If you don't see any errors press link to STEP 3 - Add tables and columns to DB. If you see some errors it mean server has wrong configuration. Check FAQ or ask author of acc. maker.
Error occured!
Error ID:
More info: CANNOT CONNECT TO DATABASE: could not find driver

File: C:\xampp\htdocs\classes/database_mysql.php Line: 22
File: C:\xampp\htdocs/install.php Line: 271
 
STEP 2
Check database connection
If you don't see any errors press link to STEP 3 - Add tables and columns to DB. If you see some errors it mean server has wrong configuration. Check FAQ or ask author of acc. maker.
Error occured!
Error ID:
More info: CANNOT CONNECT TO DATABASE: could not find driver

File: C:\xampp\htdocs\classes/database_mysql.php Line: 22
File: C:\xampp\htdocs/install.php Line: 271
You try to use database MySQL in PHP, but your version of PHP doesn't have MySQL library.
If it's on windows: WEIRD (install other webserver?)
If it's on linux: apt-get install php5-mysql
and restart webserver (or restart dedic if you dont know how to restart webserver).
 
That same problem like higher, problem with connet to db.

Error occured!
Error ID:
More info: CANNOT CONNECT TO DATABASE: could not find driver

File: /usr/local/www/apache22/data/primeots/classes/database_mysql.php Line: 22
File: /usr/local/www/apache22/data/primeots/install.php Line: 229

i have installed php5 with extensions, and with mysql(5.4.30)... i don't know where is a problem. Can You help?
 
That same problem like higher, problem with connet to db.

Error occured!
Error ID:
More info: CANNOT CONNECT TO DATABASE: could not find driver

File: /usr/local/www/apache22/data/primeots/classes/database_mysql.php Line: 22
File: /usr/local/www/apache22/data/primeots/install.php Line: 229

i have installed php5 with extensions, and with mysql(5.4.30)... i don't know where is a problem. Can You help?


A phpmyadmina masz zainstalowanego?
Działa?
 
Back
Top