Jump to content
  • 0

Question

Posted

Don't question this right now, I'm just experimenting..

I get error "Missing 1 right curlys at file customitem.txt, line '49'."


//===== rAthena Script =======================================
//= Custom Item Quest
//===== By: ==================================================
//= jabs
//===== Current Version: =====================================
//= 1.1
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Quest to get the Custom Item
//===== Additional Comments: =================================
//= 1.1 Fixed ingredients. Was too exploitable [Lupus]
//= 1.2 Optimized. [Euphy]
//============================================================

prontera,165,178,8    script    Old Woman    103,{

   setarray .@Items[0],714,25,1061,100,1095,200,618,10,1551,2,1614,1,727,20;
   set .@n$,"[Custom Items]";

   mes .@n$;
   mes "I believe the item is called a ^FF0000God Item^000000. It makes you have invincibility skill!";
   next;
   mes .@n$;
   mes "I need all of the following items:";
   for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2) {
       mes " ~ "+.@Items[.@i+1]+"x "+getitemname(.@Items[.@i]);
       if (countitem(.@Items[.@i]) < .@Items[.@i+1]) set .@nr
   next;
   if(select("I have all of that!:I'll get those ASAP")==2) goto M_Leave;

   mes .@n$;
   if (.@nr) {
       mes "You lie! Get out of here and get those items, you sorry excuse for a rock star.";
       close; }
   for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2)
       delitem .@Items[.@i], .@Items[.@i+1];
   getitem 4145,1;
   set BerzQuest, 1;
   mes "Congratulations! You have all the items. Here is your ^FF0000God Item^000000, as promised.";
   emotion e_grat;
   close;

M_Leave:
   mes .@n$;
   mes "Such a great item I have right here...";
   close;
}
   }

6 answers to this question

Recommended Posts

Posted
//===== rAthena Script =======================================
//= Custom Item Quest
//===== By: ==================================================
//= jabs
//===== Current Version: =====================================
//= 1.1
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Quest to get the Custom Item
//===== Additional Comments: =================================
//= 1.1 Fixed ingredients. Was too exploitable [Lupus]
//= 1.2 Optimized. [Euphy]
//============================================================

prontera,165,178,8	  script  Old Woman	   103,{

	setarray .@Items[0],714,25,1061,100,1095,200,618,10,1551,2,1614,1,727,20;
	set .@n$,"[Custom Items]";

	mes .@n$;
	mes "I believe the item is called a ^FF0000God Item^000000. It makes you have invincibility skill!";
	next;
	mes .@n$;
	mes "I need all of the following items:";
	for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2) {
			mes " ~ "+.@Items[.@i+1]+"x "+getitemname(.@Items[.@i]);
			if (countitem(.@Items[.@i]) < .@Items[.@i+1]) set .@nr
			}
	next;
	if(select("I have all of that!:I'll get those ASAP")==2) goto M_Leave;

	mes .@n$;
	if (.@nr) {
			mes "You lie! Get out of here and get those items, you sorry excuse for a rock star.";
			close; }
	for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2)
			delitem .@Items[.@i], .@Items[.@i+1];
	getitem 4145,1;
	set BerzQuest, 1;
	mes "Congratulations! You have all the items. Here is your ^FF0000God Item^000000, as promised.";
	emotion e_grat;
	close;

M_Leave:
	mes .@n$;
	mes "Such a great item I have right here...";
	close;
}

Posted

Map_serv has same error again ):

How are you going to make a server when you can't even figure out how to fix a script..

Asking people, figuring out what they added & working from there? Trial and error buddy /no1

Posted

Map_serv has same error again ):

How are you going to make a server when you can't even figure out how to fix a script..

Asking people, figuring out what they added & working from there? Trial and error buddy /no1

It says you're missing a right curly at line 49 - go to line 49 at the end, and put a right curly. }

Posted

Millenium, use the rAthena Wiki to your advantage. If you come across with script related errors, you can look them up here. Make a thread if you really can't figure it out. /ok

  • Upvote 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...