• 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!

RevScripts [OTBR] - max 10 items per title.

walltimer

Active Member
Joined
Aug 5, 2020
Messages
170
Reaction score
26
Hello, is it possible to make ? DOnt see any option in config, and i want to avoid crashes
 
like this, right?


I'm pretty sure this can be done with the onMove event now, but players can still bypass it by using the "ignore cap" option on npcs and buying lots of items
is there option to make NPC not ignoring cap?
 
is there option to make NPC not ignoring cap?
data/npc/lib/npcsystem/modules.lua

change:
Lua:
local a, b = doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack)

to
Lua:
local a, b = doNpcSellItem(cid, itemid, amount, subType, false, inBackpacks, backpack)

In this way, the variable is ignored: ignoreCap
 
data/npc/lib/npcsystem/modules.lua

change:
Lua:
local a, b = doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack)

to
Lua:
local a, b = doNpcSellItem(cid, itemid, amount, subType, false, inBackpacks, backpack)

In this way, the variable is ignored: ignoreCap
ty . what about items per sqm, is it true that if some1 will put mass items on 1 sqm (doing it like 1-2h) it could crash the server? or putting it to exp gate behind the TP, so about 3000items in one time will go through tp?
 
ty . what about items per sqm, is it true that if some1 will put mass items on 1 sqm (doing it like 1-2h) it could crash the server? or putting it to exp gate behind the TP, so about 3000items in one time will go through tp?
it shouldn't, but in case it happens, provide a scenario (a video would be perfect) and report it on github and a fix should be available by someone :D
 
Back
Top