• 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!

Recent content by btc

  1. btc

    TFS 1.2 how to allow move/use items on walk

    I believe @henkas asked about possibility of moving items after the player's walk is completed, like when you try to move them from distance. The problem is that "onWalkComplete" function activates only the "addEvent walkTask. It doesn't have an access to normal player walking, so it is possible...
  2. btc

    TFS 1.X+ getTopTopItem ignores corpses

    Yes, I have made some tasks aswell "createSchedulerTask" to give moves delays, like 200 mls and STACKPOS_USE has now implemented this aswell in case you want to use a rune or rotate a chair but an item lies on top of it. :) Thank, dude!
  3. btc

    TFS 1.X+ getTopTopItem ignores corpses

    Thank You. The code now works as intended. I didn't notice that. Thank You very much, BIG PLUS for You! To be honest that was the hardest script to script in my OTS and you have made me very happy! :)
  4. btc

    TFS 1.X+ getTopTopItem ignores corpses

    Your code searches for an Item in the items container that has a specific client ID (spriteId). If it finds a matching item, it returns an iterator that points to that item. If it does not find a matching item, it returns the items->end() iterator. This is how it is supposed to work, yes...
  5. btc

    TFS 1.X+ getTopTopItem ignores corpses

    What about reworking the logic for checking the item with specified stackpos and then compare it to the itemCount starting from the bottom where 0 is ground and 1 is first item on the ground? So if stackpos 1 == itemCount 1 then move item with itemCount 1
  6. btc

    TFS 1.X+ getTopTopItem ignores corpses

    up
  7. btc

    TFS 1.X+ getTopTopItem ignores corpses

    up Why laughing instead of atleast just giving me a hint? @Nekiro :(
  8. btc

    TFS 1.X+ getTopTopItem ignores corpses

    up
  9. btc

    TFS 1.X+ getTopTopItem ignores corpses

    up. It is probably some of those weird microsoft functions from "Vector" file or something from Thing* Tile::getThing(size_t index) const I've noticed there is also a function: getStackposOfItem any ideas?
  10. btc

    TFS 1.X+ getTopTopItem ignores corpses

    How to get the current item? For example when a player moves an item covered by other item (for older tibia versions). We should have a function like: iterator getCurrentItem() { return func(); } const_iterator getCurrentItem() const { return...
  11. btc

    C++ Slowly dying monsters (OTHire 0.0.3) [Solved]

    I need the delay as my server is 7.6. But I need the monsters to die together, not one by one. I tried c++ 1 second "sleep function" but doesnt work
  12. btc

    C++ Slowly dying monsters (OTHire 0.0.3) [Solved]

    This is due to addevent being called in a loop. I have no idea why the hell it need addevent as checkCreatures
  13. btc

    C++ Slowly dying monsters (OTHire 0.0.3) [Solved]

    up, anybody knows how to solve this ancient TFS problem?
  14. btc

    How to set NPC walkInterval to 1000?

    /edit i need to double check again
Back
Top