Conversation
|
Just out of curiosity, what was added to items.otb? |
item flag corpse (1 << 29) - for items with "loot" in context menu |
Zbizu
left a comment
There was a problem hiding this comment.
let's handle new otb flag:
+FLAG_LOOTABLE = 1 << 29
The same number of items is maintained, but the difference is that now categories were added for those items that had a category defined in appearances.dat. items.otb now has a new attribute called category and its key is 48 as declared HERE |
Perfect explanation. |
I use a small program to compile the items.otb |
Pull Request Prelude
Changes Proposed
These changes add the bases to work in another PR the QuickLoot system
Add:
items.otbNotes
This PR if merged will be the precursor to working QuickLoot, however I haven't made the decision yet whether to do it from sources or wait for the new
onParsePacketmethod #4043, no matter what, I wanted to do this system in two parts.Tests
As the QuickLoot system is not yet ready in this PR, you can do some tests to test these changes with a simple script
script.luaIn the example i put 16, but you can choose the category you want.
the container will update, however if you want to see the changes in the QuickLoot window you must logout and login, as I said the system is not ready, but the bases are already there and are working.
For remove category:
player:setLootContainer(16, nil)Help
If you have any suggestions on how to improve the code let me know <3
Extra Info
Number of items to which categories were added:
from appearances.datIssues addressed: Nothing!