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!
function onKill(creature, target)
local player = Player(creature)
local frags = player:getStorageValue(356086)
if target:isPlayer() then
player:setStorageValue(356086, player:getStorageValue(356086) + 1)
if(frags >= 5) then
print(test)...
Hi,
I'm trying to put in this code some more unsuccessful changes.
I would like to put it for the exp to be divided among everyone and not that everyone gets the same exp
and the player who had a very big level difference does not receive exp
function onKill(cid, target, lastHit)
local...
local function removeNpc(name)
local guy = Npc(name)
if guy and guy:isNpc() then
guy:remove()
end
end
local npctest =
Game.createNpc("test", Position(32464, 32482, 7))
Game.createNpc("test", Position(32464, 32482, 7))
Game.createNpc("test", Position(32464, 32482, 7))...
I'm trying to create something for a boss that the longer the player stays in his room the more damage he will suffer.
and when the player leaves the room the damage returns to the beginning of weak damage.
I created a pillar that uses it to rotate I'm using the decay function is working the problem is that sometimes the pillar starts to rotate very fast as if the decay had a shorter time
local transformTo = {
[36309] = 36310,
[36310] = 36311,
[36311] = 36312,
[36312] = 36309
}...
function checkAreaForItem(pos, range, item)
local from = {x=pos.x-range, y=pos.y-range, z=pos.z}
local to = {x=pos.x+range, y=pos.y+range, z=pos.z}
for z = from.z, to.z do
for y = from.y, to.y do
for x = from.x, to.x do
local t = Tile(Position(x...
function onLogin(cid)
local g = getPlayerGuildId(cid)
if g ~= 0 then
local n = 1
for _, pid in ipairs(getPlayersOnline()) do
if getPlayerGuildId(pid) == g then
n = n + 1
if n == 5 then
doPlayerSetRate(pid...
<flag skull="black"/>
[Warning - Monsters::loadMonster] Unknown flag attribute: skull.
<monster name="Amazon" nameDescription="an amazon" race="blood" experience="60" speed="180" manacost="390" skull="SKULL_YELLOW">
I tested both methods to no avail
edit
I noticed now that the skull is...
function GameStore.processOutfitPurchase(player, offerSexIdTable, addon)
local looktype
local _addon = addon and addon or 0
if player:getSex() == PLAYERSEX_MALE then
looktype = offerSexIdTable.male
elseif player:getSex() == PLAYERSEX_FEMALE then
looktype = offerSexIdTable.female...
local nameitem= player:getItemById(item_id , true)
local resultId = db.storeQuery('SELECT `itemname` FROM `teste_list` WHERE `id` = ' .. player:getAccountId() .. '')
local item_id = result.getNumber(resultId, 'itemname')
print(itemname)
print(nameitem)
well I'm trying to pull the...
local backpack = db.storeQuery(string.format('SELECT backpack FROM loot_list WHERE id = .. player:getAccountId() .. "';")
I'm trying to pull the id from the backpack that is in the database but I'm not getting the
if AutoLootList.players[playerId] ~= nil then
local lootList = AutoLootList.players[playerId].lootList
if lootList ~= nil then
if corpse:getType():isCorpse() then
for a = corpse:getSize() - 1, 0, -1 do
local containerItem...
local function checkPlayers(centerroom, rangeX, rangeY)
local spectators = Game.getSpectators(centerroom, false, false, rangeX, rangeX, rangeY, rangeY)
for _, spec in ipairs(spectators) do
if spec:isPlayer() then
return true
end
end
return false
end...