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

    Blacksmith NPC TFS 1.0

    Hello! Can someone help me with an npc that you have to pay "X" amount of money to give you permission to be able to perform the BlackSmith. I would not know if blocking the use of the hammer id = "xxxx" would be an option or as, but if someone can help me I would greatly appreciate it...
  2. V

    Spawn Npc's - Corrections made

    Ever wanted to walk around your map and place npc's around the gameworld or forget to set an npc or 2 but don't feel like shutting down the server opening up the map editor and setting the npc's? Or what if you wanted to create last minute npc's? Or even dynamic npcs? Well with this code you...
  3. V

    Load Npc's from lua

    Since I am unfamiliar with how the lua is retrieved in the sources, I used my own means of getting data from a lua file, with that said with this code you can call up npc scripts that are lua defined. So let's get to it. Open up npc.cpp and find this extern LuaEnvironment g_luaEnvironment; and...
  4. flaviiojr

    [TFS 1.3] NPC get level and add experience

    Hello everyone!! I need help with the following function: - if the player has level 8, it will level up to 400 - if the player has 100, it will level up to 400 the limit is up to level 400, no matter what level it will only level up to 400... Thank you in advance, and I count on your help!
  5. athenso

    OTX 3.7 Rebirth with Onlook

    NPC Script: local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid)...
  6. elnelson

    Lua [0.4] Attributes removed (bug).

    Hello, otlanders, i have these trade and auction systems NPC - Private Shop System and this NPC: trying to make them work properly with this random-stats mod [Mod] Random Item Stats The bug is when someone deposit an item in auction/private shop the item loses its special attributes (attack...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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 =...
  17. 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...
  18. 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...
  19. 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...
  20. 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 =...
Back
Top