Repository navigation
improve: house system - #140
Merged
Merged
Conversation
- Added new config `maxHousesLimit ` to limite player hosues like TibiaRL (3 houses via !buyhouse) - Added new lua funcitons player:getAllHouses and player:sendHouseAuctionMessage - !buyhouse now uses player:getAllHouses() instead of player:getHouse() - Now players can bid on one house at a time, like in Tibia RL.
Contributor
|
This PR is stale because it has been open 45 days with no activity. |
Also fixed door description for Guildhall
- Check houses limit in house transfer via cyclopedia and !sellhouse command - New checks in !sellhouse command: check if new owner have premium time, check if new owner is a guild leader to receive a GH, check max houses limit
FelipeArruda
pushed a commit
to FelipeArruda/crystalserver
that referenced
this pull request
Mar 8, 2026
* fix: house auction system - Added new config `maxHousesLimit ` to limite player hosues like TibiaRL (3 houses via !buyhouse) - Added new lua funcitons player:getAllHouses and player:sendHouseAuctionMessage - !buyhouse now uses player:getAllHouses() instead of player:getHouse() - Now players can bid on one house at a time, like in Tibia RL. * Code format - (Clang-format) * Lua code format - (Stylua) * fix: only guild leaders can buy a guildhall Also fixed door description for Guildhall * feat: make guildhall configurable * fix: ensure to reset house state when player lose a house * fix: limit houses by account in !buyhouse command * fix: limit houses by acocunt in house auction * fix house transfer - Check houses limit in house transfer via cyclopedia and !sellhouse command - New checks in !sellhouse command: check if new owner have premium time, check if new owner is a guild leader to receive a GH, check max houses limit * fix: set toggle guilhall as variable --------- Co-authored-by: GitHub Actions <github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
maxHousesLimitto limite player hosues like RL (3 houses by acocunt)player:getAllHousesandplayer:sendHouseAuctionMessage,Game:getHouseCountByAccount(accountId)