Freya Jorgenson Posted October 14, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 146 Reputation: 1 Joined: 11/22/11 Last Seen: April 13 Share Posted October 14, 2012 Hi, I would just like to ask if whomever had experienced this issue? as I could not find the cause of this ... My dynamic shop (Thanks to Euphy) is working ok, however, it always shows this Jellopy starting from the 2nd shop and the rest after it. If I try to buy the jellopy, it will give me a return error "An error has occured" . =( Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 14, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 14, 2012 show your scripts.... Quote Link to comment Share on other sites More sharing options...
Freya Jorgenson Posted October 14, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 146 Reputation: 1 Joined: 11/22/11 Last Seen: April 13 Author Share Posted October 14, 2012 (edited) here , thanks //===== rAthena Script ======================================= //= Euphy's Quest Shop //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.4a //===== Compatible With: ===================================== //= rAthena SVN r15340+ //===== Description: ========================================= //= A dynamic quest shop based on Lunar's, with easier config. //= Includes support for multiple shops & cashpoints. //= Item Preview script by ToastOfDoom. //============================================================ pron_mall,124,87,4 script Multi-Currency Shop 445,{ function Add; function Chk; function Slot; function A_An; if(.Shops$ != "") set .@i,1; else { set .@menu$,""; for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1) set .@menu$, .@menu$+.Shops$[.@i]+":"; set .@i, select(.@menu$); } dispbottom "Select one item at a time."; callshop "qshop"+.@i,1; npcshopattach "qshop"+.@i; end; function Add { if (getitemname(getarg(1))=="null") { debugmes "Quest reward #"+getarg(1)+" invalid (skipped)."; return; } for(set .@n,5; .@n<127; set .@n,.@n+2) { if (!getarg(.@n,0)) break; if (getitemname(getarg(.@n))=="null") { debugmes "Quest requirement #"+getarg(.@n)+" invalid (skipped)."; return; } } for(set .@i,2; .@i<.@n; set .@i,.@i+1) set getd(".q_"+getarg(1)+"["+(.@i-2)+"]"), getarg(.@i); npcshopadditem "qshop"+getarg(0),getarg(1),((.ShowZeny)?getarg(3):0); return; } function Chk { if (getarg(0)<getarg(1)) { set @qe0,1; return "^FF0000"; } else return "^00FF00"; } function Slot { set .@s$,getitemname(getarg(0)); switch(.ShowSlot){ case 1: if (!getitemslots(getarg(0))) return .@s$; case 2: if (getiteminfo(getarg(0),11)>0) return .@s$+" ["+getitemslots(getarg(0))+"]"; default: return .@s$; } } function A_An { setarray .@A$[0],"a","e","i","o","u"; set .@B$, "_"+getarg(0); for(set .@i,0; .@i<5; set .@i,.@i+1) if (compare(.@B$,"_"+.@A$[.@i])) return "an "+getarg(0); return "a "+getarg(0); } OnBuyItem: set .@q[0],@bought_nameid; copyarray .@q[1],getd(".q_"+@bought_nameid+"[0]"),getarraysize(getd(".q_"+@bought_nameid+"[0]")); if (!.@q[1]) { message strcharinfo(0),"An error has occurred."; end; } mes "[Quest Shop]"; mes "Reward: ^0055FF"+((.@q[1]>1)?.@q[1]+"x ":"")+Slot(.@q[0])+"^000000"; mes "Requirements:"; if (.@q[2]) mes " > "+Chk(Zeny,.@q[2])+.@q[2]+" Zeny^000000"; if (.@q[3]) mes " > "+Chk(getd(.Points$[0]),.@q[3])+.@q[3]+" "+.Points$[1]+" ("+getd(.Points$[0])+"/"+.@q[3]+")^000000"; if (.@q[4]) for(set .@i,4; .@i<getarraysize(.@q); set .@i,.@i+2) mes " > "+Chk(countitem(.@q[.@i]),.@q[.@i+1])+((.DisplayID)?"{"+.@q[.@i]+"} ":"")+Slot(.@q[.@i])+" ("+countitem(.@q[.@i])+"/"+.@q[.@i+1]+")^000000"; next; set @qe1, getiteminfo(.@q[0],5); set @qe2, getiteminfo(.@q[0],11); addtimer 1000, strnpcinfo(1)+"::OnEnd"; while(1){ switch(select(" ~ Purchase ^0055FF"+getitemname(.@q[0])+"^000000:"+((((@qe1&1) || (@qe1&256) || (@qe1&512)) && @qe2>0 && !@qe6)?" ~ Preview...":"")+": ~ ^777777Cancel^000000")) { case 1: if (@qe0) { mes "[Quest Shop]"; mes "You're missing one or more quest requirements."; close; } if (!checkweight(.@q[0],.@q[1])) { mes "[Quest Shop]"; mes "^FF0000You need "+(((.@q[1]*getiteminfo(.@q[0],6))+Weight-MaxWeight)/10)+" additional weight capacity to complete this trade.^000000"; close; } if (.@q[2]) set Zeny, Zeny-.@q[2]; if (.@q[3]) setd .Points$[0], getd(.Points$[0])-.@q[3]; if (.@q[4]) for(set .@i,4; .@i<getarraysize(.@q); set .@i,.@i+2) delitem .@q[.@i],.@q[.@i+1]; getitem .@q[0],.@q[1]; if (.Announce) announce strcharinfo(0)+" has created "+A_An(getitemname(.@q[0]))+"!",0; specialeffect2 699; close; case 2: set @qe3, getlook(3); set @qe4, getlook(4); set @qe5, getlook(5); if (@qe1&1) atcommand "@changelook 3 "+@qe2; if (@qe1&256) atcommand "@changelook 1 "+@qe2; if (@qe1&512) atcommand "@changelook 2 "+@qe2; set @qe6,1; break; case 3: close; } } OnEnd: if (@qe6) { atcommand "@changelook 3 "+@qe3; atcommand "@changelook 1 "+@qe4; atcommand "@changelook 2 "+@qe5; } for(set .@i,0; .@i<7; set .@i,.@i+1) setd "@qe"+.@i,0; end; OnInit: freeloop(1); // --------------------- Config --------------------- // Custom points, if needed: "<variable>","<name to display>" setarray .Points$[0],"#CASHPOINTS","Cash Points"; set .Announce,1; // Announce quest completion? (1: yes / 0: no) set .ShowSlot,1; // Show item slots? (2: all equipment / 1: if slots > 0 / 0: never) set .DisplayID,1; // Show item IDs? (1: yes / 0: no) set .ShowZeny,0; // Show Zeny cost, if any? (1: yes / 0: no) // Shop categories, if needed: "<Shop 1>","<Shop 2>"{,...}; // Duplicate dummy data for any additional shops (bottom of script). // If no categories, use the second line instead (remove //). setarray .Shops$[1],"HeadGear Quest I:HeadGear Quest II:Custom Quest I:Poring Shop:Token&TCG Shop"; // set .Shops$,"n/a"; // Add(<shop number>,<reward ID>,<reward amount>,<Zeny cost>,<point cost>, // <required item ID>,<required item amount>{,...}); // Shop number corresponds with order above (default is 1). // Note: Do NOT use a reward item more than once! Add(1,5086,1,0,0,2288,1,1095,300); Add(1,5137,1,0,0,7047,100,661,5,5141,5); Add(1,5074,1,20000,0,2254,1,2286,1); Add(1,5132,1,0,0,999,5,714,1,5074,1,5035,1); Add(1,5153,1,0,0,10011,1,5132,1); Add(1,5175,1,100000,0,983,1,938,99,7111,100); Add(1,2284,1,0,0,923,50); Add(1,5080,1,0,0,969,3,714,1,10006,1); Add(1,5270,1,0,0,7097,40,7198,200); Add(1,5174,1,0,0,7166,50,733,5,975,1,945,300,7448,7,7447,7,7446,7,7445,7); Add(1,5277,1,0,0,508,200,930,300); Add(1,2237,1,0,0,2241,1,983,1,1020,100); Add(1,5147,1,0,0,1057,100,978,1,2227,1); Add(1,5057,1,10000,0,914,200,983,1,2213,1); Add(1,5076,1,0,0,7038,300,2227,1); Add(1,5236,1,0,0,978,1,7038,300,2227,1); Add(1,5235,1,0,0,983,1,982,1,7038,350,2227,1); Add(1,5237,1,0,0,982,1,975,1,7038,350,2227,1); Add(1,5065,1,0,0,1023,1,544,50,959,300,624,1); Add(1,5052,1,0,0,7003,300,978,1,2211,1); Add(1,2296,1,50000,0,999,100,2243,1); Add(1,5129,1,0,0,916,100,604,100); Add(1,5102,1,0,0,568,150,2239,1,2276,1,7263,2); Add(1,5040,1,0,0,7047,100); Add(1,5109,1,50000,0,975,1,5040,1,10007,1,10015,1); Add(1,5016,1,0,0,1030,10); Add(1,5110,1,0,0,10004,1,941,1,7270,1,526,2); Add(1,5191,1,0,0,983,1,2208,1); Add(1,5169,1,0,0,1024,50,1054,20,7165,200,1049,20,7200,10,1019,200); Add(1,5034,1,0,0,746,20,2233,1); Add(1,2214,1,0,0,2213,1,722,1,706,1,949,100); Add(1,5024,1,0,0,538,15,999,10,539,20,530,5,529,5); Add(1,5028,1,0,0,526,100,7035,50,2279,1); Add(1,5200,1,0,0,7317,20,981,1,5016,1); Add(1,5184,1,0,0,720,50,983,1,995,50,5120,5); Add(1,5214,1,0,0,5008,5,1022,100,1060,300,976,1); Add(1,5026,1,0,0,982,1,539,120,949,100,1036,150); Add(1,5283,1,0,0,925,1,7063,20,7123,100,916,100,949,200); Add(1,5260,1,0,0,529,50,530,100,538,100,4293,1); Add(1,5075,1,0,0,7120,4,7194,108,7030,108,2248,1); Add(1,5048,1,0,0,999,10,5041,1); Add(1,5036,1,0,0,7069,500,2608,1); Add(1,5135,1,0,0,999,5,975,1,969,1,2295,1); Add(1,5181,1,0,0,7023,10,7340,200,7511,100); Add(1,5108,1,5000,0,611,10,5114,1,7301,1887); Add(1,5038,1,0,0,7048,40,1038,600); Add(1,5229,1,0,0,983,1,982,1,7048,40,1038,600); Add(1,5227,1,0,0,975,1,7048,40,1038,600); Add(1,5228,1,0,0,982,1,7048,40,1038,600); Add(1,5186,1,0,0,905,250,7100,100,1038,100); Add(1,5091,1,20000,0,969,3,714,1,10016,1); Add(1,5082,1,0,0,921,300); Add(1,2273,1,3500,0,733,1,998,50,2275,1); Add(1,5198,1,0,0,1974,1,622,50,914,200,949,500,2214,1,5058,1); Add(1,5058,1,0,0,7030,1,7206,300,983,1,2233,1); Add(1,5233,1,0,0,978,1,7030,1,7206,300,983,1,2233,1); Add(1,5231,1,0,0,983,1,982,1,7030,1,7206,300,2233,1); Add(1,5232,1,0,0,975,1,982,1,7030,1,7206,300,2233,1); Add(1,5230,1,0,0,982,1,7030,1,7206,300,983,1,2233,1); Add(1,5234,1,0,0,976,1,7030,1,7206,300,983,1,2233,1); Add(1,5253,1,0,0,979,1,5141,10,7445,30,1034,300); Add(1,5252,1,0,0,7267,100,1022,250,5058,1); Add(1,2283,1,0,0,949,200,5001,1,724,1); Add(1,5243,1,0,0,2283,1,7065,25,7441,150,914,100,976,1,975,1); Add(1,5259,1,0,0,1026,200,949,500,7561,100,978,1); Add(1,5068,1,20000,0,2286,1,2255,1); Add(1,5304,1,0,0,983,10,2502,1,7017,250); Add(1,5210,1,0,0,7038,200,7168,200,7063,50,2254,10); Add(1,5047,1,0,0,975,1,2271,1); Add(1,5170,1,0,0,982,1,7063,100,5172,1); Add(1,5380,1,0,0,5065,2); Add(1,5303,1,0,0,629,5,710,5,712,100); Add(1,5302,1,0,0,7771,1,982,1,7553,2); Add(1,5056,1,0,0,578,100,5079,1); Add(1,5144,1,0,0,1001,200,7567,25,2221,1,2214,1); Add(1,5063,1,0,0,930,500,970,1); Add(1,5193,1,0,0,979,1,2208,1); Add(1,5021,1,0,0,938,800,949,80,999,20,969,1,2233,1); Add(1,5179,1,0,0,13106,2,2610,4,969,3,2234,1); Add(1,5176,1,0,0,1028,100,952,100,2267,1,7015,20,2267,1,7015,20,7200,10,1019,500); Add(1,5001,1,0,0,1003,1,970,1,984,1,999,40); Add(1,5031,1,0,0,7013,1200); Add(1,5061,1,20000,0,999,10,2269,1); Add(1,5139,1,0,0,975,1,7510,1,710,5,5085,1); Add(1,5070,1,0,0,982,1,2211,1,7097,300,7216,300); Add(1,5071,1,10000,0,7101,10,5049,1,5010,1); Add(1,5173,1,0,0,2221,1,733,555,983,1,945,300,7478,7,7447,7,7446,7,7445,7); Add(1,5143,1,0,0,982,1,975,1,1020,300,5090,1); Add(1,5020,1,0,0,7063,20,2210,1,2215,1); Add(1,5140,1,0,0,7166,50,5191,1,2244,1,5085,1); Add(1,5069,1,0,0,1022,999); Add(1,5185,1,0,0,521,50,520,50,7298,100,7194,150,712,100,5061,1); Add(1,5130,1,0,0,517,30,7564,150,1048,100); Add(1,5084,1,0,0,7030,1,945,10,7065,100,1026,1000); Add(1,5027,1,0,0,4052,1,7001,50,1036,400,2252,1); Add(1,5241,1,0,0,978,1,4052,1,7001,50,1036,400,2252,1); Add(1,5240,1,0,0,983,1,982,1,4052,1,7001,50,1036,400,2252,1); Add(1,5238,1,0,0,975,1,4052,1,7001,50,1036,400,2252,1); Add(1,5239,1,0,0,982,1,4052,1,7001,50,1036,400,2252,1); Add(1,5242,1,0,0,976,1,4052,1,7001,50,1036,400,2252,1); Add(1,5054,1,0,0,943,1,1200,1,1054,450,2252,1); Add(1,5187,1,0,0,975,1,978,1,5117,2,5091,1,5085,1); Add(1,5138,1,0,0,975,1,981,1,7337,50,5027,1,5123,1); Add(1,5099,1,0,0,1029,5,7171,300,7267,300); Add(1,5081,1,40000,0,969,3,714,1,2249,1); Add(1,5073,1,0,0,1550,1,2285,1); Add(1,5117,50000,0,982,1,748,2,731,10); Add(1,5183,1,0,0,7115,100,916,100,604,100); Add(1,5151,1,0,0,991,200,978,1,5001,1); Add(1,2281,1,5000,0,707,1,998,20); Add(1,5043,1,0,0,1048,50,2281,1); Add(1,5094,1,0,0,931,1000,1124,1,2299,1,968,100); Add(1,5196,1,0,0,980,1,2208,1); Add(1,5078,1,0,0,5064,1,5033,1); Add(1,5004,1,0,0,701,5); Add(1,5060,1,0,0,7111,100,7151,100,2236,1); Add(1,5299,1,0,0,2214,1,7200,10,7063,10,7440,20,7115,10,916,15,949,50,7441,20); Add(1,5023,0,0,978,1,907,100,1059,150); Add(1,5286,0,0,7510,10,2210,2,7101,200,2254,2); Add(1,5271,0,0,978,1,999,50,7301,20,723,1,2254,1); Add(1,5352,0,0,938,100,979,1,5035,1); Add(1,2293,0,0,1049,4); Add(1,5194,0,0,982,1,975,1,2208,1); Add(1,5202,0,0,535,80,1062,100,5035,1); Add(1,5182,1,0,0,2210,1,1060,100,5118,1,5008,10); Add(1,5213,1,0,0,7063,30,983,1,2214,1); Add(1,5033,1,0,0,7012,200,7065,300,2213,1,1036,20); Add(1,5039,1,0,0,5015,1,978,1,7030,50); Add(1,5288,1,0,0,2276,5,5047,1); Add(1,5195,1,0,0,975,1,2208,1); Add(1,5208,1,0,0,7015,30,1555,7,1557,7,1554,7,1556,7,1553,7,1550,7); Add(1,5083,1,0,0,10007,1,2209,1,2244,1); Add(1,2280,1,10000,0,1019,120); Add(1,5100,1,0,0,690,10,7433,3,7451,4,2272,1); Add(1,5067,1,0,0,1907,1,952,50,5062,1); Add(1,5133,1,0,0,7107,80,7106,6,5160,1); Add(1,5149,1,0,0,2611,25,714,5,2234,1); Add(1,5064,1,0,0,7030,1,945,600); Add(1,2278,1,0,0,914,10,909,10,914,10,705,10); Add(1,5203,1,0,0,999,5,1015,1,2278,1); Add(1,5212,1,0,0,4125,1,2651,1,5011,1,1820,2); Add(1,5029,1,0,0,1015,1,7033,850,7068,300); Add(1,2272,1,911000,0,983,1,1019,50); Add(1,5062,0,0,7150,300,7197,300,2280,1); Add(1,5049,1,0,0,1099,1500); Add(1,5287,1,0,0,978,5348,1,5062,1); Add(1,5032,1,0,0,7063,600,2227,1,2221,1,1059,250); Add(1,5103,1,0,0,10011,1,5351,1); Add(1,5022,0,0,984,2,1003,50,999,40,969,10,7086,1); Add(1,5059,0,0,7161,300,7217,100,7213,100,5030,1); Add(1,5107,0,0,539,50,548,50,7031,50,519,50); Add(1,5077,1,0,0,5077,1,975,1,2278,1); Add(1,5079,1,0,0,7220,400,2294,1); Add(1,5171,1,0,0,7563,1000,7511,1000,4166,1,4251,1,4081,1,4112,1,4073,1,4212,1,4259,1,4177,1,4114,1,4219,1); Add(1,5285,1,0,0,10011,1,7192,1); Add(1,5188,1,0,0,7064,1,7166,50,5027,1); Add(1,2292,2000,0,999,50); Add(1,5294,1,0,0,7567,50,7019,5); Add(1,5115,50000,0,749,1,7267,99,983,1); Add(1,5284,1,0,0,5165,1,982,1,975,1,5302,1); Add(1,5050,1,0,0,7064,500,5037,1); Add(1,5206,1,0,0,982,1,2269,1); Add(1,5197,0,0,982,1,2208,1); Add(1,5278,1,0,0,2250,1,5192,1,2210,1); Add(1,5191,1,0,0,976,1,2208,1); Add(1,5121,1,0,0,7315,369,7099,30,660,1,7263,1); Add(1,5105,1,0,0,660,3,539,30,5024,1); Add(1,5207,1,0,0,7063,15,969,1,2254,2,2282,5); Add(1,5333,1,0,0,5011,1,992,10,12032,1,12028,1,996,4); Add(1,2240,1,0,0,7457,1,949,4,982,2,1040,2); Add(1,5416,1,0,0,2717,1,587,20,7097,12,746,20); Add(1,5401,1,0,0,983,1,5288,1); Add(1,5427,1,0,0,12183,1,7521,1,12078,1,5288,1); Add(1,5405,1,0,0,916,100,949,80,7441,45); Add(1,5404,1,0,0,978,10,7441,10,1034,5187,1); Add(1,5429,1,0,0,7268,1,1021,30,5100,1); Add(1,5338,1,0,0,561,1,7112,25,5100,1); Add(1,5410,1,0,0,7111,20,7188,40); Add(1,5300,1,0,0,7263,1,2246,1,7106,1); Add(1,5414,1,0,0,7098,2,1068,4,7300,9); Add(1,5431,1,0,0,2717,1,916,50,5283,1); Add(1,5131,1,0,0,985,27,978,1,969,10,5128,1); Add(1,5373,1,0,0,7023,20,7799,4,5104,1,7511,60,7566,3,2255,1); Add(1,5340,1,0,0,1034,25,5040,1,5137,1); Add(1,5313,1,0,0,523,200,5007,1,2249,1,5124,1); Add(1,5258,1,0,0,978,1,976,1,975,1,914,200,2261,1); Add(1,5292,1,0,0,10001,1,1035,4,7266,2); Add(1,5146,1,0,0,1019,1,949,500,978,1); Add(1,5285,1,0,0,978,2,982,1,5200,1); Add(1,5364,1,0,0,5048,1,983,1,982,1,975,1,5347,1); Add(1,5424,1,0,0,985,200,605,50,620,1,980,1); Add(1,5425,1,0,0,985,200,605,50,533,1,981,1); Add(1,5276,1,0,0,975,1,976,1,983,1,914,200,2261,1); Add(1,5156,1,0,0,982,1,2265,10); Add(1,5154,1,0,0,7020,5,2202,1); Add(1,5155,1,0,0,7450,1,7562,4,7754,2,7024,10); Add(1,5018,1,0,0,916,300,2247,1); Add(1,5403,1,0,0,579,1,544,5,1023,1); Add(1,5317,1,0,0,938,4,2290,1,5120,1); Add(1,5376,1,0,0,983,4,7063,600,2210,1,641,1); Add(1,5400,1,0,0,1234,2,1022,20); Add(1,5339,1,0,0,1558,1,7112,25,5100,1); Add(1,5361,1,0,0,7216,200); Add(1,5346,1,0,0,558,1,7112,25,5100,1); Add(1,5433,1,0,0,969,2,5185,1); Add(1,5262,1,0,0,969,3,7578,1,7799,1,5164,1); Add(1,5336,1,0,0,714,1,7112,25,5100,1); Add(1,5273,1,0,0,979,1,975,1,982,1,914,200,2261,1); Add(1,5319,1,0,0,978,1,5074,1,5035,1); Add(1,5363,1,0,0,983,20,2261,1,5120,1); Add(1,5360,1,0,0,5161,2747,2,5057,1); Add(1,5322,1,0,0,982,2,10019,1); Add(1,5291,1,0,0,969,20,7323,100); Add(1,5311,1,0,0,5139,2); Add(1,5418,1,0,0,1004,35,975,5,968,1,2261,1,5016,1); Add(1,5383,1,0,0,7445,50,979,1,5200,1); Add(1,5396,1,0,0,7262,20,5285,1); Add(1,5209,1,0,0,976,1,5147,1); Add(1,5371,1,0,0,1004,35,5016,1); Add(1,5426,1,0,0,976,5,5027,1); Add(2,5422,1,0,0,1006,20,1550,3); Add(2,5324,1,0,0,1034,20,7063,20,5137,1); Add(2,5448,1,0,0,1019,300,521,200); Add(2,5449,1,0,0,1019,300,521,200); Add(2,5332,1,0,0,7019,10,7200,10); Add(2,5392,1,0,0,5349,1,975,5); Add(2,5393,1,0,0,7097,350,994,10,2285,10); Add(2,5365,1,0,0,7031,150,574,150); Add(2,5275,1,0,0,2261,1,914,200,975,1,981,1); Add(2,5315,1,0,0,2276,1,5135,1,7094,50); Add(2,5370,1,0,0,5302,1,981,5,7440,300); Add(2,5337,1,0,0,5100,1,7112,25,2617,1); Add(2,5358,1,0,0,7101,300,2286,1); Add(2,5152,1,0,0,2254,1,724,1,7301,30,999,50,978,1); Add(2,5305,1,0,0,1214,5,969,10,7799,5); Add(2,5413,1,0,0,608,20,1752,1,2261,1,978,1); Add(2,5415,1,0,0,5255,1,5024,1); Add(2,5815,1,0,0,7101,5,5075,1,981,10); Add(2,5293,1,0,0,577,400,7134,1,581,3,7454,2,7455,2); Add(2,5354,1,0,0,5431,1,12080,1,1629,1); Add(2,5397,1,0,0,7325,5,2205,1,7036,5); Add(2,5355,1,0,0,7166,100,1059,200); Add(2,5310,1,0,0,996,6,1971,2,5034,1); Add(2,5274,1,0,0,975,1,980,2,914,200,2261,1); Add(2,5261,1,0,0,7799,4,2611,50,714,25,5164,1); Add(2,5388,1,0,0,926,200,1048,250); Add(2,5342,1,0,0,7152,5,1020,30,5040,1,5137,1); Add(2,5335,1,0,0,940,150,607,5,741,5); Add(2,5412,1,0,0,7035,10,530,20); Add(2,5343,1,0,0,1034,25,2215,5137,1); Add(2,5098,1,0,0,7627,50,2297,50,1029,10); Add(2,5316,1,0,0,622,10,2226,1); Add(2,5301,1,0,0,5195,3,5191,3); Add(2,5344,1,0,0,1060,25,7038,20,5137,1); Add(2,5345,1,0,0,1060,45,5195,2,5137,1); Add(2,5411,1,0,0,978,2,7263,2,982,5,5388,1); Add(2,5385,1,0,0,753,100); Add(2,5192,1,0,0,976,1,2208,1); Add(3,20001,1,0,0,7511,300,7799,100,7798,100,980,1); Add(3,20002,1,0,0,7511,300,7799,100,7798,100,975,1); Add(3,20003,1,0,0,7511,300,7799,100,7798,100,975,1,981,1); Add(3,20004,1,0,0,7063,200,7101,200,7115,200,949,200,975,1,981,1); Add(3,20005,1,0,0,7063,200,7101,200,7115,200,949,200,983,1,982,1); Add(3,20006,1,0,0,7063,200,7101,200,7115,200,949,200,982,1); Add(3,20007,1,0,0,7446,150,7445,150,7448,150,7447,150,979,1); Add(3,20008,1,0,0,7446,150,7445,150,7448,150,7447,150,978,1); Add(3,20009,1,0,0,7446,150,7445,150,7448,150,7447,150,975,1); Add(4,5382,1,0,0,7539,500); Add(4,5359,1,0,0,7539,500); Add(4,5142,1,0,0,7539,550); Add(4,5254,1,0,0,7539,350); Add(4,5533,1,0,0,7539,100); Add(4,5390,1,0,0,7539,150); Add(4,5013,1,0,0,7539,2000); Add(4,5177,1,0,0,7539,400); Add(4,5211,1,0,0,7539,650); Add(4,5395,1,0,0,7539,200); Add(4,5255,1,0,0,7539,150); Add(4,5357,1,0,0,7539,350); Add(4,5257,1,0,0,7539,800); Add(4,5312,1,0,0,7539,200); Add(4,5379,1,0,0,7539,200); Add(4,5374,1,0,0,7539,5500); Add(4,5800,1,0,0,7539,1800); Add(4,5378,1,0,0,7539,800); Add(4,5307,1,0,0,7539,1000); Add(4,5417,1,0,0,7539,500); Add(4,5372,1,0,0,7539,700); Add(4,5423,1,0,0,7539,1500); Add(4,5314,1,0,0,7539,1500); Add(4,5389,1,0,0,7539,300); Add(4,5420,1,0,0,7539,2500); Add(4,5421,1,0,0,7539,1000); Add(4,5807,1,0,0,7539,500); Add(4,5375,1,0,0,7539,700); Add(4,5318,1,0,0,7539,150); Add(4,5381,1,0,0,7539,150); Add(4,5801,1,0,0,7539,1500); Add(4,5325,1,0,0,7539,800); Add(4,5320,1,0,0,7539,150); Add(4,5384,1,0,0,7539,350); Add(4,5289,1,0,0,7539,250); Add(4,5377,1,0,0,7539,900); Add(4,5430,1,0,0,7539,1500); // -------------------------------------------------- freeloop(0); for(set .@i,1; .@i<=getarraysize(.Shops$); set .@i,.@i+1) npcshopdelitem "qshop"+.@i,909; end; } // -------- Dummy data (duplicate as needed) -------- - shop qshop1 -1,909:-1 - shop qshop2 -1,909:-1 - shop qshop3 -1,909:-1 - shop qshop4 -1,909:-1 - shop qshop5 -1,909:-1 Edited October 14, 2012 by Emistry Please use [CODEBOX] or Attachments for long contents. Quote Link to comment Share on other sites More sharing options...
Emistry Posted October 14, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted October 14, 2012 setarray .Shops$[1],"HeadGear Quest I:HeadGear Quest II:Custom Quest I:Poring Shop:Token&TCG Shop"; should be setarray .Shops$[1],"HeadGear Quest I","HeadGear Quest II","Custom Quest I","Poring Shop","Token&TCG Shop"; Quote Link to comment Share on other sites More sharing options...
Freya Jorgenson Posted October 14, 2012 Group: Members Topic Count: 28 Topics Per Day: 0.01 Content Count: 146 Reputation: 1 Joined: 11/22/11 Last Seen: April 13 Author Share Posted October 14, 2012 I did , then I can no longer open the NPC Thank you Emistry. It works now =) Quote Link to comment Share on other sites More sharing options...
Question
Freya Jorgenson
Hi,
I would just like to ask if whomever had experienced this issue? as I could not find the cause of this ...
My dynamic shop (Thanks to Euphy) is working ok, however, it always shows this Jellopy starting from the 2nd shop and the rest after it.
If I try to buy the jellopy, it will give me a return error "An error has occured" . =(
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.