ZAGALiC Posted July 4, 2013 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 125 Reputation: 0 Joined: 06/07/13 Last Seen: May 20, 2020 Share Posted July 4, 2013 (edited) Help with this error in Cash Shop NPC. *BUMP* Edited July 4, 2013 by Blasphemy Quote Link to comment Share on other sites More sharing options...
Zasura Posted July 5, 2013 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 48 Reputation: 4 Joined: 11/27/11 Last Seen: October 22, 2020 Share Posted July 5, 2013 (edited) im also getting this error on 2012-04-10 ragexeRe.If you want a shop different from zeny shop you can use hunting mission's shop to make a new one with cash like points. i did that too because i couldn't solve the problem :SYou can use like this one: itemmall,183,84,4 script Head Gear Shop A 112,{ mes "[^FFA500Kafra Shop^000000]"; mes "Ez a lista 500-5000 Cash Pont közötti értékű sapkákat tartalmaz."; next; if( select("Lépjünk a boltba!:Kipróbálás") == 2 ) { cleararray @Hats[0],0,127; setarray @Hats[0],2237,5056,5101,5134,5147,5148,5180,5190,5200,5209,5302,5336,5337,5338,5339,5346,5352,5400,5412,5438,5439,5440,5441,5203,5282,5405,5422,5426,5427,5429,5437,5443,5444,5447,5448,5449,5450,5458,5472,5473,5474,5475,5480,5489,5522,5530,5531,5536,5563,5499,5511,5519,5523,5524,5525,5528,5534,5813,5020,5054,5102,5206,5406,5407,5411,5436,5446,5457,5501,5537,5538,5548,5557,5558,5562,5566,5572,5579,5591,5140,5227,5228,5229,5235,5236,5237,5238,5239,5240,5241,5242,5272,5287,5332; callfunc "DoTestHats"; end; } mes "[^FFA500Kafra Shop^000000]"; mes "Van ^0055FF"+#CASH+"^000000 Cash Pontod."; mes "Használd őket rendesen!"; close2; callshop "ShopA",1; npcshopattach "ShopA"; end; OnBuyItem: set @cost,0; for(set .@i,0; .@i<getarraysize(@bought_nameid); set .@i,.@i+1) for(set .@j,0; .@j<getarraysize(.HatShopA); set .@j,.@j+2) if (@bought_nameid[.@i] == .HatShopA[.@j]) { set @cost, @cost+(.HatShopA[.@j+1]*@bought_quantity[.@i]); break; } mes "[Kafra Shop]"; if (@cost > #CASH) mes "Nincs elég Cash Pontod."; else { for(set .@i,0; .@i<getarraysize(@bought_nameid); set .@i,.@i+1) { getitem @bought_nameid[.@i], @bought_quantity[.@i]; dispbottom "Megvetted: "+@bought_quantity[.@i]+"x "+getitemname(@bought_nameid[.@i])+"."; } set #CASH, #CASH-@cost; mes "Kész."; emotion e_cash; } set @cost,0; deletearray @bought_nameid[0], getarraysize(@bought_nameid); deletearray @bought_quantity[0], getarraysize(@bought_quantity); close; OnInit: setarray .HatShopA[0], // Reward items: <ID>,<point cost> (about 10~20 points per hunt). 2237,500,5056,500,5101,500,5134,800,5147,850,5148,850,5180,850,5190,900,5200,900,5209,900,5302,900,5336,900,5337,900,5338,900,5339,900,5346,900,5352,950,5400,950,5412,950,5438,950,5439,950,5440,950,5441,950,5203,1000,5282,1000,5405,1000,5422,1000,5426,1000,5427,1000,5429,1000,5437,1000,5443,1000,5444,1000,5447,1000,5448,1000,5449,1000,5450,1000,5458,1000,5472,1000,5473,1000,5474,1000,5475,1000,5480,1000,5489,1000,5522,1000,5530,1000,5531,1000,5536,1000,5563,1000,5499,1200,5511,1200,5519,1200,5523,1200,5524,1200,5525,1200,5528,1200,5020,1500,5054,1500,5102,1500,5206,1500,5406,1500,5407,1500,5411,1500,5436,1500,5446,1500,5457,1500,5501,1500,5537,1500,5538,1500,5548,1500,5557,1500,5558,1500,5562,1500,5566,1500,5572,1500,5579,1500,5140,2000,5227,2000,5228,2000,5229,2000,5235,2000,5236,2000,5237,2000,5238,2000,5239,2000,5240,2000,5241,2000,5242,2000,5272,2000,5287,2000,5332,2000; npcshopdelitem "ShopA",512; for(set .@i,0; .@i<getarraysize(.HatShopA); set .@i,.@i+2) npcshopadditem "ShopA", .HatShopA[.@i], .HatShopA[.@i+1]; end; } - shop ShopA -1,512:-1 Edited July 5, 2013 by szarkab123 Quote Link to comment Share on other sites More sharing options...
ZAGALiC Posted July 5, 2013 Group: Members Topic Count: 51 Topics Per Day: 0.01 Content Count: 125 Reputation: 0 Joined: 06/07/13 Last Seen: May 20, 2020 Author Share Posted July 5, 2013 Okay I'll gonna atry this:D Tnx dude! Quote Link to comment Share on other sites More sharing options...
Question
ZAGALiC
Help with this error in Cash Shop NPC.
*BUMP*
Edited by BlasphemyLink to comment
Share on other sites
2 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.