Jump to content
  • 0
Sign in to follow this  
karazu

Can some check this script please?

Question

Sorry, I tried to load it in the game but it seems to be the NPC is not clickable.. sorry I cannot check the MAP error right now because I am in the office.

Can anyone check for me this please?

 

 

 

prontera,150,150,0	script	Sample	100,{	if ( countiem( 501 ) < 10 || !countitem( 514 ) {		mes "You need 10 apple and 1 grape";		close;	}	if ( !getcharid( 1 ) ) {		mes "You don't have a party";		close;	}	if ( getpartyleader( getcharid( 1 ), 2 ) != getcharid( 0 ) ) {		mes "You must be a party leader";		close;	}	delitem 501, 10;	delitem 514, 1;	warpparty "prontera",150,150,getcharid( 1 );	end;} 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

if ( countitem( 501 ) < 10 || !countitem( 514 ) ){

Yeah:

 

Validation output:

[Error]: script error in file 'ee191076495024209' line 2 column 18

parse_simpleexpr: unmatched ')'

1: {

* 2: if ( countitem( 501 ) < 10 || !countitem( 514 ) {

~~~~~~~~~~~~~~~~~^

3: mes "You need 10 apple and 1 grape";

4: close;

5: } 

 

 

Also, karazu, what you can do is use upaste.me 's script run check when you upload this script as an Athena paste. 

Share this post


Link to post
Share on other sites
  • 0

 

if ( countitem( 501 ) < 10 || !countitem( 514 ) ){

Yeah:

 

Validation output:

[Error]: script error in file 'ee191076495024209' line 2 column 18

parse_simpleexpr: unmatched ')'

1: {

* 2: if ( countitem( 501 ) < 10 || !countitem( 514 ) {

~~~~~~~~~~~~~~~~~^

3: mes "You need 10 apple and 1 grape";

4: close;

5: } 

 

 

Also, karazu, what you can do is use upaste.me 's script run check when you upload this script as an Athena paste. 

Thank you very much for both of you. I have now an idea ^_^ +1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

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