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

    [TFS 1.X] Rarity Rolls & Custom Attributes Library

    Replace CONDITION_PARAM_SPECIALSKILL_CRITICALHITAMOUNT CONDITION_PARAM_SPECIALSKILL_CRITICALHITCHANCE CONDITION_PARAM_SPECIALSKILL_LIFELEECHCHANCE CONDITION_PARAM_SPECIALSKILL_LIFELEECHAMOUNT CONDITION_PARAM_SPECIALSKILL_MANALEECHCHANCE CONDITION_PARAM_SPECIALSKILL_MANALEECHAMOUNT with...
  2. guiismiti

    One house per account - simple LUA, does not require DB modifications

    Someone requested an adjustment for VIP players to have a higher house limit in their account, so here it is. NOTE #1: I used the function "player:isVip()" as an example, you are gonna have to use your own method to check if the player is VIP or not. NOTE #2: I didn't test it but it hasn't been...
  3. guiismiti

    [12.x] OTServBR-Global

    lib/core/quests.lua
  4. guiismiti

    Who hit most get storage TFS 1.3

    1 - to make it last for 5 minutes, you need to set the storage value as the current time. Then, when you need to test the value of the storage, you get the time again and check if 5 min have passed. To set the storage as the current time: player:setStorageValue(Storage.BlackKnightKill...
  5. guiismiti

    Who hit most get storage TFS 1.3

    yes: local player = mostDamageKiller:getPlayer()
  6. guiismiti

    Compiling Error LNK1104

    what tutorial are you following?
  7. guiismiti

    Who hit most get storage TFS 1.3

    This is what I did for monster "Black Knight" in my server monster/black_knight.xml <script> <event name="BlackKnightDeath"/> </script> creaturescripts/creaturescripts.xml <event type="death" name="BlackKnightDeath" script="other/black_knight_death.lua" />...
  8. guiismiti

    [Lua][TFS 1.x] Talkaction to randomize character mount and outfit

    Yes, and also lookAddons and lookTypeEx
  9. guiismiti

    [Lua][TFS 1.x] Talkaction to randomize character mount and outfit

    You need to complete the outfitList with the outfits you want to include (check outfits.xml). I didn't test this code. local outfitList = { [1] = {136, 137, 138, 139}, -- female outfits [2] = {128, 129, 130, 131} -- male outfits } local unlockedOutfits = {} local playerSex =...
  10. guiismiti

    [TFS 1.3] [8.6] Server Freeze/Lag when player die

    Try creating a new database - but use Aria instead of InnoDB as table engine. Replace ENGINE=InnoDB with ENGINE=Aria in your schemas (server and znote) and in the scripts in the migrations folder. Edit: tell us how long it takes to import your schemas to the database when using InnoDB as...
  11. guiismiti

    Vip with 30 days storage

    To update a player's storage value, he must be online. On login, check if 30 days have passed so you can reset the storage. To know if 30 days have passed, you will need to do what @zbizu proposed so you are able to know when the 30 days started.
  12. guiismiti

    Check monster name in area

    centerPosition is the center of the area you are testing rangeX is the range, from the center, of the scan in the X axis rangeY is the range, from the center, of the scan in the Y axis local centerPosition = Position(566, 275, 8) local rangeX = 8 local rangeY = 7 local spectators =...
  13. guiismiti

    Monsters Doenst Pass on field?

    I can't remember it, but I think it resets once the player leaves and the monster has no target. I am really not sure, though.
  14. guiismiti

    Monsters Doenst Pass on field?

    recently - if the creatures takes damage, it will go through fields until it reaches the player in melee range and hits him 1x. For creatures with ranged attack - it will go through walls until it reaches the desired range to the player and attacks him.
  15. guiismiti

    TFS 1.X+ sendCreatureHealth issue with clients 11+

    Yea, I've also posted this earlier today in the conversation in github, to avoid the issue being closed before it is effectively fixed.
  16. guiismiti

    TFS 1.X+ sendCreatureHealth issue with clients 11+

    Hello! Clients of version 11+ have an issue with ProtocolGame::sendCreatureHealth (TFS 1.3). it causes the name and health bar of killed monsters to still show after the last hit and before the corpse is created; name and health bar of gods using 'hide' (with setHiddenHealth) can still be seen...
  17. guiismiti

    [9.1+] Talking Signs

    I rewrote it for TFS 1.3 globalevents.xml <globalevent name="talkingSigns" interval="2000" script="other/talkingSigns.lua"/> talkingSigns.lua local talkingSigns = { ["Trainer"] = Position(30100, 30200, 7) } function onThink(interval, lastExecution) local people = getOnlinePlayers()...
  18. guiismiti

    One house per account - simple LUA, does not require DB modifications

    Hello! I wrote this today for my server, and I remember seeing some unanswered threads in OTLand asking for it. What it does is, it checks for other characters in the same account and then checks the houses table for an owner with that id. There are two advantages over using an extra...
  19. guiismiti

    Lua [TFS 1.3] Help with script logic

    nvm, I got it wrong, post below got it right
  20. guiismiti

    Lua [TFS 1.3] Help with script logic

    You can find the doors array in global.lua Its structure is doors = { [<closed door id>] = <open door id>, So it should look like this if fromPosition.x ~= CONTAINER_POSITION and toPosition.x ~= CONTAINER_POSITION then if not Tile(toPosition):getHouse() and item:getAttribute("wrapid")...
Back
Top