Jump to content
  • 0

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


aspd197

Question


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

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
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 1

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

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

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

Link to comment
Share on other sites

  • 0

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

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

 

 

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

×
×
  • Create New...