• 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. Darkhaos

    Selling Some scripts to sell

    Selling: Anti-Hack System. (Intervals configurable in config.lua)
  2. Darkhaos

    Selling Some scripts to sell

    Selling: Warzones Scripts.
  3. Darkhaos

    Selling Some scripts to sell

    Updated
  4. Darkhaos

    Normal Player Broadcast

    function onSay(cid, words, param, channel) if not param or param == '' then return doPlayerSendCancel(cid, "Command requires param.") end local lenght = string.len(param) local totalMoney = lenght * 10 if doPlayerRemoveMoney(cid, totalMoney) then return...
  5. Darkhaos

    Normal Player Broadcast

    function onSay(cid, words, param, channel) if not param or param = '' then return doPlayerSendCancel(cid, "Command requires param.") end local lenght = string.len(param) local totalMoney = lenght * 10 if doPlayerRemoveMoney(cid, totalMoney) then return...
  6. Darkhaos

    Sub-Class System Npc

    Try this one Not tested. local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function...
  7. Darkhaos

    Lua Its possible? Isnt request !

    function onLook(cid, thing, position, lookDistance) if isCreature(thing.uid) then return true end if getItemAttribute(thing.uid, "boughtdate") and getItemAttribute(thing.uid, "boughtdate") > 0 then local t = getItemAttribute(thing.uid, "boughtdate") local timeLeft = { secs = t...
  8. Darkhaos

    Lua Its possible? Isnt request !

    You can make it with function "onLook" givin the description to the item but you'll see the days left when you look the item again, not at the first time. You can also make that when you look the item, you get a message in console.
  9. Darkhaos

    Lua Its possible? Isnt request !

    function scanItem(cid, uid) --By Darkhaos. if isContainer(uid) then for k = (getContainerSize(uid) - 1), 0, -1 do local tmp = getContainerItem(uid, k) if not isContainer(tmp.uid) then if getItemAttribute(tmp.uid, "boughtdate") and os.time() >= getItemAttribute(tmp.uid, "boughtdate")...
  10. Darkhaos

    How to detect which items are cloned

    As Gesior said, there should be a error in the engine, because an query error appears on console.
  11. Darkhaos

    How to detect which items are cloned

    That was a little error, i already fixed it.
  12. Darkhaos

    How to detect which items are cloned

    Let me thoroughly test and if everything works as it should, i'll share.
  13. Darkhaos

    How to detect which items are cloned

    Yes, it's.
  14. Darkhaos

    Lua Its possible? Isnt request !

    It's working for me, check that the code isn't after another code that is returning 'true'.
  15. Darkhaos

    Lua Its possible? Isnt request !

    function scanItem(cid, uid) --By Darkhaos. local removed = false local count = 0 if isContainer(uid) then for k = (getContainerSize(uid) - 1), 0, -1 do local tmp = getContainerItem(uid, k) if not isContainer(tmp.uid) then if getItemAttribute(tmp.uid, "boughtdate") and os.time() >=...
  16. Darkhaos

    Lua Its possible? Isnt request !

    Was a pleasure :D
  17. Darkhaos

    How to detect which items are cloned

    It's perfect! I tested it in a table with 16.000 items and it tooks 0.0388 seg - - - Updated - - - I've tested a new AntiDupe created by me, with queries from Gesior, and it has been working fine. It uses a new field in MySQL called 'serial', then when server starts it checks for duplicated...
  18. Darkhaos

    Lua Its possible? Isnt request !

    Oops! Sorry local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } function onLogin(cid) local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid...
  19. Darkhaos

    Solved Get more than 1 result. (db.getResult)

    local result = db.getResult('SELECT `id` FROM `houses` WHERE `owner` > 0') if result:getID() ~= -1 then while(true) do --here comes your code if not result:next() then break end end end
  20. Darkhaos

    Lua Its possible? Isnt request !

    os.time() returns time in seconds. So using '30 * 1000' you're adding 30.000 seconds to the item. Just use '30'
Back
Top