Jump to content
  • 0

I need help with a custom store script


Question

Posted

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

6 answers to this question

Recommended Posts

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

  • 0
Posted
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
  • 0
Posted
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

Join the conversation

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

Guest
Answer this question...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...