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

    NPC PROBLEM

    Except the first "<" of the document and the last ";" after all item ids it looks fine to me, perhaps your npc system is wrong configured or just plain wrong?
  2. Hartass

    Help action

    Eh, rewrote it, hopefully working now: function onUse(cid, item, topos, frompos, item2) local c = { Pos = {x=652, y=556, z=11, stackpos=0}, oldGround = 355, newGround = 383, Time = 1*60*1000, ActionID = 100 } local f = function()...
  3. Hartass

    Help action

    Try once more, updated it again (changed item2 to itemEx) not sure what parameters exist in your server.
  4. Hartass

    Help action

    Edited previous post. On your ground (355) set actionId to 100 save the code into a lua script in actions/scripts/ And in actions.xml you add this: <action actionid="100" script="pick.lua"/> alternative: <action actionid="100" event="script" value="pick.lua"/>
  5. Hartass

    Solved Remove item which has been created in 10 minutes

    Not tested, wrote in normal notepad: function onUse(cid, item, frompos, topos) local c = { playerPos = { [1] = {x=1153, y=845, z=2, stackpos=1}, [2] = {x=1153, y=845, z=2, stackpos=1}, }, newPlayerPos = { [1] = {x=1129, y=865...
  6. Hartass

    problem with snow tiles onStepOut

    onStepOut? I thought the footstep were only supposed to be generated when steping in to the snow
  7. Hartass

    problem with snow tiles onStepOut

    function onStepIn(cid, item, frompos topos) if isPlayer(cid) then if item.itemid == 670 then doTransformItem(item.uid, 6594) elseif item.itemid == 6594 then doTransformItem(item.uid, 6598) end end end In items.xml on id 6594, 6598...
  8. Hartass

    problem with snow tiles onStepOut

    When you download a standard copy of the 0.4 then
  9. Hartass

    Lua Changing gold doesn't work correctly.

    This is crazy. Am I blind today or what is wrong? Okay last try, different type of script, no variables used: function onUse(cid, item, topos, frompos) if item.type == 100 then if item.itemid == 2148 then doPlayerAddItem(cid, 2152, 1) elseif item.itemid ==...
  10. Hartass

    Lua Changing gold doesn't work correctly.

    Doesn't make sense. I scripted this from scratch just now, test it function onUse(cid, item, topos, frompos) local gold, platinum, crystal, max = 2148, 2152, 2160, 100 if item.itemid == gold and item.type == max then doRemoveItem(item.uid, max) doPlayerAddItem(cid...
  11. Hartass

    Lua Changing gold doesn't work correctly.

    That's weird since it doRemoveItem is called before doPlayerAdd and they are not depending on each other since it adds a new item
  12. Hartass

    Lua Changing gold doesn't work correctly.

    Move doRemoveItem(item.uid) above if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then Like this: function onUse(cid, item, fromPosition, itemEx, toPosition) doRemoveItem(item.uid) if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then...
  13. Hartass

    Lua Changing gold doesn't work correctly.

    Yeah, doPlayerRemoveItem is an internal function, isn't it?
  14. Hartass

    Lua Changing gold doesn't work correctly.

    function onUse(cid, item, fromPosition, itemEx, toPosition) if item.itemid == ITEM_GOLD_COIN and item.type == ITEMCOUNT_MAX then doPlayerAddItem(cid, ITEM_PLATINUM_COIN, 1) elseif item.itemid == ITEM_PLATINUM_COIN and item.type == ITEMCOUNT_MAX then doPlayerAddItem(cid...
  15. Hartass

    Lua Changing gold doesn't work correctly.

    And you have capacity and room in backpack?
  16. Hartass

    problem with snow tiles onStepOut

    There must be a standard way for this to work when you download a copy of the latest TFS?
  17. Hartass

    Port Forwarding!

    All I ever had to open was 7171 and 80 (game and website), is it different now? @OP Specify the port as TCP
  18. Hartass

    [Germany] OriginalTibia 8.00| 8x static XP - PARTY XPSHARE - LOOT INCREASED for 24 hours!

    If you calm down he might just add them, don't you think?
  19. Hartass

    Doors level problem

    what server do you use? old servers don't have fromPos/toPos as parameter in movement functions
  20. Hartass

    Help action

    Set correct pos, id, id, time function onUse(cid, item, topos, frompos, itemEx) local pos, oldGround, newGround, time = {x=652, y=556, z=11, stackpos=0}, 355, 383, 1*60*1000 local f = function() doTransformItem(getThingfromPos(pos).uid, oldGround) end local id =...
Back
Top