Jump to content
  • 0

Help with script?


Millenium

Question


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   0
  • Joined:  07/10/12
  • Last Seen:  

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;
}
   }

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  375
  • Reputation:   88
  • Joined:  12/30/11
  • Last Seen:  

//===== 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;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   0
  • Joined:  07/10/12
  • Last Seen:  

Map_serv has same error again ):

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   28
  • Joined:  01/16/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   0
  • Joined:  07/10/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  32
  • Topics Per Day:  0.01
  • Content Count:  386
  • Reputation:   28
  • Joined:  01/16/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  135
  • Reputation:   5
  • Joined:  06/25/12
  • Last Seen:  

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