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

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.