Skip to content
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

WIP: Build Mode #239

Merged
merged 10 commits into from
Apr 15, 2021
Merged

WIP: Build Mode #239

merged 10 commits into from
Apr 15, 2021

Conversation

Zintixx
Copy link
Collaborator

@Zintixx Zintixx commented Apr 15, 2021

This is very WIP but gets the basic infrastructure of building down.
Parsing UGCMap for all buyable land in the game
Parsing FurnishingShop for all buyable items when building
Adjusted parsing for Map to include saleable cubes.
EDIT: Added beginning stages of the Home button functionality

With the home button currently not working, the only build-able land right now would be land you can purchase in the world.

The biggest things that need to happen is:

  • Create a FurnishingInventory. This inventory is all the blocks that you have placed in the world (interior and exterior of your home).
  • Create a WarehouseInventory. This inventory is where all your blocks are stored that are NOT placed anywhere.
  • We need to have all blocks be redirected to the WarehouseInventory rather than in the standard player's inventory
  • Some kind of system to have a specific map ID load all applicable cubes and status of purchased land.
    Housing #73

Maple2Storage/Types/Coord.cs Show resolved Hide resolved
MapleServer2/PacketHandlers/Game/FishingHandler.cs Outdated Show resolved Hide resolved
MapleServer2/Packets/ResponseCubePacket.cs Outdated Show resolved Hide resolved
GameDataParser/Parsers/FurnishingShopParser.cs Outdated Show resolved Hide resolved
@@ -18,8 +19,16 @@ public class RequestCubeHandler : GamePacketHandler

private enum RequestCubeMode : byte
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what Cube really means in the source and in this handler? Because i'm confusing it between blocks and the house. Maybe we should rename the handler/packet to something else

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does seem to be a mishmash of different content. I'm not really sure what better name there could be for an opcode that handles both player housing plots and interacting with the world models.

MapleServer2/PacketHandlers/Game/RequestCubeHandler.cs Outdated Show resolved Hide resolved
MapleServer2/PacketHandlers/Game/RequestCubeHandler.cs Outdated Show resolved Hide resolved
MapleServer2/Packets/ResponseCubePacket.cs Outdated Show resolved Hide resolved
@AlanMorel AlanMorel merged commit 627fc45 into AlanMorel:master Apr 15, 2021
@Zintixx Zintixx deleted the building-wip branch April 27, 2021 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants