harveywth Posted March 31, 2012 Share Posted March 31, 2012 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. Quote Link to comment Share on other sites More sharing options...
Aerie Posted March 31, 2012 Share Posted March 31, 2012 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; } Quote Link to comment Share on other sites More sharing options...
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