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

  1. DawacPliki

    Lua Some questions about Storage and Global variables

    I know this is an old thread, but I'm trying to learn about storage usage and google redirected me to this thread. I would appreciate if someone could answers some the questions above: Q1 and Q3 I know that that saveGlobalStorage doesn't exist anymore. Also, in the newest versions of tfs, the...
  2. DawacPliki

    Monster death bug when killed with runes

    @hellboy answer was correct. it was an error from mehah client side.
  3. DawacPliki

    Monster death bug when killed with runes

    So I've got this bug(which appeared pretty early on but I ignored it till now) which basically freezes the monster/player with idle sprite and the monster being not lootable(but when inspected it's dead) and it only happens when the last blow is dealt with runes. When dealing the finish blow...
  4. DawacPliki

    Lua Check if specified monster is in specified position

    For classic tibia it doesn't have many uses, but It could be used for some custom features like arenas. I used the addEvent way because it seemed the fastest to implement. It may not be the most optimal, but it works for prototyping purposes and with some additional code like checking monster...
  5. DawacPliki

    Lua Check if specified monster is in specified position

    But what does inactive mean? That monster target list is empty? I'm still confused why it's getting recommended for handling monster walk when going by that logic it won't even be executed? Or maybe Xikini is right and I'm missing something? I'm also thinking about making the monsters...
  6. DawacPliki

    Lua Check if specified monster is in specified position

    (Second post because previous got blocked by filter) I'm using 1.4.2 and I have some questions about onThink() event 1. Does it run when monster is not in combat? Does it need to not have targetList empty to work? pic rel: 2. Does this event run for every monster based on interval set...
  7. DawacPliki

    Lua Check if specified monster is in specified position

    I'm using 1.4.2 and I have some questions about onThink() event 1. Does it run when monster is not in combat? Does it need to not have targetList empty to work? pic rel: 2. Does this event run for every monster based on interval set somewhere inside source files? Or do I have to implement it...
  8. DawacPliki

    C++ Can I print human readable userdata?

    Is there a way to print the human readable value of userdata to the console? When I try to print player()->getParty() I think it returns a pointer to userdata but is there a way to make it print a string or something alike?
  9. DawacPliki

    TFS 1.X+ 1.4.2 Check if monster has flag

    Is there a way to check the value of monster flag inside monster.cpp file? Something like player->hasFlag(). I read somewhere that it's not possible but I want to be sure. Pseudocode bool Monster::isOpponent(const Creature* creature) const { if (creature->getMonster() &&...
Back
Top