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 onThink(cid, interval)
local time = 1
local item_id = ?
local slot = ?
if last_interval == nil then last_interval = os.clock() end
if getPlayerStorageValue(cid, 12346) == 1 and getPlayerSlotItem(cid, slot).itemid == item_id then
if isPlayer(cid) == true then
local mpheal =...
creaturescripts
function onThink(cid, interval)
local time = 1
if last_interval == nil then last_interval = os.clock() end
if getPlayerStorageValue(cid, 12346) == 1 then
if isPlayer(cid) == true then
local mpheal = getPlayerMaxMana(cid) * (15.0 / 100) -- 15.0 percent mana
if...
function getPlayerNameByGUID(guid)
local name = 0
local resultId = db.getResult("SELECT `name` FROM `players` WHERE `id` = " .. guid)
if(resultId:getID() ~= -1) then
name = resultId.getDataString(resultId, "name")
resultId:free()
end
return name
end...
function getPlayerNameByGUID(guid)
local name = 0
local resultId = db.getResult("SELECT `name` FROM `players` WHERE `id` = " .. guid)
if(resultId:getID() ~= -1) then
name = resultId.getDataString(resultId, "name")
resultId:free()
end
return name
end...
function getPlayerNameByGUID(guid)
local name = 0
local resultId = db.getResult("SELECT `name` FROM `players` WHERE `id` = " .. guid)
if(resultId:getID() ~= -1) then
name = resultId.getDataString(resultId, "name")
resultId:free()
end
return name
end...
local itemID = 7366
local function refillAssassinStars(cid, ammo_count)
if isPlayer(cid) then
doPlayerRemoveItem(cid, itemID, ammo_count)
doPlayerAddItem(cid, itemID, ammo_count)
end
end
local function autoRefillAssassinStars(cid)
local hand_to_check = 0
local...
lib
function isCreatureInArea(fromPos, toPos)
local t = {}
for z=fromPos.z, toPos.z do
for y=fromPos.y, toPos.y do
for x=fromPos.x, toPos.x do
local v = getTopCreature({x=x,y=y,z=z})
if v.itemid == 1 and table.find({1,2,3}, v.type) then...
Where can I check these colors? I would like to add my own.
const.h
enum Color_t
{
COLOR_BLACK = 0,
COLOR_BLUE = 5,
COLOR_GREEN = 18,
COLOR_TEAL = 35,
COLOR_LIGHTGREEN = 66,
COLOR_DARKBROWN = 78,
COLOR_LIGHTBLUE = 89...