Jump to content
Returning Members: Password Reset Required ×

Recommended Posts

Posted (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.

image.thumb.png.cc4f35dabbc3f53ae9d58bd1d12d2d29.png

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.

image.png.336f6c2f1166a39775e0f7625e6efed8.png

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?

image.thumb.png.e5f48636cacdc8159c995e2a9c38600f.png

Edited by xFranko
Posted (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 by Konichu
Posted (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

  1. With booth ID, you're talking about the icon with Numbers, correct?
  2. Where would this booth ID be? is it a sobnpc ?
  3. How would I control the booth to be the missing number which is 44?
Edited by xFranko
Posted
6 minutes ago, xFranko said:

Thanks for taking the time to reply @Konichu, I have a question

  1. With booth ID, you're talking about the icon with Numbers, correct?
  2. Where would this booth ID be? is it a sobnpc ?
  3. 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

Posted
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?

Posted (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
image.png.c4f2c0e2f46dfec1834fbc049163dbd0.png

Stored at .\data\interface\Style01\Stall

image.thumb.png.ecd4692d217cea94004e04026ba0eebb.png

Edited by xFranko
Posted
1 hour ago, xFranko said:

How is the flag related to the numer? I'm trying to add the missing number, not the flag
image.png.c4f2c0e2f46dfec1834fbc049163dbd0.png

Stored at .\data\interface\Style01\Stall

image.thumb.png.ecd4692d217cea94004e04026ba0eebb.png

Just fix the ID of the flag to ID 181 as I mentioned above and it will work.

ini/booth.ini

Posted (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! 😄 

 image.png.e9f8e01766839e042c0e9852a37f9254.png

 

Edited by xFranko
  • xFranko changed the title to [v6609] How to create Shop Flags?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...