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

    Automatic done task?

    I have a task to kill a certain number of monsters. How to write a function in cavebot to check the status of the task. When I did it, he stopped killing. And he went to hand over the task to the NPC.?
  2. equero

    Looking for simple Tasker 8.6 client

    Hey I'm looking for NPC Tasker who gives you money or experience for task completed. i could not find any. thank you for help. It's tfs 036 propably for 8.6 tibia
  3. Fifflaren

    Npc default channel

    Hello Otland! I have this problem where all my npc's respond in npc channel as they should but they wont listen to anything you say if its in npc channel. For exampel I have a rune npc so I walk up to him and say "hi" he responds in npc channel and npc channel opens but then if I say "trade" in...
  4. C

    Npc giving attribute permanently

    TFS 1.3.10 Hello, Is it possible to give an attribute permanently with an npc and how can I do it? invented storage = 600005 Npc.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function...
  5. Yan18

    TFS 0.X Items List with Teleport

    Hello everyone, I want to do a script that the Player choose an item by list item from NPC and after Player take the Item, he will be teleported to a X position. I know the logic, how to construct the script, but I don't know how to work with NPC yet.
  6. Lurk

    Lua Npc can only but 30 at a time

    Hello, I have a tfs 0.4 server and whenever a player has excessive items in containers (bcakpacks) and sell more than 40 at a time to a npc it will causes lag, probably because it has to check every slot in the player backpack idk, is there a way to limit the amount of itens the npc can buy at a...
  7. kuhi

    Lua Attempt to index global 'MONSTER_ID'

    I'm trying to code a task npc, I'm trying to debug with selfSay but I don't understand why it's getting the variable like global not local... maybe I'm wrong and that's not the problem but I'm getting mad trying to solve this xD I'm using OTHire 0.0.3 btw local keywordHandler =...
  8. A

    Script Npc: doPlayerAddItem

    Hi, im copy a code from npc sell items but if i buy amount less than 20. used 2 slot in inventory and bought four instead of two i bought 10 small healt potion and used 5 slot in bag my question is how can I use only 1 slot. if i bought 2 health in bag appear as 4 Sorry for my bad...
  9. C

    Suddenly I can't buy from NPCs anymore.

    Until this morning I was playing normally, but now suddenly I can't buy from npcs... I have a backup server that used to work 100% and even this backup isn't working... There is no error on distro. All I did from this morning until now was mapping in RME. Any idea what could be causing this?
  10. DaBlauwk

    Lua NPC Interface

    Anyone has a fix for arkulius problem? Arkuliuss.lua local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local Topic = {} local storageMain = 65100 local storageKill = 65101 local greetMsg = { "...if the...
  11. M

    TFS 1.X+ Removing a backpack with items NPC Function

    The code works like this: When I say YES The NPC trades a bunch of items (runes) from my Backpack and give me a item... This part is working fine at all.. There are two things not working as i want: First one is that if I have more than the necessary number of items (runes) in table it will...
  12. H

    Npc Death

    Is it possible to create a npc "Death", when a player pays an amount and speaks a name, npc kills the chosen player?
  13. elnelson

    [0.4] Hostile NPCs.

    Hello otlanders, i saw a interesting function; selfMoveTo. so i was wondering if its possible to make roaming NPCs in dungeons like normal players hunting creatures. so if you get close to him he will threat you with some warnings like "leave" or "dont get closer" if you dont leave or get...
  14. Berciq

    Lua TFS 1.3 NPC reward for few ingredients

    Hey supprorters, I have dull problem, I just don't know how to connect all 5 requirements for reward in code line I was always editing script that checks if the item count is higher than 0. Now when I want 5 items to get one reward I don't know how to make them all work together and remove them...
  15. -vG

    Lua Npc buy with backpack

    Hello people, when buying rune pack he buys only 20 each packet being 100 runes how can I fix it? TFS 0.3.7 version 8.60 lib -> npc.lua function doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack) local amount, subType, ignoreCap, inBackpacks, backpack = amount...
  16. elnelson

    Solved NPC Repair equipment

    Hello otlanders, i got a durability system (TFS 0.X - durability system), when durability is 0 the item breaks and transform the item to itemid = 2256 (metal trash) but sets the name of the broken item: example: You see dragon hammer. It weighs 3.00 oz. ItemID: [2256]. So i need a NPC that...
  17. luptonicedtea

    NPCs referencing SQL database

    Hello! The server is TFS 1.3. I'm trying to make an NPC who references the AAC database to determine whether or not to send someone somewhere. I have added a column in znote_accounts called `adventurer`, which is a boolean. The person uses shop points to acquire the "adventurer" status, and once...
  18. Olympz

    No need for money on hand?

    Hello, Ive just started my own server, its a 10.98 client, and i wonder, how do i make it so i dont need money on me to go with boat or buy anything? like it goes from the bank automaticly? Also i wonder how i can buy promotion on this client? I went to the King in Thais and said Hail the King...
  19. P

    Lua error console npc

    I used OTX2 (Tfs 0.3.7) and not working this script [2/10/2018 1:52:52] [Error - NpcScript Interface] [2/10/2018 1:52:52] data/npc/scripts/simple_task.lua:onCreatureSay [2/10/2018 1:52:52] Description: [2/10/2018 1:52:52] data/lib/100-shortcut.lua:260: attempt to index a boolean value...
  20. Helliot1

    OTX Set Npc Skull

    I can't put a skull in a Npc using OTX.. I put in npc.xml this "skull=green" and "<flag>skull="green"</flag>" But nothing this is working..
Back
Top