• 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+ addTravelKeyword with storage

    ok, try say carlin without saying hi first ( do not have his focus)
  2. 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"
  3. Klank

    TFS 1.X+ addTravelKeyword with storage

    Try code again, i edited it
  4. 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...
  5. 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
  6. 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...
  7. 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)
  8. Klank

    Feature [TFS 1.3] Monster Levels

    Yes, correct :)
  9. 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...
  10. 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.
  11. 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...
  12. Klank

    Althea ¤ A New World – Official Discussion

    10.98, with some sprites from newer versions. Some old as well, new magic wall has been replaced with the old school for instance.
  13. Klank

    Althea ¤ A New World – Official Discussion

    Initial wikipedia is released. Visit Althea Wikipedia, for more details of the game.
  14. Klank

    OTClient Otcv8 floor view (tfs 1.5 8.60 Nekiro)

    I added it for TFS 1.4.2, with otcv8 modifications. After i edited the sendMap() it worked, however, i'm having issues seeing monsters/players on deeper floors.
  15. Klank

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

    Then your code is less flexible and there is something else wrong with your code, because when i add new arrays with 100% drop rate, 4 attributes are rolled. I did no other changes than adding arrays on the tier. You see a rare sword (Atk:17, Atk Spd:1.96s, Def:13 +1). It weighs 35.00 oz...
  16. Klank

    Althea ¤ A New World – Official Discussion

    Some of you already followed the Althea project through the old mapping thread. Thread pictures are no longer active, and Althea has become more than just map showoff. The project went on pause for several years, but its back! The server is in an Alpha stage, where an “Closed Alpha” were live a...
  17. Klank

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

    If you allways want it to be 3 attributes, then you set the chance to 100% for [2],[3],[4] ( not 100 % sure if this possibly will give 4 attributes or not, you gotta test). However, to always have 3 attributes, you will need to provide 3 attributes as well. What i explained above is kind of...
  18. Klank

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

    In the tiers table.... [2] = { prefix = 'rare', chance = { [1] = 1000, -- 1% chance to roll rarity, first colum is used to defined chance of dropping rarity [2] = 10000 -- 100% chance for second stat [3] = 10000 -- 100% chance for a third...
  19. Klank

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

    In the tiers table you increase the chance, first array is the roll chance, the second is the chance of rolling a second attribute and so on. Chances is 0 - 10000 based on what you set the local roll value to. Inside the onDropLoot you have to roll the corpse (which is a container) : for i =...
  20. Klank

    Rising Continent - Development

    Fantastic OT ! Enjoy :)
Back
Top