is there option to make NPC not ignoring cap?like this, right?
![]()
3777/config.lua at master · Fir3element/3777
Contribute to Fir3element/3777 development by creating an account on GitHub.github.com
![]()
3777/tile.cpp at aef29d0ac94140c5d095cb1f55a34035e42746b3 · Fir3element/3777
Contribute to Fir3element/3777 development by creating an account on GitHub.github.com
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
data/npc/lib/npcsystem/modules.luais there option to make NPC not ignoring cap?
local a, b = doNpcSellItem(cid, itemid, amount, subType, ignoreCap, inBackpacks, backpack)
local a, b = doNpcSellItem(cid, itemid, amount, subType, false, inBackpacks, backpack)
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?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
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 someonety . 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?