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: Price of NPC's items #4293

Merged
merged 3 commits into from
Jan 27, 2023
Merged

Fix: Price of NPC's items #4293

merged 3 commits into from
Jan 27, 2023

Conversation

omarcopires
Copy link
Contributor

@omarcopires omarcopires commented Jan 16, 2023

Pull Request Prelude

Changes Proposed

Fixes the window for buying and selling items on NPC's.

Credits: @Zbizu

Issues addressed:
Closes #4292

omarcopires and others added 2 commits January 16, 2023 01:09
Co-Authored-By: Zbizu <Zbizu@users.noreply.github.com>
src/enums.h Outdated Show resolved Hide resolved
@omarcopires omarcopires changed the title Fix: larger shops UI Fix: Price of NPC's items Jan 25, 2023
@EPuncker EPuncker merged commit 9fd9aec into otland:master Jan 27, 2023
@omarcopires omarcopires deleted the fix-large-shop branch January 27, 2023 23:45
@@ -960,7 +960,7 @@ if not Modules then
return false
end

if shopItem.buy == -1 then
if shopItem.buy == 0 then
Copy link
Contributor

@Kamenuvol Kamenuvol Jan 29, 2023

Choose a reason for hiding this comment

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

I think it should be a valid value to buy/sell for free. To not be buyable/sellable the value in Lua table should be nil.

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think the client can handle that (haven't tested), since cip sell items for 1 gp at testserver assistant and not 0 (for free)

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.

Price of incorrect items
4 participants