• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Search results

  1. Darkhaos

    Lua doPlayerAddDepotItems+doItemSetAttribute [Help]

    Not sure functions onEquip or onDeEquip works like that, you can try creating a script with something like function onEquip(cid, item, ...) --(...) because i don't remember the params for that function. if getItemAttribute(item.uid, "owner") and getItemAttribute(item.uid, "owner") ~=...
  2. Darkhaos

    Lua doPlayerAddDepotItems+doItemSetAttribute [Help]

    Well i work with custom attributes, you can set an item the attr you want. I used 'owner' to save the player's ID in the item, but you can change it to 'aid' or any other.
  3. Darkhaos

    Lua doPlayerAddDepotItems+doItemSetAttribute [Help]

    Oh ok, i thought the item that must receive the attr is the parcel function doPlayerAddDepotItems(cid, items, town) if (not isPlayer(cid)) then error("Player not found") end local town = town or getPlayerTown(cid) --doPlayerGiveItemContainer returns boolean. Instead, use doCreateItemEx...
  4. Darkhaos

    Solved Help me, plax!

    try using this local config = { removeOnUse = false, usableOnTarget = true, -- can be used on target? (fe. healing friend) splashable = true, range = -1, area = {1, 1} -- if not set correctly, the message will be sent only to user of the item } local multiplier = { health = 1.0, mana =...
  5. Darkhaos

    Lua How to create promotion vocational tree?

    Just create the vocations, and let you choose only two depending on your voacion by the NPC. example something like: local vocations = { --[sorc] = {master sorc} [1] = {5}, --[druid] = {elder druid} [2] = {6}, --[paladin] = {royal paladin} [3] = {7}, --[knight] = {elite...
  6. Darkhaos

    CreatureEvent [CreatureEvent/Npc] Killing in the name of... [Now player can choose the task]

    That folder doesn't exists in distros. I never said something about 'data/actions/lib'. PD: I deleted some messages from inbox.
  7. Darkhaos

    Lua doPlayerAddDepotItems+doItemSetAttribute [Help]

    I only fixed function doPlayerAddDepotItems. I didn't checked the other inside onThink function. function doPlayerAddDepotItems(cid, items, town) if (not isPlayer(cid)) then error("Player not found") end local town = town or getPlayerTown(cid) --doPlayerGiveItemContainer returns boolean...
  8. Darkhaos

    Winter Update Photos

    These are not mine, they're from friends of Tibia Venezuela. Venore and Demon Outfit Demon Outfit Some new items
  9. Darkhaos

    Winter Update Photos

    Iron Fists? Finally Cip added Fist weapons?
  10. Darkhaos

    Dll files

    http://otland.net/f18/opentibia-dll-pack-v2-0-a-155310/
  11. Darkhaos

    Lua Reading text from a writeable/readable item in lua

    As far as i know, functions like 'getItemText', 'getItemName', 'getItemDescription', etc.. are added in libs. Personally, i prefer to use 'getItemAttribute(uid, "attr")'
  12. Darkhaos

    [CreatureEvent] Replace monster

    local c = { target = "Rat", transform = "Skunk" } function onTarget(cid, target) if isPlayer(cid) then --getCreatureMaster(target) == nil for 0.4 --getCreatureMaster(target) ~= target for 0.3.6 if isMonster(target) and getCreatureMaster(target) == nil and...
  13. Darkhaos

    Solved Error

    local config = { savePlayer = true, healPlayerOnLevel = true, effectType = 30 } function onAdvance(cid, skill, oldLevel, newLevel) if(skill == SKILL__EXPERIENCE) then return true end if(skill == SKILL__LEVEL and config.healPlayerOnLevel) then doCreatureAddHealth(cid...
  14. Darkhaos

    Lua Reading text from a writeable/readable item in lua

    if getItemText(item.uid) and getItemText(item.uid) ~= "" then print(getItemText(item.uid)) end Error?
  15. Darkhaos

    Bless

    A NPC Script where players buys blessings or automatic blessings when player logs in?
  16. Darkhaos

    Lua Storage on time

    Explain more...
  17. Darkhaos

    [LuaScript] NPC Tell histories

    Hello, i've designed a new class for NPC-Tell Histories functions. It's very easy to use and i want to know if you consider it useful or not. I want to know if there is something that must be added, suggestions, etc. The class works like this elseif msg:lower() == "mission" then local...
  18. Darkhaos

    CreatureEvent [CreatureEvent/Npc] Killing in the name of... [Now player can choose the task]

    [1] = {questStarted = 1512, questStorage = 65002, killsRequired = 300, raceName = "Rotworms", rewards = {{enable = true, type = "exp", values = 1000}, {enable = true, type = "item", values = {2157, 10}}}},
  19. Darkhaos

    Solved Problem with string/table...

    This one is working local input = "{1, 2, 3, 4, 5}" local t = "local table = " .. input .. " return table" local a = loadstring(t) for i = 1, #a() do print(a()[i]) end
  20. Darkhaos

    Solved Problem with string/table...

    Not sure about this (I never tried), but i think you can use something like this local input = "{1, 2, 3, 4, 5}" local table = loadstring(input) for i = 1, #table do print(table[i]) end
Back
Top