• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Npc Buy/Seller

Dorianek

Member
Joined
Nov 29, 2018
Messages
252
Reaction score
10
Location
Poland
Hello, I am looking for a working NPC script something ala Djiin seller I found a few scripts under 8.1 and above 80% of scripts do not work 20% crashes mase of compatibility bugs do not need to be unknown what script. above all to work on tfs1 +

Thank you for your help
 
You need trader?
LUA:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)              npcHandler:onCreatureAppear(cid)            end
function onCreatureDisappear(cid)           npcHandler:onCreatureDisappear(cid)         end
function onCreatureSay(cid, type, msg)      npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                          npcHandler:onThink()                        end

local shopModule = ShopModule:new()
npcHandler:addModule(shopModule)

shopModule:addSellableItem({'boots'}, 14353, 30000, 'boots')

shopModule:addBuyableItem({'bla boots'}, 14347, 1800000, 1, 'bla boots')


function creatureSayCallback(cid, type, msg)
    if not npcHandler:isFocused(cid) then
        return false
    end
    return true
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())
 
I can ask you a complete script because something does not work as I change

if you re beginner, i suggest you to try your modifications each 2-3 changes u do at the script, also use print(1,2,3....1000) so you can check where is your problem, and we can help you faster this way.
 
I am looking for the whole npc best trader or Djiin
thats where u are wrong kiddo, u can find several "ultimate npc dealer" but if it does not work with your SVN then u must work hard to achieve your objective.

you can take the tables from those npc and adapt it to yours.

we can help you, but u must work too. atleast i wont do u all the job, but i can guide you
 
Back
Top