• 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

    How to detect which items are cloned

    But your PC has a good processor/ram or something? I want to make something that works for everyone
  2. Darkhaos

    How to detect which items are cloned

    This part is working fine. Now i'm going to work in queries to detect cloned items which do not f*ck the connection. - - - Updated - - - These queries won't f*ck the connection if there is like 3.000+ items in game?
  3. Darkhaos

    How to detect which items are cloned

    I've been working in a new AntiDupe that works in c++. I already made that items are saved/loaded with a serial that's stored in a new field at player_items/player_depotitems. 15:50 You see a solar axe (Atk:52, Def:29 +3). It can only be wielded properly by players of level 130 or higher. It...
  4. Darkhaos

    How to detect which items are cloned

    That's what i have been working.
  5. Darkhaos

    Lua Its possible? Isnt request !

    No i didn't tested the script. I just edited the scripts you posted before.
  6. Darkhaos

    How to detect which items are cloned

    The problem for the script is read the serial exactly as it is from BLOB field with a query. A common problem is that an item has more than one attribute (description, aid, uid, etc) it won't return the serial as it is. So i've been thinking to create a new AntiDupe that requires c++
  7. Darkhaos

    Lua Its possible? Isnt request !

    Yes, example: local itemsExpires = {2195, 2472, 1895, 1635} And remove it if you want all items expires.
  8. Darkhaos

    Edit Script

    function getDeathsAndKills(cid, type) -- by vodka. Edited by Darkhaos local query, d = db.getResult("SELECT COUNT(player_id) AS c FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)), 0 if (query:getID() ~= -1) then d...
  9. Darkhaos

    Lua Its possible? Isnt request !

    I added a table with some items ids in case you want the items that expires are only certain items. In case you want all items expires, REMOVE the line 'local itemExpires = {...}' -- ### CONFIG ### -- message send to player by script "type" (types you can check in "global.lua") SHOP_MSG_TYPE =...
  10. Darkhaos

    Lua Its possible? Isnt request !

    Yes, it's possible, just add an attribute to the item like local time = 30 * 24 * 60 * 60 --seconds in 30 days? doItemSetAttribute(uid, "boughtdate", os.time() + time) Later, add an script to the login.lua, with a function that scan all items in player (You can use function scanContainer...
  11. Darkhaos

    Edit Script

    function getDeathsAndKills(cid, type) -- by vodka. Edited by Darkhaos local query, d = db.getResult("SELECT COUNT(player_id) AS c FROM "..(tostring(type) == "kill" and "`player_killers`" or "`player_deaths`").." WHERE `player_id` = "..getPlayerGUID(cid)), 0 if (query:getID() ~= -1) then...
  12. Darkhaos

    Request - This script is really hard for me

    <event type="death" name="ScanContainer" event="script" value="blablabla.lua"/> And this to login.lua registerCreatureEvent(cid, "ScanContainer")
  13. Darkhaos

    Request - This script is really hard for me

    Not tested function scanContainer(uid, list, position) --function by Jano. Edited by me. for k = (getContainerSize(uid) - 1), 0, -1 do local tmp = getContainerItem(uid, k) if (isInArray(list, tmp.itemid)) then doSendAnimatedText(position, "Epic", TEXTCOLOR_ORANGE)...
  14. Darkhaos

    solved

    Not tested local shareExp = true function onDeath(cid, corpse, deathList) if not isPlayer(cid) then return true end if not getPlayerGuildId(cid) or getPlayerGuildId(cid) < 1 then return true end if #deathList < 1 then return true end local killedGuild = getPlayerGuildId(cid)...
  15. Darkhaos

    Action Working Demon Oak Quest

    this areaPosition = { {x = 763, y = 1484, z = 7, stackpos = 255}, {x = 784, y = 1497, z = 7, stackpos = 255} } Replace it with questAreaPosition = { {x = 763, y = 1484, z = 7, stackpos = 255}, {x = 784, y = 1497, z = 7, stackpos = 255} }
  16. Darkhaos

    Action Working Demon Oak Quest

    Did you changed something in lib?
  17. Darkhaos

    Lua How to create promotion vocational tree?

    Yes, you can add many options with this script Example local vocations = { --[sorc] = {master sorc} [1] = {5}, --[druid] = {elder druid} [2] = {6}, --[paladin] = {royal paladin} [3] = {7}, --[knight] = {elite knight} [8] = {8}, --[master sorc] = {epic sorc, noob sorc, super sorc, mega...
  18. Darkhaos

    Otland Community Feedback #2

    Lua and some MySQL things ;)
  19. Darkhaos

    Summ's Project Showoff / Item Rarity System

    Very cool! Rarity System is like MU Online xD
  20. Darkhaos

    Lua How to add more than 1 description to an item?

    doItemSetAttribute(item.uid, "description", getItemAttribute(item.uid, "description") .. " New description.")
Back
Top