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

Improved atCommand(iteminfo) #3329

Merged

Conversation

Venseer
Copy link
Contributor

@Venseer Venseer commented Oct 29, 2024

Pull Request Prelude

Changes Proposed

Uses itemlink on iteminfo atcommand.
No longer list slots on iteminfo, itemlink contains slot information.

20241029192847108 - ElectricPeruSwan

@dastgirp
Copy link
Member

This needs to be PACKETVER specific, as it won't work for old Clients

@Venseer
Copy link
Contributor Author

Venseer commented Oct 30, 2024

Do you happen to have the min packetver? I can work that out.

@Venseer
Copy link
Contributor Author

Venseer commented Oct 30, 2024

This needs to be PACKETVER specific, as it won't work for old Clients

Just checked clif_format_itemlink. It verifies packetver and writes only whats compatible.
Check clif.c line 26044

Copy link
Member

@MishimaHaruna MishimaHaruna left a comment

Choose a reason for hiding this comment

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

Thank you! Please check the following things before I can merge this

src/map/atcommand.c Outdated Show resolved Hide resolved
src/map/atcommand.c Show resolved Hide resolved
@Venseer Venseer force-pushed the improved-atcommand-iteminfo branch 2 times, most recently from 07fad84 to b0340cd Compare October 31, 2024 19:34
@MishimaHaruna MishimaHaruna changed the base branch from stable to master October 31, 2024 22:21
@MishimaHaruna MishimaHaruna added this to the Release v2024.10 milestone Oct 31, 2024
@MishimaHaruna MishimaHaruna merged commit 5accb4b into HerculesWS:master Oct 31, 2024
2 of 55 checks passed
@kyeme
Copy link

kyeme commented Nov 3, 2024

Not working in 2016-01-06aRagexe client?

itemlink

@guilherme-gm
Copy link
Member

@kyeme may you try making an npc with this?

mesf("Your item is: %s", getitemlink(Apple));

does it render properly or also shows the tag like that?

I think it might be the case that not every client supports those tags in the same places 🫠 I remember testing and checking client for mes, but not for other places.

@dastgirp
Copy link
Member

dastgirp commented Nov 3, 2024

@kyeme may you try making an npc with this?

mesf("Your item is: %s", getitemlink(Apple));

does it render properly or also shows the tag like that?

I think it might be the case that not every client supports those tags in the same places 🫠 I remember testing and checking client for mes, but not for other places.

2020 client doesn't support getitemlink in "mes".
So 2016 might not support it as well

@guilherme-gm
Copy link
Member

@kyeme may you try making an npc with this?

mesf("Your item is: %s", getitemlink(Apple));

does it render properly or also shows the tag like that?
I think it might be the case that not every client supports those tags in the same places 🫠 I remember testing and checking client for mes, but not for other places.

2020 client doesn't support getitemlink in "mes". So 2016 might not support it as well

hmm well noted, my 2019-12-24 client "partially" supports it, it doesn't make the text clickable, but it does render the item name.
Maybe dispbottom would be a better test to check whether the tag is broken for the client or it just doesn't support it in message?

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.

5 participants