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

    Important news

    hard joke even for 1st april
  2. worthdavi

    Which server is the best Open Tibia server through history ?

    infinitysky, tibiawar i cant even remember correctly
  3. worthdavi

    [TFS 1.X] Castle War Event (stand on the throne)

    Depending on wich days you're running the event, it will reset the house owner to set the new winner As long as the common event runs once a day, to reset everyone's points you can just add this line on startup.lua db.query('UPDATE `player_storage` SET `value` = 0 WHERE `player_storage`.`key` =...
  4. worthdavi

    [TFS 1.X] Castle War Event (stand on the throne)

    sure, in lua. basically the timed globalevent opens the castle arena gates, then the one who stands on the throne for more time wins the event. its a "push" war, where the reward is the castle (a huge house with some features inside) since this ot is already offline, try this one: Castle War -...
  5. worthdavi

    [TFS 1.X] Castle War Event (stand on the throne)

    Every time the event ends, you can execute that: for _, creature in pairs(Game.getPlayers()) do if creature then creature:setStorageValue(CASTLE_INFO.STORAGE, 0) end end -- To work on offline players db.query('UPDATE `player_storage` SET `value` = 0 WHERE `player_storage`.`key` =...
  6. worthdavi

    [TFS 1.X] Castle War Event (stand on the throne)

    Bump. For those ones who want to see the event working, you can check it out here: Thoria - Castle (https://thoria.com.br/?subtopic=castle) Its the same script and same map. Enjoy the event guys. xD
  7. worthdavi

    Lua TFS 1.3 how to make invisibility desappear if player attack?

    data/events/scripts/creature.lua or ou can create a healthchange event and register it on all players in function onTargetCombat(target) if self:isPlayer() and target then if target:getCondition(CONDITION_INVISIBLE) then target:removeCondition(CONDITION_INVISIBLE) end end
  8. worthdavi

    TFS 0.X War Castle Problem

    I accidentally declared guildId as local inside the resultId condition. Try this: function getCastleOwner() local guildId = 0 local resultId = db.getResult("SELECT `guild_id` FROM `castle` WHERE `castle`.`owner` > 0") if resultId ~= false then guildId =...
  9. worthdavi

    TFS 0.X War Castle Problem

    So the problem is in your getCastleOwner() function. Lets change its return type to number so. Before everything, you must add the column 'guild_id' to your castle table. ALTER TABLE `castle` ADD `guild_id` int DEFAULT 0; In your castle lib functions, change these functions to it: function...
  10. worthdavi

    TFS 0.X War Castle Problem

    I think it is better using the guild id instead of the guild name when setting the conditions. But as I do not know how are your database columns, lets debug your code and see if its working properly Change your onStepIn function to it and watch out your terminal, then copy and paste the...
  11. worthdavi

    TFS 0.X War Castle Problem

    Can you send me your getCastleOwner function? function onStepIn(cid, item, position) if getPlayerGuildId(cid) ~= getCastleOwner() then doPlayerSendCancel(cid, 'Nie masz dostepu, aby sie tam udac!') doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true)...
  12. worthdavi

    TFS 1.X+ Castle event

    function getCastleOwners() local owners = {} if (castleOwner > 0 ) then table.insert(owners, guildsOnEvent[castleOwner]) end return owners end
  13. worthdavi

    Lua kill boss points duplicate

    Try this way: function onKill(player, creature, lastHit) if not player:isPlayer() or not creature:isMonster() or creature:isPlayer() then return true end for i = 1, #config do local monster = config[i] if isInArray(monster.monsters...
  14. worthdavi

    [TFS 1.X] Castle War Event (stand on the throne)

    Hello, I made this event few years ago and since it's already free on internet because of some open source maniacs, I brought it to here I have seen people selling it like it was of their own, so to avoid that, here it is Let me me know if some code is missing. Too much time w/o seeing this code...
  15. worthdavi

    Feature Antirollback

    Everything that this guy is posting here, isn't made by him. He is doing that to piss people that made the codes. Read his topics. It's an fake user, but we know who is him. xD He doesn't even know how to install things that he post. lmao
  16. worthdavi

    Feature Antirollback

    Nice! Is it made by you?
  17. worthdavi

    [TFS 1.X] Battlefield Event (4 teams version)

    This event is old, I didnt know how to block the outfit changing inside the event. Now there are many ways to do that. You can choose the one that you like. Haha. But thank you!
  18. worthdavi

    [TFS 1.X] Battlefield Event (4 teams version)

    A random fake profile posted the event made by me without the credits and with missing archives, so I decided to post the complete event. Hope you guys will like. :) Some real pictures of the event (the pictures from the fake's post is fake either - funny, no?) To block outfit changing...
  19. worthdavi

    [Tf 1x+] [event] battlefield_x4

    Ok m8. How you wish. xD
  20. worthdavi

    [Tf 1x+] [event] battlefield_x4

    Was a joke. I didn't even understand what you meant. This script was made by me and isn't complete. Please, send the missing scripts (movements, globalevents, creaturescripts and plus) and be a gentleman, give the credits for the script and map author. Map credits: RadBR Script credits...
Back
Top