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

[Feature] Item tiers and new skills (Onslaught, Ruse and Momentum) from 12.80 #366

Merged
merged 77 commits into from
Oct 27, 2022

Conversation

omeranha
Copy link
Contributor

@omeranha omeranha commented Apr 30, 2022

The forge system part will be completed in another pull request, and focused after I finish these!
Continuation of this pull request will be in the forge, follow the link: #543

New Item Tiers and classifications

image
image
Added functions
item:getTier()
item:addTier(tier)

need a tiered item?
use the commited script, you can copy to OTservBR-Global datapack if you want

New skills

All informations avaliable in Tibia Fandom
Onslaught(Fatal): https://tibia.fandom.com/wiki/Onslaught
Ruse(block hits): https://tibia.fandom.com/wiki/Ruse
Momentum(cooldown reduction): https://tibia.fandom.com/wiki/Momentum

Missing

  • Missing some item tier bytes.
  • Market saving tier attribute.
    and more, much more things.

Type of change

  • New feature (non-breaking change which adds functionality)

src/items/item.h Show resolved Hide resolved
src/items/items_definitions.hpp Show resolved Hide resolved
src/lua/functions/items/item_functions.cpp Outdated Show resolved Hide resolved
src/lua/functions/items/item_functions.hpp Outdated Show resolved Hide resolved
src/lua/functions/items/item_functions.hpp Outdated Show resolved Hide resolved
src/server/network/protocol/protocolgame.cpp Outdated Show resolved Hide resolved
src/utils/utils_definitions.hpp Outdated Show resolved Hide resolved
@rusaskii

This comment was marked as resolved.

@omeranha omeranha marked this pull request as draft May 4, 2022 02:38
@omeranha omeranha changed the title [Feature] Item tiers and new skills (Onslaught, Ruse and Momentum) from 12.80 [Feature] Forge system, Item tiers and new skills (Onslaught, Ruse and Momentum) from 12.80 May 4, 2022
src/items/item.cpp Outdated Show resolved Hide resolved
@marcosvf132 marcosvf132 mentioned this pull request Jun 9, 2022
8 tasks
Fixed item tier update on item creation with "/i" command
Indented some codes and fixes others things
Npc could give money even if no items are removed
Renamed function from "getAllItemTypeCount" to "getAllSaleItemIdAndCount"
Simplified the functions of get inventory items
Fixed sell items to npc and add money logic
@guispiller
Copy link
Contributor

Found a new issue on market related to tiers. How to reproduce, with an example of Plate armor (you can use any item).

1 - create a buy offer of a plate armor tier 0 with Player A.
2 - Get 1 Plate armor Tier 1 on first slot of a depot box, and one plate armor Tier 0 at the second slot of the same depot box.
3 - Sell the plate armor tier 0 to the buy offer at the market.

Result: As the first slot is the Tier 1 armor, this one will be sold. So, player A will receive a Tier 0 armor, and player B will sell a Tier 1 armor.
This can occur also if there are tiered items of the same at mailbox, and lower tiered on depot box. It is not checking the tier, it's just selling the first one

@dudantas
Copy link
Contributor

dudantas commented Oct 22, 2022

Found a new issue on market related to tiers. How to reproduce, with an example of Plate armor (you can use any item).

1 - create a buy offer of a plate armor tier 0 with Player A. 2 - Get 1 Plate armor Tier 1 on first slot of a depot box, and one plate armor Tier 0 at the second slot of the same depot box. 3 - Sell the plate armor tier 0 to the buy offer at the market.

Result: As the first slot is the Tier 1 armor, this one will be sold. So, player A will receive a Tier 0 armor, and player B will sell a Tier 1 armor. This can occur also if there are tiered items of the same at mailbox, and lower tiered on depot box. It is not checking the tier, it's just selling the first one

Thanks for reporting. Please, test this commit: d0d3482

I tested it, and it seems to have fixed the problem.

@tutbarao
Copy link

I found a bug: Cannot cancel market offers. When you click the cancel button, nothing happens.

@tutbarao
Copy link

image
I got this error when starting the server. Perhaps this is the cause of the above bug.

@dudantas
Copy link
Contributor

dudantas commented Oct 26, 2022

image I got this error when starting the server. Perhaps this is the cause of the above bug.

Fixed with last commit (ec64bb5), thanks for reporting

@sonarcloud
Copy link

sonarcloud bot commented Oct 26, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 25 Code Smells

0.0% 0.0% Coverage
0.3% 0.3% Duplication

@travisani
Copy link
Contributor

travisani commented Oct 26, 2022

Tem que ver se não vai crashar / debugar combinando:
Critical + Fatal (tier)
Dodge (tier) + Critical

Durante battle com monstros que refletem dano ou absorvam dano. ex; Burster Spectre ou Bosses refletindo ao mesmo tempo em que o tier gera um possivel dodge.
Com imbuements ou Runas de Aumento de mana/life leech e/ou Critico (Low Blow)

Fora outras combinações que não me vem a cabeça agora 😵‍💫

Copy link
Contributor

@dudantas dudantas left a comment

Choose a reason for hiding this comment

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

Pull finished, it was tested in several scenarios, by several people, what was reported has already been fixed and now we can merge.

@dudantas dudantas marked this pull request as ready for review October 27, 2022 22:15
@dudantas
Copy link
Contributor

dudantas commented Oct 27, 2022

Tem que ver se não vai crashar / debugar combinando: Critical + Fatal (tier) Dodge (tier) + Critical

Durante battle com monstros que refletem dano ou absorvam dano. ex; Burster Spectre ou Bosses refletindo ao mesmo tempo em que o tier gera um possivel dodge. Com imbuements ou Runas de Aumento de mana/life leech e/ou Critico (Low Blow)

Fora outras combinações que não me vem a cabeça agora 😵‍💫

Nós já estamos trabalhando no pull request há um bom tempo e resolvemos tudo que foi reportado e o que encontramos de bug. Se você quiser testar este cenário e informar se deu algum problema, é de bom grado. Particularmente eu não tenho interesse em realizar este teste. Caso tenha interesse, é só reportar no pull request da forja, este já vai para o merge...

@dudantas dudantas merged commit 898cc6f into main Oct 27, 2022
@opentibiabr opentibiabr locked as resolved and limited conversation to collaborators Oct 27, 2022
@dudantas
Copy link
Contributor

dudantas commented Oct 27, 2022

Continuation of this pull request will be in the forge, follow the link: #543

@dudantas dudantas linked an issue Nov 9, 2022 that may be closed by this pull request
5 tasks
@dudantas dudantas deleted the item-tiers branch December 4, 2022 04:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: PRs Done
Canary Roadmap
In progress
Development

Successfully merging this pull request may close these issues.

Erro ao vender item com imbuiment