Help Create NPC with different content

Results 1 to 7 of 7
  1. #1
    Member natias is offline
    MemberRank
    Jun 2018 Join Date
    67Posts

    shout 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


  2. #2
    Apprentice neriyaco is offline
    MemberRank
    Jun 2020 Join Date
    19Posts
    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.

  3. #3
    Apprentice neriyaco is offline
    MemberRank
    Jun 2020 Join Date
    19Posts
    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

  4. #4
    Member natias is offline
    MemberRank
    Jun 2018 Join Date
    67Posts
    friend maybe you have an example to be able to do it thank you very much

  5. #5
    Apprentice neriyaco is offline
    MemberRank
    Jun 2020 Join Date
    19Posts
    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

  6. #6
    C++ Developer zipper20032 is offline
    MemberRank
    Oct 2006 Join Date
    0x198837ADLocation
    663Posts
    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.

  7. #7
    Member natias is offline
    MemberRank
    Jun 2018 Join Date
    67Posts
    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



Advertisement