Discussion in 'GlobalEvents, Spells & CreatureEvents' started by Printer, Oct 6, 2015.
It is possible to avoid the use of trade?
By means of the trade they can steal the articles of the house!
You're right, the original code only works if there's one character invited / subowner.
The code snippet you provided works better, but would also allow my character "Red" to move an item if their invite list had a character named "Predator"
if (house ~= self:getHouse() and not string.find(house:getAccessList(SUBOWNER_LIST):lower(), "%f[%a]" .. self:getName():lower() .. "%f[%A]") then
if you want to match exact name, should work
Thanks guys for pointing that out, completely overlooked that! Something I'll keep in mind next time I use string.find().
Now that you guys reminded me about this system (I no longer use it) there was one other thing that players were doing but I forgot to post here:
If you place a backpack/bag down on top of a tile --> open it --> then in the inventory area press the "up arrow" you can bypass the onBrowseField check and take the items from the browse field window.
Maybe you guys have a solution for that one?
Maybe an onUse check when trying to open the container following the same criteria as other checks could do it.