Jump to content
  • 0

NPC than changes what it sells


harveywth

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/27/12
  • Last Seen:  

I was wondering if anyone would be so kind as to help me with an NPC that picks 10 items at random from a larger group of items and sells them for 1 hour before selecting a new 10 items from the same list.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

You can make something like this :

Different kind of products (different shop list) :

- shop EP7_shop#1 660,12212:100,601:-1,602:-1,525:-1,1065:-1;
- shop EP7_shop#2 660,12212:100,601:-1,602:-1,525:-1,1065:-1,645:-1,656:-1,501:-1,502:-1,503:-1,504:-1;
- shop EP7_shop#3 660,12212:100,601:-1,602:-1,525:-1,1065:-1,645:-1,656:-1,501:-1,502:-1,503:-1,504:-1,610:-1,716:-1,717:-1,713:-1,505:-1,506:-1;
- shop EP7_shop#4 660,12212:100,601:-1,602:-1,525:-1,1065:-1,645:-1,656:-1,501:-1,502:-1,503:-1,504:-1,610:-1,716:-1,717:-1,713:-1,505:-1,506:-1,715:-1,12149:20000,12150:20000,12151:20000,1766:-1,1763:-1,1760:-1,1757:-1,1762:-1;
- shop EP7_shop#5 660,12212:100,601:-1,602:-1,525:-1,1065:-1,645:-1,656:-1,501:-1,502:-1,503:-1,504:-1,610:-1,716:-1,717:-1,713:-1,505:-1,506:-1,715:-1,12149:20000,12150:20000,12151:20000,1766:-1,1763:-1,1760:-1,1757:-1,1762:-1,533:-1,952:250,1059:1000,522:-1;

And a NPC like this after add some conditions to your script :

ars_fild26,93,65,1	script	Vendeuse Yuna#ep7	53,{
	mes "[" + @name$ + "]";
mes "TEXT";
			close2;

if ($hour >= 14)  { callshop "EP7_shop#5",0; }
end;
}

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