-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat(Core/ItemHandler): Optional item recovery #2442
Conversation
hey @IntelligentQuantum thanks for the PR
can you elaborate more? what features does this PR implements and in which way are they required to be in the core? |
Features of this PR:
This PR adds 3 configs:
These configs allow to choose the method, quality and item_level of the items that could be logged in the table Do we need this? Here a video made by @IntelligentQuantum that shows how this feature works (using the AzerothJS API). https://mega.nz/#!pyYxlYyJ!vy6-5kGcBiTmE6xOOpbBWPuSAZvhhi2jGiFo4FXXHfM |
thanks @Helias for the description and @IntelligentQuantum let us know when the PR is ready to be reviewed |
Hi @FrancescoBorzi it's ready |
As i used this feature before, There is an issue when you sell items to vendors there will be no log |
Tested successfully |
@IntelligentQuantum looks good 👍 Now waiting for a tester feedback. |
I'm trying to test this PR but I got the following error during the import of db characters updates with latest master revision:
Probably you need to generate again the sql pending file using Anyway, I imported the table recovery_item manually but the feature does not work, I don't kno why. |
@Helias no, we can't merge to master if it gives such an error. I've tried to put a different id (just re-generated). Can you please give another try? Also @IntelligentQuantum just a tip for future: never push changes to your |
@FrancescoBorzi Kk sorry |
I rebuild everything and checked the worldserver.conf, probably I missed something, now it works. |
quite interesting, don't you think it will flood the DB though? I have seen the configuration options but still and thank you @IntelligentQuantum |
It would be awesome if it stores the unixtime of deletion in db, so we can implement an option for delete entries after X amount of days. |
#0 0x0000000000c751ab in GetUInt32Value (index=, this=, index=) at ......../src/server/game/Entities/Object/Object.h:164 Crash ItemHandler.cpp |
@mynew open a new issue please. |
Just in case the issue won't be created, try moving all that new code on line ~797(ItemHandler) to the beginning of the "if" so we avoid using pItem after calling StoreItem. That or save the entry before |
That crash made me wonder, what if the seller bought back the item? He can claim the recovery but he has the item... |
I think that the block of code that causes the crash is used to avoid that, it's deleting from the recovery table after buying back |
Oh yeah. |
Hey guys @BarbzYHOOL Actually we can flood db with CharacterRecovery && LagReport, btw we have configuration and ItemRecovery work like CharacterRecovery. @GitVerge @Nefertumm tnx for help. @mynew Can you test this diff please Crash.diff Sorry my english is bad! 😄 |
It is for the AzerothJS