• 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!

npc

  1. G

    Lua TFS 1.5 Nekiro 772 sell empty vial in npc

    Helo, I have a question about selling empty flasks to npc's (like Xodet). In this protocol the buy function need a item subType, which is for example equals 7 for mana fluid. shopModule:addBuyableItem({'mf', 'mana fluid', 'manafluid'}, 2006, 55, 7, 'mana fluid') And buying is working great...
  2. VitoxMaster

    TFS 1.X+ NPC trade window with filter based on item attribute

    Hi everyone! I was wondering if there’s an easy way to implement the following mechanism: When opening the trade window with an NPC, I’d like to apply a filter that hides items in my backpack that have specific customAttributes from being displayed as sellable. In other words, I have an item...
  3. G

    Lua TFS 1.5 Nekiro 772 real blue djinn behaviour

    Hello everyone, I'm struggling with the npc script, which I would like to work like real Blue Djinn from old days. I'm using clean Nekiro 1.5 772 downgrade with default npc libs from this distro. This npc should be able to buy or sell items only if the player have correct storage value. The...
  4. P

    Lua NPC Guardian

    I'm creating an NPC so that if the player gets the magic word right, the player is teleported to a specific area. The NPC can't interact, it just hears the right word and teleports the player, but it's not working. local internalNpcName = "Guardian" local npcType =...
  5. Adorius Black

    OTClient module npctrade.lua

    Hi. I have on server one NPC that sell items for Premium Points and I am wonder if there is possible to show in npcwindow.lua modal window CURRENCY as "Premium Points" if NPC is called "Premium NPC" if not then leave CURRENCY as its "gold". I found its in otclient/module/npctrade.lua on line 3...
  6. R

    Lua [Canary] NPC with Daily / weekly.

    I'm looking for a script for "Canary 1.3.0" to create an NPC that will handle daily and weekly missions. Daily Missions: Some monsters, for example: 500 rotworms [20] 500 cyclops [30] 500 tarantulas [40] 500 dragons [50] Rewards for completion: some experience points and gold. Weekly...
  7. A

    NPC addons items seller Canary

    Hello, im going to bring a new npc that i've been working with on Canary servers, it worked for me and. NPC sell real items for addons, you can edit the prices. I edited the npc with the most communs items for addons. Hope you like it :)
  8. S

    C++ "invalid key to 'next'" when trying to read a list inside a LUA STATE in C++

    I'm trying to add elements to the NPC Trade, so when the "luaOpenShopWindow" method is triggered I'm sending a list of IDs and Quantities, something like this: {"id":2160,"buy":5000,"sell":0,"requiredItems":[{"count":10,"id":2152}],"subType":1,"name":"crystal coin"}...
  9. Travisani

    TFS 1.X+ Npc Quentin Player Heal on Lua.

    Someone know how to do a heal and remove player condition like a real tibia on NPC's using TFS after say heal on temple npc? Using the last files: GitHub - otland/forgottenserver: A free and open-source MMORPG server emulator written in C++ (https://github.com/otland/forgottenserver) Not work...
  10. J

    Help me with a NPC please

    I am looking to make a specific NPC. When asked, the NPC opens up a parchment for you where you can enter several lines. Example: "-Hi" "-List" <parchment is opened> In the parchment you should be able to enter several lines. After the lines have been written and the parchment has been...
  11. E

    Lua Making NPCs

    Hello there OTland. I am trying to make NPCs using tfs 1.4.2 Firstly i make for example: 1. data/npc > Creating test_npc.xml 2. data/npc/scripts > creating test_npc.lua Making it with really easy code such " function onCreatureSay(player, type, msg) if msg:lower() == "hi" then...
  12. D

    Problems when talk with npc

    I'm using Sarah's source (TFS 1.5): GitHub - MillhioreBT/forgottenserver-downgrade: TFS Downgrade 1.5+ is an engine based on nekiro downgrade but highly updated with current tfs code, it also has the lua modules divided and uses lua5.4 (https://github.com/MillhioreBT/forgottenserver-downgrade)...
  13. Evil Hero

    Lua [TFS 1.6+] Converting NPC's (Jiddos system) into new NPC System (Evil Heros system)

    For anyone who wants to use the new NPC system (lua based NPC's) proposed as a pr at current master branch (included in the upcoming 1.6 release) I'll help you re write NPC's or create from scratch based on a detailed outline into the new NPC system. There is 2 ways on how to request: 1) You...
  14. Z

    cannot open data/npc/lib/npcsystem/main.lua: No such file or directory

    0.4 Good afternoon everyone, I'm encountering an issue that's affecting all the NPCs on my server. When I launch the server, the following error message appears for all the NPCs on the map: After researching the error, I found a thread with essentially the same problem: Windows -...
  15. W

    modules.lua:1229: attempt to compare boolean with number

    When trying to buy from any NPC and click too fast on buy an item many times, the user gets a message saying "You can't buy it so fast" and the console shows this error: [Error - NpcScript Interface] (Unknown script file) Description: data/npc/lib/npcsystem/modules.lua:1229: attempt to compare...
  16. wizinx

    TFS 1.X+ NPC system nekiro 7.7

    Hello everyone. I have been trying to solve this problem. The NPC's text is visible only to the player they are talking to ("me") and should be visible to everyone. And there is no queuing system.
  17. potinho

    TFS 0.X Buy things on NPC with Bank Balance

    Hello guys, Im trying to merge the solution from this post (TFS 0.X - Buy items with money backpack or bank balance 0.4 (https://otland.net/threads/buy-items-with-money-backpack-or-bank-balance-0-4.260563/post-2520072)) into my sources, but im failing. None errors when compiling, but in game it...
  18. VitoxMaster

    Solved NPC with more than 255 (limit) items on list [OTVclientv8 + TFS 1.5 Nekiro 8.6]

    Hi everyone. I couldn't find similar topic so I've decided to post it. Perhaps someone will be able to guide me or provide some tips / reasonable solution. On my server I wanted to have just 1 NPC who buys all the creature products. Everything was fine when list of items was smaller than 255...
  19. tdp157

    OTX2 - npcs is not teaching spells to cast runes.

    Hello, I have an otx2 0.7 server codename Lord Zedd My NPCs cannot teach rune casting magic, only instantaneous spells. Below is the npc script that teaches spells to sorcerers: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler)...
  20. donabimbo

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

    I have a problem that when purchasing the exercise weapons with the npc, it only has one charge. I am using this scripts local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid)...
Back
Top