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

    Lua NPC travel by storage not working

    Hello my friends! I'm making a NPC for travel to Gengia, Pyro and Oken in my server. But my npc can't travel to destination on say "yes". Here is my script: if (msgcontains(msg, "gengia")) then if(vip.hasVip(cid) == true) then npcHandler:say("Do you want to sail to...
  2. Mhako

    NPC script issue. Hi and bye working

    Hello, I was wondering if anyone can help me with my NPC problem. NPC loads properly. Npc responds to "hi" nothing else works. I'm using 0.3.6PL1 with Emporia VAPUS NPC's Example: Player: Hi -> answer: Uzon: Greetings, traveller "Playername". Where do you want me to fly you? Player...
  3. A

    C++ Npc for Promotion

    Hello guys, im searching for a script that gives the player a promotion. I have 3 classes, Knight, Paladin and Wizard, each of one has 2 promotions to choose. Knight can choose between Guardian Knight and Berserk Knight I am looking for a npc script that changes its vocation on level 35...
  4. S

    [Help] About Npc outfits Tfs 0.4 8.6

    Good afternoon! Help please I've done everything I searched in several places but I did not think I wanted npc that gave outfits Played arrived npc Player: Ola Npc / Barbaro: Ola | PLAYERNAME | You gotta stick here, congratulations, I'm Barbaro that destroys Orpheus, let's jump on this subject...
  5. S

    NPC's Dont Talk TFS1.2

    I have loaded all the npcs to the game, but they don't talk when I say hi. How can I get them to talk? TFS 1.2 7.72 client Here is a picture of the error. File Links: default.lua - Codeshare npchandler.lua - Codeshare
  6. AdiMit

    Lua Guard NPC - separate distance and melee attacks | error

    Hello :) I'm currently using the [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8 by Printer, from the thread: [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8; I was trying to redo the guard NPC(s) so that they would attack the PKers with melee attacks at the range of <=1; and with...
  7. tnecniiv

    Npc promotion system 1.2

    hello guys i need help with an npc that will check for level 50 and offer a promotion but the promotion branches out to two different types of vocations the promotion will cost 30,000 so for instance let say i have a knight that is level 50 he could have a choice to go to a defender or the...
  8. elnelson

    Lua NPC on weight capacity

    Hello, otlanders im experiencing an issue, i have a reward shop (like Premium shop with npc) so, when i buy an ítem the npc ignores capacity and give ítems even when capacity is overloaded. heres my lua scripts (tfs 0.4 rev 3884)... local keywordHandler = KeywordHandler:new() local...
  9. F

    Lua Question on NPC System: Buying things

    Hello everyone. I have a few questions about the npc question for the trade function. Things I know how to do, but wanna do "better" are: -Send trade window only if specific storage is on X -Trade more items, the more storageValue you got -Trade only on special word (not trade) -Buy with...
  10. K

    Lua NPC sell each time other mushrooms

    Hello Is there anyone here who could help me in edit NPC to sell random mushrooms? I tried to edit the Santa Claus script but nothing came out of it dofile(getDataDir() .. 'npc/scripts/lib/greeting.lua') local keywordHandler = KeywordHandler:new() local npcHandler =...
  11. X

    NPC Trade issue, problem with item list.

    Yo guys, after couple of hours fighting with that problem, i want to ask you for some help. I have a npc, Grizzly Adams, of course you know that after getting some points (20,40..100) we can sell him more creature products. Yeah, and there is problem. We have 2 players : First, with 20...
  12. Joe Rod

    CreatureEvent onTarget Interact with Npc

    Hi guys, with this you would greet the npc and open its shop (if has) only target it! Tested on OTX3, it will work on TFS 1.x i guess combat.cpp find: if (player->hasFlag(PlayerFlag_CannotUseCombat) || !target->isAttackable()) { now go to a line who look like this (4 lines below): return...
  13. Joe Rod

    CreatureEvent onLook Interact with NPC

    Hi guys, with this you would greet the npc and open its shop (if has) It works on directly look and look on battlelist This is really simple, but someone could find it useful data/events/scripts/player.lua at the beginning of file paste this local minDist = 5 --this will be the min...
  14. Udun

    Solved Hi. I need help with a mission npc that recieve items but the script dont work.

    Hello all, I have this problem with this npc, must be simple to solve... I need that the npc accept all the items at the same time and give the player a storage id, but the npc doesn't work... Anybody knows how fix it? Thanks alot! local keywordHandler = KeywordHandler:new() local npcHandler =...
  15. wa$yll'dbk

    NPC - old talk system on 8.6

    Hello everyone. I want ask you how I can set talk with NPC to working like old tibia? There is something in the modules.lua: -- Constants used for shop mode. Notice: addBuyableItemContainer is working on all modes SHOPMODULE_MODE_TALK = 1 -- Old system used before Tibia 8.2: sell/buy...
  16. Margolin

    NPC Limited Quantity of Items

    Good day everyone, Im wondering if it's possible to create a NPC that only sells certain quantity of items. Let's say npc can only sell 10 amulets of loss per day. Thanks in Advice
  17. M

    Avesta 7.6 | 100x charges runes variable

    Hi again, i'm looking for a way for npc runes to sell the number of charges the player wants (from 1x to 100x). Something like this: elseif msgcontains(msg, 'great fireball') or msgcontains(msg, 'gfb') and ShopModule:getCount(msg) <= 100 then charges = ShopModule:getCount(msg)...
  18. Snavy

    Linux NPC - walkable

    It turns out that my previous solution for the same problem hasn't worked out that well.. There seem to be more than one or two NPCs that are walkable... so I've decided to read the part of cpp code where it check wether the NPC is walkable or not and I've been thinking if it would be a good...
  19. P

    Lua NPC configurable

    Hey guys, I have a series of script that only start when god talks "/start [event]"t etc and wanted to put them in automatic, for a certain time to run the "/start [event]" Is there any npc that has god access, and which is configurable on which day and time does it speak / start? Thanks in...
  20. A

    TFS 1.2 .NPC Question

    Hello im trying to make that an npc gives me a container with items inside for a quest, im using the real cipsoft npc from 7.7, the ones that are in .npc files, here is an example. # GIMUD - Graphical Interface Multi User Dungeon # albert.npc: Datenbank für den Heiler Albert Name = "Albert"...
Back
Top