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

    Compiling [Windows] Compiling on Visual Studio 2022 - Boost Error required 1.53.0 minimum

    Hello. Im testing to compile an TFS 1.3 based on canary server ( using src for otbr) from @EduardoDantas . As isn't really hard to follow steps, https://github.com/opentibiabr/ (from Git installed with all required components and visual studio, same as pictures ). git clone...
  2. alejandro762

    RevScripts help with crystal extraction scripts (Revscripts tfs 1.3)

    You mean, a crystal appears again on map ? Use 2 Crystals, example Big Crystal, Small Crystal. On items.xml add attribute on the small crystal: <attribute key="decayTo" value="8888" /> <attribute key="duration" value="60" /> Then 8888, will be the item ID of the Big Crystal. After 60 seconds...
  3. alejandro762

    Lua Adding Levels on This system

    I'll get directly "Error in function giveMiningExperience -> player does not exist (check to ensure playerId being passed to function is correct) Working and giving reward, but not Exp
  4. alejandro762

    Lua Add or Subtract Storage Value using items on the same StorageValue

    Nope they aren't registered, 42088 spiritthorn armor 3983 bast skirt
  5. alejandro762

    Lua Add or Subtract Storage Value using items on the same StorageValue

    Tried like this, local gearStor = 150000 local config = { --[itemid] [42036] = {type = "hand", value = 1}, [42088] = {type = "armor", value = 1}, [3983] = {type = "legs", value = 1} } local moveEvent = MoveEvent() function moveEvent.onEquip(player, item, slot, isCheck) if...
  6. alejandro762

    Lua Add or Subtract Storage Value using items on the same StorageValue

    Ok, ill check that when i finish the work.
  7. alejandro762

    Lua Add or Subtract Storage Value using items on the same StorageValue

    Uf, to complex master for me. I didn't think you could make a table with movement. Also this part.. for itemId, slot in pairs(config) do moveEvent:id(itemId) moveEvent:slot(slot.type) end moveEvent:register() about for Is it , for itemId of the local config and the slot ("in pairs"...
  8. alejandro762

    Lua Adding Levels on This system

    Hello, Im using this script made by @Xikini on a thread with many pages , i don't remember where is it now... And is working perfect. I Would like to add a Level System from 0 to 255 for example with levels, increasing the Experience needed on each level ( for example +500 experience / each...
  9. alejandro762

    Lua Add or Subtract Storage Value using items on the same StorageValue

    I check without modifing i see like i post above when log out and coming back it counts x2 lol. Ok tried with if isCheck then, onEquip. On deEquip with if isCheck is not working, but adding else after if isCheck then, it works perfectly. Now it seems to be x2 instead of x3 the storage. local...
  10. alejandro762

    Lua Add or Subtract Storage Value using items on the same StorageValue

    Thanks for the reply, I'm doing something wrong, i add it under the function cause i dont know how to register player outside, Trying with only 1 item, Is giving + 1000, then retrieve - 500, local gearStor = 150005 local moveEvent = MoveEvent() function moveEvent.onEquip(player, item, slot...
  11. alejandro762

    Lua Add or Subtract Storage Value using items on the same StorageValue

    Hello, Im using this code as Add and Subtract Storage values from items, For example, A Sword +500, Armor + 500 and legs +500. Making a look i"ll get a +1500 a score. I wish to know if is possible to do that using the same Storage Value , adding or subtract values from each one, if Equip or...
  12. alejandro762

    OpenTibia Assets Editor

    Because you need compile, then after copy the appareances...........dat to the items folder of your server, and replace name by the same name of appeareces located in items folder. These fields, Bounding square, is for move the picture, same as x y / width / height. Without adding numbers, add...
  13. alejandro762

    Lua Monster reflect Elemental damage by a %, TFS 1.4

    Is it working, i have just a question, Why having 2 different scripts on the server using the function onHealthChange ( maybe is another thing, primarydamage, secondaryDamage.. ) it disables one of the scripts ? Example i got a script onHealthChange to add a condition while attacking a monster...
  14. alejandro762

    Revscripts Tournament Coins

    local config = { storage = 20000, pointItemId = 24774, -- Item ID, in this case is TibiaCoin just create a new one for Tournament. pointsPerHour = 1, -- 1 Point Per hour checkDuplicateIps = false } local onlinePointsEvent = GlobalEvent("GainPointPerHour") function...
  15. alejandro762

    Lua Compendium System

    Maybe, did you figure out how to show achievements from player in client, bit similar as this?
  16. alejandro762

    Lua When Player Attack

    Oh sorry, On the function, local function whenPlayerAttack(.....) When if start before then adding and player:getItemCount(2175) > 0 then If you got item 2175, spellbook on backpack it will work, if not, it doesnt work. Awesome! 1661329383 Arg.. I found only one problem. Using and equipping...
  17. alejandro762

    Lua When Player Attack

    Resolved, i know how to add this to match an item and not all players and all methods of attack. Thanks @Sarah Wesker
  18. alejandro762

    RevScripts Monsters Loot

    I remember a script doing something like this, then today i found it, on a Nvso Global map 8.6... didn't know the tfs used, here is the script function onKill(cid, target, lastHit) local items = {{8300,10},{8305,5},{8306,5}} -- Item ID / Chance to loot local exmonster = {"Rat","Bug"} --...
  19. alejandro762

    Lua When Player Attack

    Adding this part of code before COMBAT_MANADRAIN and before COMBAT_HEALING, is working. Since i know what is doing this, maybe you can know what is 'interfering', we are using a condition system on maps, like diablo, malus / bonus, in this case we got Dazzled Condition, others, curse, poison...
  20. alejandro762

    Lua When Player Attack

    Is working, removing ec part, then add it as action. Very impressive. Is only doing an error as "player" ( not god ), Line 40, if primaryType == COMBAT_HEALING or not player:isPlayer() then Attempt to index local 'player' (a nil value), i think such same for line 54 if primaryType ==...
Back
Top