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!
local storage = 11010
for _, pid in ipairs(getPlayersOnline()) do
setPlayerStorageValue(pid, storage, -1) -- reset storage from players online
end
db.executeQuery("DELETE FROM `player_storage` WHERE `key` = "..storage) -- reset player offline
Olá fiz este tópico para mostrar um npc que eu estive desenvolvendo hoje, é um npc de auction, vou explicar com algumas screen's:
*Suporta servidores Sqlite e MySql*
O Npc basicamente funciona da seguinte maneira, você "deposita" alguns items neste npc e durante "X" dias ele vende para...
try:
function onDeath(cid, corpse, deathList)
local f = getTileItemById({x=1168, y=1158, z=7}, 2776).uid
if isMonster(cid) and f ~= 0 then
doRemoveItem(f)
doRemoveItem(getTileItemById({x=1169, y=1158, z=7}, 2776).uid)
doRemoveItem(getTileItemById({x=1170, y=1158, z=7}, 2774).uid)...
function getGuildName(id)
local Info = db.getResult("SELECT `name` FROM `guilds` WHERE `id` = "..id)
return Info:getID() ~= -1 and Info:getDataString("name") or false
end
StorageMonster.lua
function onDeath(cid, corpse, killer)
local monstName,Storage = "Boss",63536 -- monster name, storage
if isMonster(cid) and string.lower(getCreatureName(cid)) == string.lower(monstName) then
doCreatureSay(cid, "you received a storage!", TALKTYPE_ORANGE_1)
if...
In data/lib/050-function.lua add this too:
function setFrags(cid)
if not isCreature(cid) then return LUA_ERROR end
setPlayerStorageValue(cid, 824544, getPlayerFrags(cid))
return doPlayerSave(cid)
end
I think that would be correct
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "IP Banishment on " .. doConvertIntegerToIp(tmp) .. " has been lifted.")