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

    Lua How to prevent a players death?

    I've just used a random script as base, I thought that RemoveCreature meant that he would be removed from his pos. LOL xD. Btw I fixed the crash EDIT: Its working now as I wanted. BIG THANKS @whitevo
  2. darkshin

    Lua How to prevent a players death?

    @whitevo , @Printer : Is there anyway to prevent the player from logging out after he dies?
  3. darkshin

    Lua How to prevent a players death?

    Its crashing at canSeeCreature, at creature.cpp. Strangely, when it tries to check if the target creature is invisible (after its dead), it crashes.
  4. darkshin

    Lua How to prevent a players death?

    I worked now, but crashed my server. LOL
  5. darkshin

    Lua How to prevent a players death?

    Ye, but at what file do I add that line (player:registerEvent("onPrepareDeath")) ?
  6. darkshin

    Lua How to prevent a players death?

    Even If I change these lines?: local templePosition = player:getTown():getTemplePosition() player:teleportTo(templePosition)
  7. darkshin

    Lua How to prevent a players death?

    Oh wait, I thin I didn't registered event on player. How I do that?
  8. darkshin

    Lua How to prevent a players death?

    Everything is fine, just not working... strange..
  9. darkshin

    Lua How to prevent a players death?

    <event type="preparedeath" name="onPrepareDeath" script="prevent_death.lua" /> Ive did.. If I understood correctly your script (very nice by the way), If I config to drop corpse and drop loot to false, it will only teleport the player to a Position, in the script case it gets the Temple pos...
  10. darkshin

    Lua How to prevent a players death?

    Hello Guys, Ive trying to prevent a players death based on a storage, but I just can't make this work. I use TFS 1.2. When the player dies, the print I've made to check if its being called doesn't even is showed in serv console. How can this work? Here is the script so far: TRY 1: function...
  11. darkshin

    Lua Errors while trying to db.storeQuery. HEELP!

    Hey Guys!! I am in trouble while trying to store a database query. They function variables "guid" and "key" are beign rejected by the function saying: If they are set to numbers: "attempt to call local "guid" <a number value>" If they are set to strings: "attempt to call local "guid" <a string...
  12. darkshin

    Lua How to set a storage to "decay" ?

    Thanks @Xagul and @Codex NG ! Its working as intended now :D
  13. darkshin

    Lua How to set a storage to "decay" ?

    I've tried to set the storage like that, as I saw in a script from Limos: setPlayerStorageValue(player.uid, 3000, os.time() + 1*60), didn't worked as I expect. I understand now that the match I've made was wrong: if getPlayerStorageValue(player.uid, 3000) < 2 then. I should do it like this...
  14. darkshin

    Lua How to set a storage to "decay" ?

    Hello guys! I wonder how can I set a time to a storage decay or be erased? Thats it!
  15. darkshin

    [RME] Creature Pallete

    Thank you! This will do!
  16. darkshin

    [RME] Creature Pallete

    Well, I've edited the one inside the respective data folder version that I used, but no changes, I only adds the the current list. I've deleted the ones I've found in appdata and nothing changed. Thats strange..
  17. darkshin

    [RME] Creature Pallete

    Hello Guys! Just wondering if there's a way to remove the presetted Npcs/Monsters at Creature Pallete in RME, because editing creature.xml don't change it at all. I want to make a clean at mine Thanks in advance!
  18. darkshin

    Random Place player freezing

    Allright then, look, I believe the error is a at the communication between server and client. "But what do you mean?" I mean that the way that the server is building up the message is different than the way the OTC is reading. I assume that an update to all files that are involved at this...
  19. darkshin

    Random Place player freezing

    Could you try that? void ProtocolGame::sendMoveCreature(const Creature* creature, const Tile* newTile, const Position& newPos, uint32_t newStackpos, const Tile* oldTile, const Position& oldPos, uint32_t oldStackpos, bool teleport) { if(creature == player) {...
  20. darkshin

    Random Place player freezing

    Can you show me your protocolgame function sendCreatureMove?
Back
Top