Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
I need to return the total table
tabble = {
["minotaur"] = {exp = 1000},
["globin"] = {exp = 2000},
["rotworm"] = {exp = 4000}
}
total: 3 ^
but if use '#tabble' returns 0
one way is as follows:
tabble = {
["minotaur"] = {exp = 1000},
["globin"] = {exp = 2000}...
lib/032-position.lua add:
function Position(x, y, z, stackpos)
local position = {x = 0, y = 0, z = 0}
if(isNumeric(x .. y .. z)) then
position = {x = x, y = y, z = z}
if(isNumeric(stackpos)) then
position.stackpos =...
For trade:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
local talkState = {}
function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)...
not need to use 'for'
function onLogin(cid)
local x = {
[1] = 121, -- sorc
[2] = 122, -- druid
[3] = 123 -- paladin
}
if (not x[getPlayerVocation(cid)]) then return true end
doSetCreatureOutfit(cid, {lookType = x[getPlayerVocation(cid)]}, -1)
return true
end
function onLogin(cid)
local x =...
function onSay(cid, words, param, channel)
local str,count = "",0
for _, cid in ipairs(getPlayersOnline()) do
if getPlayerAccess(cid) < 3 then
count = count + 1
str = str.."".. (str == "" and "" or ",") ..""..getPlayerName(cid).."["..getPlayerLevel(cid).."]"...
It's because your server is MySQL, but we will solve this ...
Change this line:
local query = db.getResult("SELECT `player_id`, `value` FROM `player_storage` WHERE `key` = "..value.." ORDER BY cast(value as INTEGER) DESC;")
for this:
local query = db.getResult("SELECT `player_id`, `value`...