1. 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.
  2. 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...
  3. 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 =...
  4. 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...
  5. 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?
  6. 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...
  7. 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...
  8. 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?
  9. 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...
  10. B

    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...
  11. -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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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..
  17. villelagui

    NPC Bless Talk

    So, i have all bless npcs on my server, the bless system changes the price depending on the level, till this point it's working great, but the npc always says the wrong price but charges the right one, wanted to know if i can make a math with the basecost + (value per level starting from 30...
  18. DRUlD

    Lua NPC Selling random item

    Trying to add to the NPC to sell a random bag color but sth. doesn't work out for me... Can somebody help me? green bag 1991 yellow bag 1992 red bag 1993 etc. dofile(getDataDir() .. 'npc/scripts/lib/greeting.lua') local keywordHandler = KeywordHandler:new() local npcHandler =...
  19. C

    Lua NPC set storage after player sells item

    I'm using OTX 8.60. I would like to know how I do it so that every time the player sells an ITEM through the NPC Shop he receives any Storage. To illustrate better, we see that in the code below the ITEM Wand of Vortex can be sold from the player to the NPC. shopModule:addSellableItem({'wand...
  20. Togu

    TFS 1.X+ Lua lib functions in NPC

    I have this functions in data/lib/core/skillpoints.lua And they are all working with modal window system. But I want to use the player:resetAllSkills() on a NPC. I've tried but it didn't recognize the function. I know I could copy the code of the function to the npc file, but I want to...