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

    [TFS 1.0] (xml) Son of Verminor outfit not changing (and others)

    I also had the same problem and I tried searching for solution. I didn't find any, but I dealt with it myself. Even though this topic is old, and the original author doesn't seem to care anymore, I'm leaving solution for people like me for the future: Make sure that your "rat" entry in...
  2. Axelot

    TFS 1.X+ Realera 8.0 npcs libraries Help

    I'm glad to hear that. I also want to point out that this solution is not that elegant, but it was best thing I was able to figure out in 10 minutes. Ok You owe me a beer haha. Take care. I made it.
  3. Axelot

    TFS 1.X+ Realera 8.0 npcs libraries Help

    I undestand it helped. Did you try with manafluids with your npc?
  4. Axelot

    TFS 1.X+ Realera 8.0 npcs libraries Help

    Open your modules.lua Use Ctrl+F to find this line: function ShopModule.tradeItem(cid, message, keywords, parameters, node) if you find this line, at the beginning of this function write: if msgcontains(message, 'sell') and parameters.eventType==SHOPMODULE_BUY_ITEM then return false end...
  5. Axelot

    TFS 1.X+ Realera 8.0 npcs libraries Help

    I asked for testing sabre and dagger because as you can see in my testfile an npc sells and buys sabre, but doesn't buy dagger. Please test his response with dagger and post here.
  6. Axelot

    TFS 1.X+ Realera 8.0 npcs libraries Help

    1. Comment out following line, as you did with your example. keywords[#keywords + 1] = "" 2. Do not uncomment following line. You did the right thing removing it. --keywords[#keywords + 1] = "buy" 3. Create an example npc with this code for tests: local keywordHandler = KeywordHandler:new()...
  7. Axelot

    [8.0] - TFS 1.2

    Theoretically by changing NPCHANDLER_CONVBEHAVIOR = CONVERSATION_DEFAULT to CONVERSATION_PRIVATE. But probably you'd have to put some effort to make it work properly. I'm not sure. 8.0 didn't have this feature, so I didn't care much about it.
  8. Axelot

    [8.0] - TFS 1.2

    Just to inform people using this distribution: There is an update ready to download. It adds an easy method of making custom greet messages. You can use it for creating npc's like Blind Orc, Queen Eloise, Umar, Elathriel etc. This code has been adapted from Alkurius and Realera OTS. I should...
  9. Axelot

    Lua TFS 1.2 Hide items atributes

    I didn't dig to cpp file because I still don't think that hiding item attributes from players is something that should be desirable. I just used this example as an argument to show that you can't (easily) hide any argument from any item. However thanks for making it clear.
  10. Axelot

    Lua TFS 1.2 Hide items atributes

    this code is not a function and its not written in lua This is an attribute of item written in xml file. It must be placed between <item> and </item> tags. If you search for "strange talisman" in items.xml you will find an example. If you're looking for ready example of lua function i already...
  11. Axelot

    Lua TFS 1.2 Hide items atributes

    Not me. It was an idea of Sarah Wesker. And you either use custom player: onLook function to hide magiclevelpoints given by xml or use custom onEquip function with example given above or similar. I think there is no other way to get, what you're looking for.
  12. Axelot

    Lua TFS 1.2 Hide items atributes

    U sure this works for all items? I made a test to check if it hides magic level buff: <item id="2323" article="a" name="custom item hat of the mad"> <attribute key="description" value="OTLAND TEST: You have a vague feeling that it looks somewhat silly." /> <attribute key="weight"...
  13. Axelot

    Lua TFS 1.2 Hide items atributes

    Oh boy. Here we go again... Otland is full of examples of this function. I don't know why it was that difficult. Searching for "onEquip" phrase gives many results. Nevermind. I'm quite busy (read lazy), but I'll give you a fast and crude example. Just don't treat it as ultimate solution...
  14. Axelot

    Lua TFS 1.2 Hide items atributes

    In this case you can go to ots/movements/movements.xml and add some custom on equip item script. Just search otland for "OnEquip" examples. <movevent event="Equip" itemid="2663" slot="head" script="yourCustomOnEquipItem.lua" /> <movevent event="DeEquip" itemid="2663" slot="head"...
  15. Axelot

    Lua TFS 1.2 Hide items atributes

    I'm really struggling to understand what arguments you are trying to hide, and why. Can you give us an example?
  16. Axelot

    Lua TFS 1.2 Hide items atributes

    Even tho Sarah Wesker is absolutely right about that hiding description thing, I think I know what you're trying to achieve. If you're using a downgraded distribution where resistances to some elements don't exist, some items might be left with those unwanted "leftovers". So for example if you...
  17. Axelot

    [8.0] - TFS 1.2

    It has been fixed in most recent commit. Just replace playerdeath.lua and it should be fine.
  18. Axelot

    [8.0] - TFS 1.2

    Small fix: In file data\lib\miscellaneous\050-functions.lua at line 21 function doAddExp(cid, amount) throws an error upon use: Lua Script Error: [Action Interface] data/actions/scripts/quests/test.lua:onUse attempt to index a number value stack traceback: [C]: at 0x557361c10372 [C]: in...
  19. Axelot

    [8.0] - TFS 1.2

    Well I'm confused right now. No idea how version of the boost libs would affect "syntax error", you provided but ok.
  20. Axelot

    [8.0] - TFS 1.2

    I'd like to do my best and help you, but I also don't want to pollute this topic with something in my opinion unrelated. Is there any chance, you could repost this issue on Support subforum, so we could continue there? Also there's bigger chance that the other people may join and help you. Did...
Back
Top