Jump to content
  • 0
Sign in to follow this  
Faltz

Battleground script

Question

bat_room,160,150,3	script	Erundek	109,{	callshop "ShopBG",1;	npcshopattach "ShopBG";end;OnBuyItem:for(set @i,0; @i < getarraysize(.bg_item);set @i,@i+1){	if(@bought_nameid == .bg_item[@i]){		mes .n$;		mes " ";			if(.emb_bv[@i] > 0) mes (.emb_bv[@i]*@bought_quantity)+"x Emblemas de bravura.";				if(countitem(7828) >= (.emb_bv[@i]*@bought_quantity)){				getitem .bg_item[@i],@bought_quantity;				delitem 7828,(.emb_bv[@i]*@bought_quantity);				mes .n$;				mes "Troca bem sucedida";				close2;					}else{					mes .n$;					mes "^FF0000Você não tem emblemas suficientes^000000";					close2;					}			}		}}end;OnInit:	set .n$,"[Erundek]";	npcshopdelitem "ShopBG", 503;	setarray .bg_item[0],	13036,13411,1425,1632,1634,1543,1924,1978,1574,1824,1183,1380,13305,1279,1739,13108,13172,2538,2539,2540,2435,2436,2437,2376,2377,2378,2379,2380,2381,2382,2720,2721,2722,2723,2724,2725,2733;	setarray .emb_bv[0],	100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,50,50,50,50,50,50,80,80,80,80,80,80,80,500,500,500,500,500,500,500;	for(set .x,0; .x < getarraysize(.bg_item); set .x,.x+1)  npcshopadditem "ShopBG", .bg_item[.x],0;end;}-	shop	ShopBG	-1,503:500;

 

map_server 

 

error na linha 25 "end;"

 

Alguém poderia me explicar porque está dando este error ? 

 

Obrigado

 

 

//

english

 

error line 25 "end;" 

Could someone explain to me why this is giving error? 
thank you

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

here you go

 

 

just remove the {  above the end on Line 25

 

 

 

 

bat_room,160,150,3	script	Erundek	109,{	callshop "ShopBG",1;	npcshopattach "ShopBG";end;OnBuyItem:for(set @i,0; @i < getarraysize(.bg_item);set @i,@i+1){	if(@bought_nameid == .bg_item[@i]){		mes .n$;		mes " ";			if(.emb_bv[@i] > 0) mes (.emb_bv[@i]*@bought_quantity)+"x Emblemas de bravura.";				if(countitem(7828) >= (.emb_bv[@i]*@bought_quantity)){				getitem .bg_item[@i],@bought_quantity;				delitem 7828,(.emb_bv[@i]*@bought_quantity);				mes .n$;				mes "Troca bem sucedida";				close2;					}else{					mes .n$;					mes "^FF0000Você não tem emblemas suficientes^000000";					close2;					}			}		}end;OnInit:	set .n$,"[Erundek]";	npcshopdelitem "ShopBG", 503;	setarray .bg_item[0],	13036,13411,1425,1632,1634,1543,1924,1978,1574,1824,1183,1380,13305,1279,1739,13108,13172,2538,2539,2540,2435,2436,2437,2376,2377,2378,2379,2380,2381,2382,2720,2721,2722,2723,2724,2725,2733;	setarray .emb_bv[0],	100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,50,50,50,50,50,50,80,80,80,80,80,80,80,500,500,500,500,500,500,500;	for(set .x,0; .x < getarraysize(.bg_item); set .x,.x+1)  npcshopadditem "ShopBG", .bg_item[.x],0;end;}-	shop	ShopBG	-1,503:500;

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.