JustNao / Karrelage

MITM pour Dofus 2.XX
17 stars 8 forks source link

fix: Fixed recipe pricing #14

Closed Teles1 closed 1 month ago

Teles1 commented 1 month ago

I'm not exactly sure how this packet was formed before but i couldn't get it to work... Objects doesn't seen to exist. I changed the code a bit to make it look for a regex pattern.

Teles1 commented 1 month ago

Also, do we have interest on making the Server "selectable" I have quite a few hard coded entries of "server name" in the code.. I could work on making it configurable? I suck with UI though

Teles1 commented 1 month ago

That's interesting. I didn't do anything special besides invite another character of mine to my party and sending the recipe in the chat with the prefix "$price " the packet I got does not have objects in it... What's the procedure you used to trigger the server to send that packet specifically? Regarding the config, yep sounds good!

JustNao commented 1 month ago

Ah I see. The function is meant to work with object links, not recipes. I didn't even check to see how the command interacted with recipes ; you're absolutely right and they are just converted as text. In that case my suggestion is still valid to make it work in both cases : I think we should first check for an objects attribute, and if not found, use you regex.

Teles1 commented 1 month ago

Weird that I also tried that and couldn't really get it to work either. What about binding different packets? I'll check once I'm home! Thanks 🙏