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

    TFS 1.X+ HP/MP BUFF No error - Crash.

    Here this works, tested OK. However this is revscript, so if you have it just drag&drop into your "data/scripts", if not, remove the local action = Action(),local login etc.... local config = { duration = 3600, storage = 22411, } local function stopBoost(playerID) local player =...
  2. Klank

    TFS 1.X+ HP/MP BUFF No error - Crash.

    You have to check if player still exists in events. Event will still happen even if player has logged out. So only execute event if player still exists.
  3. Klank

    Althea ¤ A New World – Official Discussion

    Open Alpha will close at 10.03.24. With that in mind, rarity chance, drop rate of loot, scrolls and supply bag is increased. If someone would like to test Althea prior to its closure, your chance is now :)
  4. Klank

    TFS 1.X+ Set loot rate *1 to specific creatures

    local lootRate = { ["rat"] = 1, ["dragon"] = 1, ["rotworm"] = 2, -- Choose your rate } local monsterName = mType:getName():lower() local customRate = 1 if lootRate[monsterName] then customRate = lootRate[monsterName] end if not player or player:getStamina() > 840 then local...
  5. Klank

    Althea ¤ A New World – Official Discussion

    Alpha test is going well so far and a lot of bugs are being resolved! • Monster damage was reduced • Monster above lvl 50 is called «strong» and has a 10% chance of spawning. • Item rarity system is allways under investigating for balance changes, what we has identified is to high attributes...
  6. Klank

    Althea ¤ A New World – Official Discussion

    For those who want to participate the Althea test 15th of december, track down bugs, give feedback and suggestions you can now sign up an account. Client download will be available prior to launch. Follow our discord channel for other news. Sign up: Register Account Discord: Join Althea Discord
  7. Klank

    TFS 1.X+ addTravelKeyword with storage

    Thats not the reason, when you day carlin and you have storage 1 it sets it to 2 The other carlin process the carlin travel function
  8. Klank

    TFS 1.X+ addTravelKeyword with storage

    But i told you i edited the code. Its only Creaturesay.. Now. Just copy the code i posted and try run it, with and without focus
  9. Klank

    TFS 1.X+ addTravelKeyword with storage

    ok, try say carlin without saying hi first ( do not have his focus)
  10. Klank

    TFS 1.X+ addTravelKeyword with storage

    if bugs continue, show the bugs. It wont work like you want. your just adding player, a text, there is no data in the way you use "player". you could might as well write "thisIsAsArgument"
  11. Klank

    TFS 1.X+ addTravelKeyword with storage

    Try code again, i edited it
  12. Klank

    TFS 1.X+ addTravelKeyword with storage

    You have only added an argument named player, the player arguments needs the userdata. For instance each NPC functions have (cid) will grant you the userdata of player. function StdModule.travelDiscount(player, discounts) has only player past as nothing. If you try to print(player) u will...
  13. Klank

    TFS 1.X+ addTravelKeyword with storage

    ah you did not have it in any functions, Try add your code inside function onCreatureAppear(cid) or function onCreatureSay(cid, type, msg) Im ont very familiar with using keyword handler
  14. Klank

    TFS 1.X+ addTravelKeyword with storage

    Try this local function addTravelKeyword(keyword, cost, destination, playerID) local player = Player(playerID) if keyword == "carlin" and player:getStorageValue(PlayerStorageKeys.postman.Mission01) == 1 then player:setStorageValue(PlayerStorageKeys.postman.Mission01, 2) end...
  15. Klank

    TFS 1.X+ NPC, When purchasing they do not bring me the charges.

    To give item with charges; player:addItem(ID,COUNT,true,CHARGES)
  16. Klank

    Feature [TFS 1.3] Monster Levels

    Yes, correct :)
  17. Klank

    Feature [TFS 1.3] Monster Levels

    monster ondrop. If ur using eventcallback its in data/scriptseventcallbacks/monster/default_onDropLoot.lua Then you call it like this ( when you have added a method in luscript.cpp) local monsterLvl = self:getLevel() local customRate = 0.5 local newLootRate = monsterLvl * customRate -- Increase...
  18. Klank

    Feature [TFS 1.3] Monster Levels

    Yes, i do it by lua. Create a method for getting the monster level, look at for instance player:getLevel() in luascript, copy it and change it to get lvl from monster. Then you can use that method to scale the loot rate in ondrop event.
  19. Klank

    Feature TFS[1.4.2] Questlog/Task counter: Storage tracker in description as string

    Greetings! I was in need of a task tracker inside the questlog and i did not find anything here on the forum, except for TFS 0.X versions. So i wanted to share this, as i think many could need it. I am fairly new to C++ so It is made with assistance from ChatGPT and it has 1 flaw, it does not...
Back
Top