Jump to content
  • 0

Help with Cash Shop NPC [npc/merchants/cash_trader.txt]


ZAGALiC

Question


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  125
  • Reputation:   0
  • Joined:  06/07/13
  • Last Seen:  

Help with this error in Cash Shop NPC.

 

post-17750-0-47077400-1372871774_thumb.jpg



*BUMP*

Edited by Blasphemy
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   4
  • Joined:  11/27/11
  • Last Seen:  

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 :S
You 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 by szarkab123
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  125
  • Reputation:   0
  • Joined:  06/07/13
  • Last Seen:  

Okay I'll gonna atry this:D Tnx dude!

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