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

fix: house transfer owner only in startup #1621

Merged
merged 6 commits into from
Sep 23, 2023
Merged

Conversation

dudantas
Copy link
Member

@dudantas dudantas commented Sep 18, 2023

The transfer of houses is now permitted only during server restarts to prevent server freezing when moving items to the depot. While this is not the most sophisticated solution, it's the simplest and least error-prone due to the base's complexity. This approach mirrors what CipSoft employs in the global version of Tibia and effectively addresses the issue without introducing possible new bugs.

Additional updates include modifications to NPCs to sell the new kit, which displays the item's sprite in the wrap container. Support for using old kits remains, allowing players to convert them into new ones.

Unrelated changes affecting houses:
• Purchasing a house with items still inside is no longer possible. This prevents issues in rare scenarios, such as incomplete item transfers due to console closure.
• Introduced an "all" parameter to the "/r" command for removing all items from a tile.
• Removed the "allowpickUpAble" tags from ground/border and derived items. These were initially implemented to enable item "throwing" onto tiles. Now, an item can be thrown only if its type is "trashholder," fulfilling the same purpose. This change was made because the check for items inside the house before purchasing relies on the "pickupable" tag, which is not applicable to tiles and derivatives.

Resolves #439
Resolves #402

@dudantas dudantas force-pushed the fix-house-transfer-owner branch 5 times, most recently from f8fe145 to c9df529 Compare September 19, 2023 23:10
@dudantas dudantas force-pushed the fix-house-transfer-owner branch 3 times, most recently from 6c08748 to 2451d4b Compare September 23, 2023 19:13
@dudantas dudantas force-pushed the fix-house-transfer-owner branch from 2451d4b to af193d6 Compare September 23, 2023 19:13
@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarCloud.

src/canary_server.cpp Outdated Show resolved Hide resolved
src/game/game.cpp Outdated Show resolved Hide resolved
@luan luan merged commit 870bbed into main Sep 23, 2023
31 checks passed
@luan luan deleted the fix-house-transfer-owner branch September 23, 2023 22:02
luan added a commit that referenced this pull request Sep 30, 2023
…ripted-weapon-and-moveevent

* upstream/main: (21 commits)
  improve: revision of codes in data/ (#1374)
  fix: questlog message (#1648)
  improve: ensure players are removed from zones on death (#1650)
  improve: zstream static (#1644)
  feat: adding training shield and exercise shields (#1607)
  feat: benchmark tools (#1649)
  improve: optimize house/kv saves (#1634)
  fix: wong prey race ids and trashholder items (#1643)
  fix: move store items only to house tile (#1642)
  fix: attr condition enums (subid foods and others) (#1641)
  docs: add TNT Cloud support (#1639)
  fix: house transfer owner only in startup (#1621)
  fix: transfer house item (#1633)
  fix: some getUserdataShared and transfer house (sell) (#1632)
  fix: ammotype sanguine crossbow (#1624)
  feat: update talkactions add_addons and add_mounts (#1612)
  feature: imbuements get slot items (#1628)
  fix: reward container add charges to the items on boss death (#1629)
  improve: convert NetworkMessage and Combat to shared_ptr (#1627)
  feat: config.lua option for enable/disable mount in protection zone (#1599)
  ...
@luanluciano93
Copy link
Contributor

Deixando anotado aqui no PR que:
Resolve: #439
Resolve: #402

@dudantas
Copy link
Member Author

dudantas commented Feb 16, 2024

Deixando anotado aqui no PR que: Resolve: #439 Resolve: #402

Linkei ambos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selling/leaving house may crash server with bugged map The !leavehouse command freezes the server
3 participants