-
Member
Help Create NPC with different content
I am using these files with source: https://forum.ragezone.com/f197/rele...100-a-1156924/
I need to put the same NPC let's say the girl from the bar duplicate it but put different items for sale.
I hope a programmer can help me
-
-
Apprentice
You can't have the same NPC selling different items.
what you can do is change one of the NPC's model to be the same as the potion girl and them have them sell other items.
-
Apprentice
Just look for the desired model in the Data folder, duplicate it and rename it to the model for the other model
Then it will be 2 different NPCs with the same model
-
Member
friend maybe you have an example to be able to do it thank you very much
-
Apprentice
No I don't have an example
It's some bmd object I think, just look it up on the internet
You can use pentium tools to see where npc is that
-
A different NPC shop selling different items means your client and game server must know about its existence, and this requires coding.
In GS you have to find where the shops are loaded, add a new shop in the code. I think the shops are actually sent from the GS to the client. In the client you have to check how the shops are processed from GS and check if this need to be coded or not.
Shops are associated by the file name in the GS afaik, but it could be different.
This shouldn't be hard, but sorry, no one is gonna waste time to code that for you.
Suggestion: Follow the code and patterns for other NPC shops in both Game Server and client source code.
-
Member
friend Ise already on the Game server. and I get a little bull but the shop doesn't open for me, a msg comes out that the ncp does not have a stamp On the client side I can't find the NPCs