Jump to content

I need help with a custom store script


girinaum

Recommended Posts


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/05/22
  • Last Seen:  

Hello guys I'm a beginner in this server stuff and I'm trying to put a store npc like the Ragnarok Online Brazil, it works like a store npc but using items from instances / quests so you can buy other items see the example in the image.

 

As I said I am a beginner in these things, maybe there is already something like this and I have not found, if I am in the wrong place in the forum please put me in the right place, thank you, and I apologize for my English, I have not practiced much, I speak Portuguese.

WhatsApp Image 2022-02-06 at 19.04.41.jpeg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

its a Dynamic shop . But you need to learn how to understand the script flows 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/05/22
  • Last Seen:  

57 minutes ago, Poring King said:

its a Dynamic shop . But you need to learn how to understand the script flows 

where could I learn about this?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  27
  • Reputation:   10
  • Joined:  09/14/21
  • Last Seen:  

15 hours ago, girinaum said:

where could I learn about this?

https://github.com/rathena/rathena/blob/master/npc/custom/barters.yml you need to understand this barter shop system workflow. 

this is an example to the first item on your picture , NPC located on prontera,156,183 and selling holy water and cursed water for 1 bloody coins :

Body:
  - Name: Barter Shop
    Map: prontera
    X: 156
    Y: 183
    Direction: South
    Sprite: 2_F_SIGN1
    Items:
      - Index: 0
        Item: Holy_Water
        RequiredItems:
          - Index: 0
            Item: Bloody_Coin
            Amount: 1
      - Index: 1
        Item: Water_Of_Darkness
        RequiredItems:
          - Index: 0
            Item: Bloody_Coin
            Amount: 1

Result Picture :

Spoiler

956395740_Screenshot(25).thumb.png.9c1c19c02cd5e20b5dcac7dead7d1c92.png

 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  02/05/22
  • Last Seen:  

21 hours ago, ryukazuna said:

https://github.com/rathena/rathena/blob/master/npc/custom/barters.yml  você precisa entender esse fluxo de trabalho do sistema de troca. 

este é um exemplo para o primeiro item da sua foto, NPC localizado em prontera,156,183 e vendendo água benta e água amaldiçoada por 1 moeda sangrenta :


Imagem do resultado :

  Ocultar conteúdo

956395740_Screenshot(25).thumb.png.9c1c19c02cd5e20b5dcac7dead7d1c92.png

 

perfect, I found here why this script does not work, my emulator that I have here is very old, is there a way for me to update it without losing the ekips and quests that I created? or at least a way to check in which "pull" my server was downloaded?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  491
  • Reputation:   19
  • Joined:  11/19/11
  • Last Seen:  

On 2/9/2022 at 9:20 PM, girinaum said:

perfect, I found here why this script does not work, my emulator that I have here is very old, is there a way for me to update it without losing the ekips and quests that I created? or at least a way to check in which "pull" my server was downloaded?

update your emulator and move anything your edit in old server

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  911
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

On 2/8/2022 at 11:48 AM, ryukazuna said:

https://github.com/rathena/rathena/blob/master/npc/custom/barters.yml you need to understand this barter shop system workflow. 

this is an example to the first item on your picture , NPC located on prontera,156,183 and selling holy water and cursed water for 1 bloody coins :

Body:
  - Name: Barter Shop
    Map: prontera
    X: 156
    Y: 183
    Direction: South
    Sprite: 2_F_SIGN1
    Items:
      - Index: 0
        Item: Holy_Water
        RequiredItems:
          - Index: 0
            Item: Bloody_Coin
            Amount: 1
      - Index: 1
        Item: Water_Of_Darkness
        RequiredItems:
          - Index: 0
            Item: Bloody_Coin
            Amount: 1

Result Picture :

  Hide contents

956395740_Screenshot(25).thumb.png.9c1c19c02cd5e20b5dcac7dead7d1c92.png

 

This is new to me LOL . Its been a while since i play rAthena

Link to comment
Share on other sites

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.   Paste as plain text instead

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