Jump to content
  • 0

How to separate npc_dynamic_shop.txt shops into a different NPC?


Question

Posted (edited)

Hello,

This is my first post since the very beginning of joining rAthena. ?

I would like to ask about how to separate shops inside npc_dynamic_shop.txt, and put each separated shop into a single NPC.

===========================================================

"Is it possible to separate those shops and put it into a different NPC?"

I already tried to copy the contents of npc_dynamic_shop.txt, put it into another NPC script, and modify:
- changing quest_shop into quest_shop1quest_shop2, etc (so I thought if this event is different, it won't call the main event).
- changing qshop function into qshop1, qshop2, etc.
- deleting add(2..... and add(3.... into separate NPC script.
but when I put these and activate the NPC, it won't open the shop.

"Should the functions (Add, Chk, Slot, and function script qshop) also copied into that new NPC script?"

"Should the Dummy Shop Data also copied & modified?"

 

I already tried to google = "site:rathena.org separate shops from npc_dynamic_shop" but unfortunately there are no results for this.

Sorry if my English is bad.
Thank you.

Edited by aspd197

3 answers to this question

Recommended Posts

  • 1
Posted

Set your shop in

// Script Core
//============================================================
-	script	quest_shop	-1,{ 

Call the shop in


// Shop NPCs -- supplying no argument displays entire menu.
//	callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}};
//============================================================
prontera,164,203,6	script	Quest Shop#1	998,{ callfunc "qshop"; }			// call all shop
prontera,164,203,6	script	Quest Shop#1	998,{ callfunc "qshop",1; }			// call shop number 1
prontera,164,203,6	script	Quest Shop#1	998,{ callfunc "qshop",1,2; }		// call shop number 1 and 2

 

  • 0
Posted
6 hours ago, Capuche said:

Set your shop in


// Script Core
//============================================================
-	script	quest_shop	-1,{ 

Call the shop in



// Shop NPCs -- supplying no argument displays entire menu.
//	callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}};
//============================================================
prontera,164,203,6	script	Quest Shop#1	998,{ callfunc "qshop"; }			// call all shop
prontera,164,203,6	script	Quest Shop#1	998,{ callfunc "qshop",1; }			// call shop number 1
prontera,164,203,6	script	Quest Shop#1	998,{ callfunc "qshop",1,2; }		// call shop number 1 and 2

 

Thank you for the reply!
I'll try it right now

  • 0
Posted

BIG THANKS, Capuche!

It works! ?

6 hours ago, Capuche said:

Set your shop in


// Script Core
//============================================================
-	script	quest_shop	-1,{ 

Call the shop in



// Shop NPCs -- supplying no argument displays entire menu.
//	callfunc "qshop"{,<shop ID>{,<shop ID>{,...}}};
//============================================================
prontera,164,203,6	script	Quest Shop#1	998,{ callfunc "qshop"; }			// call all shop
prontera,164,203,6	script	Quest Shop#1	998,{ callfunc "qshop",1; }			// call shop number 1
prontera,164,203,6	script	Quest Shop#1	998,{ callfunc "qshop",1,2; }		// call shop number 1 and 2

 

 

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