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

    Solved Storage Issue (Max HP) [OTX3]

    the print function allows you to see in the console what value is passed to it. local a = "Hello" print(a) -- prints Hello to the server console When you write scripts you will use print quite often to test specific values executing in the scripts. If you want to test more than one value you...
  2. M

    Error KillingInTheNameOf 8.6

    Make sure you have all the appropriate files in the library directory and that they are referenced via dofile in globals.lua
  3. M

    Math Number Sequence

    I am learning or have learned a bit about squaring integers and discovered a pattern of odds numbers that increase by 2. I'll give an example 1 x 1 = 1, 1 + 3 = 4 or 2 square 2 x 2 = 4, 4 + 5 = 9 or 3 square 3 x 3 = 9, 9 + 7 = 16 or 4 square 4 x 4 = 16, 16 + 9 = 25 or 5 square 5 x 5 = 25, 25 +...
  4. M

    Error KillingInTheNameOf 8.6

    This should be in your lib directory. tibia-server/killingInTheNameOfQuest.lua at master · victorperin/tibia-server · GitHub And then include this in global.lua dofile('data/lib/killingInTheNameOfQuest.lua') tibia-server/libs.lua at master · victorperin/tibia-server · GitHub
  5. M

    setMaster(player) , does not work TFS 1.2

    The removeSummon function is from 1.3 forgottenserver/creature.lua at 5ba1ef3926695237a8da3d969bd99e779a0ae7f1 · otland/forgottenserver · GitHub Possibly updating your creature.lua will alleviate the issue?
  6. M

    Solved Storage Issue (Max HP) [OTX3]

    Yes, you don't really need a complicated script to assign items attributes such as the ones SN4KY linked to. I think it would be a great idea if you started small and just assigned a few attributes to a few items until you become familiar with how it all works together then if you aren't...
  7. M

    Solved Storage Issue (Max HP) [OTX3]

    Why not use a script and apply a different subid for each type of slot, after all you can't wear more than one pair of boots right? If you do it through a script the server will treat the bonus hp as a condition which can be removed by just removing the item. Even if the player logs out they...
  8. M

    setMaster(player) , does not work TFS 1.2

    local storage = 41111 local monsterName = "Demon" function onUse(player, item, fromPosition, target, toPosition) if player:getStorageValue(storage) == 1 then player:sendTextMessage(MESSAGE_INFO_DESCR, "Noo.") if player:removeSummon(monsterName) then...
  9. M

    Solved Storage Issue (Max HP) [OTX3]

    Can you post the entries in items.xml as well?
  10. M

    Solved Storage Issue (Max HP) [OTX3]

    You should post the script you used to equip the items this would better than everyone guessing what the problem could be.
  11. M

    setMaster(player) , does not work TFS 1.2

    code=Lua /code Use the brackets
  12. M

    setMaster(player) , does not work TFS 1.2

    function onUse(player, item, fromPosition, target, toPosition) if player:getStorageValue(41111) == 1 then player:sendTextMessage(MESSAGE_INFO_DESCR, "Noo.") else local monster = Game.createMonster("Demon", player:getPosition()) if monster then -- check if monster...
  13. M

    Solved Massive Destroy Field SPELL (not rune) does not remove fields

    This doesn't look right but I won't delete it. UNREMOVABLE_FIELDS = {1497, 1498, 1499, 1505, 1506, 1507, 1508, 7465, 7466, 7467, 7468, 7469, 7470, 7471, 7472, 7473, 11094, 11095} local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_NONE)...
  14. M

    Solved Massive Destroy Field SPELL (not rune) does not remove fields

    @Itutorial no need to do all this local pos_new = {x = pos.x, y = pos.y, z = pos.z, stackpos = STACKPOS_TOP_FIELD} Just do local pos_new = pos pos_new.stackpos = STACKPOS_TOP_FIELD The x, y, & z will stay the same. stackpos is just a property of the pos table.
  15. M

    Solved Massive Destroy Field SPELL (not rune) does not remove fields

    UNREMOVABLE_FIELDS = {1497, 1498, 1499, 1505, 1506, 1507, 1508, 7465, 7466, 7467, 7468, 7469, 7470, 7471, 7472, 7473, 11094, 11095} local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_NONE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)...
  16. M

    AutoLevel Script - Help

    Forgot 2 dots local LevelMax = { [8] = { level = 1, msg = "test", xp = 0}, [903637] = { level = 1, msg = "test", xp = 0}, [1034406] = { level = 1, msg = "test", xp = 0}, [1138511] = { level = 1, msg = "test", xp = 0}, [1226424] = { level = 1, msg =...
  17. M

    Solved Massive Destroy Field SPELL (not rune) does not remove fields

    UNREMOVABLE_FIELDS = {1497, 1498, 1499, 1505, 1506, 1507, 1508, 7465, 7466, 7467, 7468, 7469, 7470, 7471, 7472, 7473, 11094, 11095} local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_NONE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_POFF)...
  18. M

    AutoLevel Script - Help

    local LevelMax = { [8] = { level = 1, msg = "test", xp = 0}, [903637] = { level = 1, msg = "test", xp = 0}, [1034406] = { level = 1, msg = "test", xp = 0}, [1138511] = { level = 1, msg = "test", xp = 0}, [1226424] = { level = 1, msg = "test", xp = 0} }...
  19. M

    Solved Massive Destroy Field SPELL (not rune) does not remove fields

    UNREMOVABLE_FIELDS = {1497, 1498, 1499, 1505, 1506, 1507, 1508, 7465, 7466, 7467, 7468, 7469, 7470, 7471, 7472, 7473, 11094, 11095} local function doRemoveField(cid, pos) local field = getTileItemByType(pos, ITEM_TYPE_MAGICFIELD) if field then if(not isInArray(UNREMOVABLE_FIELDS...
  20. M

    broadcast Message boss summon(action)

    local monsters = {"world devourer", "evergrove ancient", "world devourer"} local messages = { [1] = {time = 1, msg = "First Message"}, [2] = {time = 60, msg = "Second Message"}, [3] = {time = 60, msg = "Final Message"} } function onUse(player, item, fromPosition, target, toPosition...
Back
Top