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

Solved You cannot "see" other players level, voc etc...SOLVED!

snipermike13

/\/\1k3
Joined
May 11, 2010
Messages
158
Reaction score
1
Location
America
[08/06/2010 08:30:10] [Error - CreatureScript Interface]
[08/06/2010 08:30:10] data/creaturescripts/scripts/rep/repLook.lua:eek:nLook
[08/06/2010 08:30:10] Description:
[08/06/2010 08:30:10] data/lib/004-database.lua:60: [Result:getDataInt] Result not set!
[08/06/2010 08:30:10] stack traceback:
[08/06/2010 08:30:10] [C]: in function 'error'
[08/06/2010 08:30:10] data/lib/004-database.lua:60: in function 'getDataInt'
[08/06/2010 08:30:10] data/lib/050-function.lua:22: in function 'getRepPoints'
[08/06/2010 08:30:10] data/creaturescripts/scripts/rep/repLook.lua:4: in function <data/creaturescripts/scripts/rep/repLook.lua:1>


Rep+ for help! :)

function onLook(cid, thing, position, lookDistance)
if(isPlayer(thing.uid) == true) then
if(thing.uid == cid) then
doPlayerSendTextMessage(cid, 20, "You are "..getRepRank(getRepPoints(cid)).."")
else
doPlayerSendTextMessage(cid, 20, ""..getCreatureName(thing.uid).." is "..getRepRank(getRepPoints(thing.uid)).."")
end
return true
end
return true
end
 
Last edited:
huh that is from my rep system
it seems you did not read how to config feragon online

post data/lib/004-database.lua
 
yeah dude i just basically picked this server up adn started messing around lol. Works nicely other than the fact i am a noob and tossing shit everywhere ahaha

if(result == nil) then
print("> WARNING: Couldn't load database lib.")
return
end

Result = createClass(nil)
Result:setAttributes({
id = -1,
query = ""
})

function Result:getID()
return self.id
end

function Result:setID(_id)
self.id = _id
end

function Result:getQuery()
return self.query
end

function Result:setQuery(_query)
self.query = _query
end

function Result:create(_query)
self:setQuery(_query)
local _id = db.storeQuery(self:getQuery())
if(_id) then
self:setID(_id)
end

return self:getID()
end

function Result:getRows(free)
local free = free or false
if(self:getID() == -1) then
error("[Result:getRows] Result not set!")
end

local c = 0
repeat
c = c + 1
until not self:next()

local _query = self:getQuery()
self:free()
if(not free) then
self:create(_query)
end

return c
end

function Result:getDataInt(s)
if(self:getID() == -1) then
error("[Result:getDataInt] Result not set!")
end

return result.getDataInt(self:getID(), s)
end

function Result:getDataLong(s)
if(self:getID() == -1) then
error("[Result:getDataLong] Result not set!")
end

return result.getDataLong(self:getID(), s)
end

function Result:getDataString(s)
if(self:getID() == -1) then
error("[Result:getDataString] Result not set!")
end

return result.getDataString(self:getID(), s)
end

function Result:getDataStream(s)
if(self:getID() == -1) then
error("[Result:getDataStream] Result not set!")
end

return result.getDataStream(self:getID(), s)
end

function Result:next()
if(self:getID() == -1) then
error("[Result:next] Result not set!")
end

return result.next(self:getID())
end

function Result:free()
if(self:getID() == -1) then
error("[Result:free] Result not set!")
end

self:setQuery("")
local ret = result.free(self:getID())
self:setID(-1)
return ret
end

Result.numRows = Result.getRows
function db.getResult(query)
if(type(query) ~= 'string') then
return nil
end

local ret = Result:new()
ret:create(query)
return ret
end
 
replace with this one:
and when you post a .lua file use (ignore the dots)
[.lua][/.lua]

Lua:
if(result == nil) then
    print("> WARNING: Couldn't load database lib.")
    return
end

Result = createClass(nil)
Result:setAttributes({
    id = -1
})

function Result:getID()
    return self.id
end

function Result:setID(_id)
    self.id = _id
end

function Result:getQuery()
    return self.query
end

function Result:setQuery(_query)
    self.query = _query
end

function Result:create(_query)
    self:setQuery(_query)
    local _id = db.storeQuery(self:getQuery())
    if(_id) then
        self:setID(_id)
    end

    return self:getID()
end

function Result:getRows(free)
    if(self:getID() == -1) then
        error("[Result:getRows]: Result not set!")
    end

    local c = 0
    while true do
        if not self:next() then
            break
        end
        
        c = c + 1
    end

    if(free) then
        self:free()
    end

    return c
end

function Result:getDataInt(s)
    if(self:getID() == -1) then
        error("[Result:getDataInt]: Result not set!")
    end

    return result.getDataInt(self:getID(), s)
end

function Result:getDataLong(s)
    if(self:getID() == -1) then
        error("[Result:getDataLong]: Result not set!")
    end

    return result.getDataLong(self:getID(), s)
end

function Result:getDataString(s)
    if(self:getID() == -1) then
        error("[Result:getDataString]: Result not set!")
    end

    return result.getDataString(self:getID(), s)
end

function Result:getDataStream(s)
    if(self:getID() == -1) then
        error("[Result:getDataStream]: Result not set!")
    end

    return result.getDataStream(self:getID(), s)
end

function Result:next()
    if(self:getID() == -1) then
        error("[Result:next]: Result not set!")
    end

    return result.next(self:getID())
end

function Result:free()
    if(self:getID() == -1) then
        error("[Result:free]: Result not set!")
    end

    local ret = result.free(self:getID())
    self:setID(-1)
    return ret
end

Result.numRows = Result.getRows
function db.getResult(query)
    if(type(query) ~= 'string') then
        return nil
    end

    local res = Result:new()
    res:setID(db.storeQuery(query))
    return res
end
 
Last edited:
there must be a .xml file in mods folder
mods/repsystem.xml
delete that .xml file
 
Back
Top