-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixed Hired Merchant duplication & Store Remote Controller inventory checking #277
base: master
Are you sure you want to change the base?
Conversation
I recommend re-formatting your spaces formatting using intellij ctrl+alt+L and always put curly braces around conditions even if there is only 1 line of code inside to be consistent with the rest of the project. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good fixes, just need some minor changes.
chr.setHiredMerchant(merchant); | ||
c.getWorldServer().registerHiredMerchant(merchant); | ||
chr.sendPacket(PacketCreator.getHiredMerchant(chr, merchant, true)); | ||
System.out.println("new shop creation."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove println. Should use Slf4j logger if something needs to be logged. This doesn't need it though.
Description
1. players were able to open their shop from any map using packet.
added Store Remote Controller inventory & location checking.
Steps:
1.open merchant and go any map you like.
2. send this packet:
3B 00 01 0D 00 54 30 35 30 34 32 36 37 30 32 31 38 58 01 00 00 00
3. merchant opened
2. players were able to duplicate their merchant across FM rooms.
Steps:
1.open merchant regularly put item and leave the shop.
2. go to other room in fm.
4.send this packet
7B 00 00 05 04 00 6C 61 6C 61 00 01 00 76 C0 4C 00
5. put item and open shop.
6. merchant duplicated.
Checklist before requesting a review
Screenshots