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

Search results

  1. Critico

    Reset StorageValue of player, DB execute

    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
  2. Critico

    Rope Roof System

    bugs fixed by me... in my post
  3. Critico

    Rope Roof System

    error fixed: function onUse(cid, item, fromPosition, itemEx, toPosition) roofs_tile = {6172,3348,920,926,927,929,936,937,939,946,947,948 ,956,957,958} -- Piso de telhados aceitos roofs_border =...
  4. Critico

    Auction Npc

    sim, foi testado em 8.6 até 9.6 obs: beeki ai?
  5. Critico

    Auction Npc

    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...
  6. Critico

    Please help with my error.

    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)...
  7. Critico

    Lua Npc action errors.

    error is in 'data/npc/lib/npcsystem/modules.lua' because function 'getItemNameById' does exist
  8. Critico

    Guild system problem

    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
  9. Critico

    Change Exp Rate of Server by Talkaction

    In data/lib/ "200-data" or "050-function" add: _Exp_Event = { storage = 96138, rate = 0.10 -- 10% } data/creaturescript/script script name.lua function onKill(cid, target) if getGlobalStorageValue(_Exp_Event.storage) ~= -1 and isMonster(target) == true then local percent,exp =...
  10. Critico

    Change Exp Rate of Server by Talkaction

    only for time or command on/off exp?
  11. Critico

    [Mod] Auto Loot

    @up server 9.6? some error in console?
  12. Critico

    Lua Globalevent check config.lua

    local worldtype = getConfigValue('worldevent') if worldtype == 1 then ... end
  13. Critico

    CreatureEvent Top frags script

    use storage instead of db
  14. Critico

    Add storage after monster's dead.

    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...
  15. Critico

    [Mod] Auto Loot

    try use this version [code=lua] <?xml version="1.0" encoding="ISO-8859-1"?> <mod name="Loot System" version=" - Pastebin.com
  16. Critico

    [Mod] Auto Loot

    @up´ server 9.6?
  17. Critico

    Lua setfrags error

    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
  18. Critico

    Lua setfrags error

    add in lib/050-function function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM...
  19. Critico

    Ban ip

    I think that would be correct doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "IP Banishment on " .. doConvertIntegerToIp(tmp) .. " has been lifted.")
Back
Top