xFranko Posted December 15, 2025 Posted December 15, 2025 (edited) Hey everyone, how can I add this missing shop number? Is it handled client-side or server-side? I’m not referring to the booth itself, I know that’s configured in an .ini file, but specifically the clickable number used to start vending, I know in client files it's just 10 dds images with numbers from 0 to 9 and it's somehow composed into the shop number, but where is that logic, no idea. I checked the NPCs table for other flags and tried adding my own, but it only adds the flag. Also, why does an avatar appear when I hover over it (happens for all other npcs I add btw)? And why is the name displayed in white instead of green? That makes me think it’s implemented differently from the others. The entry I added is exactly the same as the other flag entries in the database, yet it behaves differently in-game. Any idea why? does it require a specific NPC ID following some pattern? Edited December 28, 2025 by xFranko Quote
Konichu Posted December 15, 2025 Posted December 15, 2025 (edited) You should not do anything to the flag NPC, but the booth ID must follow the Dynamic NPC range (100000-199999) and the NPC Type 14. I'm working on 6609 RoleBoothNpc = 14, // 摊位NPC And this is my current packet public override byte[] Encode() { using PacketWriter writer = new(); writer.Write((ushort)PacketType.MsgNpcInfoEx); // 2 writer.Write(Identity); // 4 writer.Write(ShopId); // 8 writer.Write(MaxLife); // 12 writer.Write(Life); // 16 writer.Write(PosX); // 20 writer.Write(PosY); // 22 writer.Write(Lookface); // 24 writer.Write(NpcType); // 26 writer.Write(Sort); // 28 writer.Write(new byte[6]); // 30 writer.Write(ServerId); // 36 if (!string.IsNullOrEmpty(Name)) { writer.Write([Name]); } else { writer.Write(0); } return writer.ToArray(); } Edited December 15, 2025 by Konichu Quote
xFranko Posted December 15, 2025 Author Posted December 15, 2025 (edited) Quote but the booth ID must follow the Dynamic NPC range (100000-199999) and the NPC Type 14. Thanks for taking the time to reply @Konichu, I have a question With booth ID, you're talking about the icon with Numbers, correct? Where would this booth ID be? is it a sobnpc ? How would I control the booth to be the missing number which is 44? Edited December 15, 2025 by xFranko Quote
Konichu Posted December 15, 2025 Posted December 15, 2025 6 minutes ago, xFranko said: Thanks for taking the time to reply @Konichu, I have a question With booth ID, you're talking about the icon with Numbers, correct? Where would this booth ID be? is it a sobnpc ? How would I control the booth to be the missing number which is 44? Nope, by booth I mean the player store, the carpet. The flag for the coordinate you're showing me is: ID: 181 Name: ShopFlag Type: 16 Lookface: 1086 Position: 1036 230,189 Quote
xFranko Posted December 15, 2025 Author Posted December 15, 2025 Just now, Konichu said: Nope, by booth I mean the player store, the carpet. The flag for the coordinate you're showing me is: ID: 181 Name: ShopFlag Type: 16 Lookface: 1086 Position: 1036 230,189 I'm not talking about the carpet, I know how to add this one, which currently is just this carpet selling Garments, but later on I will move it and I want to add the Shop number (44) so when a player CLICKS on it, it can prompt them to start vending, does this make sense? Quote
Konichu Posted December 15, 2025 Posted December 15, 2025 I gave you the flag NPC setup already Quote
xFranko Posted December 15, 2025 Author Posted December 15, 2025 (edited) 2 hours ago, Konichu said: I gave you the flag NPC setup already How is the flag related to the numer? I'm trying to add the missing number, not the flag Stored at .\data\interface\Style01\Stall Edited December 15, 2025 by xFranko Quote
Konichu Posted December 15, 2025 Posted December 15, 2025 1 hour ago, xFranko said: How is the flag related to the numer? I'm trying to add the missing number, not the flag Stored at .\data\interface\Style01\Stall Just fix the ID of the flag to ID 181 as I mentioned above and it will work. ini/booth.ini Quote
xFranko Posted December 15, 2025 Author Posted December 15, 2025 (edited) On 12/15/2025 at 11:47 PM, Konichu said: Just fix the ID of the flag to ID 181 as I mentioned above and it will work. ini/booth.ini Thank you bro! Edited December 21, 2025 by xFranko Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.