Jump to content
  • 0

npc with if for decline


domez86

Question


  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

hi, I need a npc like this:

_______________________________

if: str or vit or agi or int or dex or luk >166 (that is, if they have one of the following stat higher than 166) 

mes: ok! 

close;

else: 

mes: is not good! 

close;

________________________________

tnx! 

 

Edited by domez86
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

prontera,155,181,5	script	sample	4_F_KAFRA1,{
	for (.@i = bStr; .@i <= bLuk; .@i++) 
		if (readparam(.@i) >= 165) {
			mes "ok! you have stats that are over 165.";
			close;
		}
	mes "is not good, you dont have stats that is over 165.";
	close;
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  148
  • Reputation:   18
  • Joined:  03/03/19
  • Last Seen:  

1 hour ago, domez86 said:

hi, I need a npc like this:

_______________________________

if: str or vit or agi or int or dex or luk >166 (that is, if they have one of the following stat higher than 166) 

mes: ok! 

close;

else: 

mes: is not good! 

close;

________________________________

tnx! 

 

I wanna say its impossible but this might work:

prontera,156,180,5	script	Deviruchi#divorce	4_M_SIT_NOVICE,{
	if (readparam(bAgi) > 77) || (readparam(bVit) > 77){
	mes "asdddd";
	close;
	end;
	}
	end;
}

just add || inbetween all the stats you want red 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

On 4/21/2019 at 9:31 AM, Sakurada said:

I wanna say its impossible but this might work:


prontera,156,180,5	script	Deviruchi#divorce	4_M_SIT_NOVICE,{
	if (readparam(bAgi) > 77) || (readparam(bVit) > 77){
	mes "asdddd";
	close;
	end;
	}
	end;
}

just add || inbetween all the stats you want red 

you not insert:

else: 

mes: is not good! 

close;

?

you insert all statistics pls? vit, dex etc 

On 4/21/2019 at 8:30 PM, Emistry said:

prontera,155,181,5	script	sample	4_F_KAFRA1,{
	for (.@i = bStr; .@i <= bLuk; .@i++) 
		if (readparam(.@i) >= 165) {
			mes "ok! you have stats that are over 165.";
			close;
		}
	mes "is not good, you dont have stats that is over 165.";
	close;
}

work! tnx!

you insert all statistics pls? vit, dex etc 

 

On 4/21/2019 at 9:31 AM, Sakurada said:

I wanna say its impossible but this might work:


prontera,156,180,5	script	Deviruchi#divorce	4_M_SIT_NOVICE,{
	if (readparam(bAgi) > 77) || (readparam(bVit) > 77){
	mes "asdddd";
	close;
	end;
	}
	end;
}

just add || inbetween all the stats you want red 

work it, tnx!

Edited by domez86
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...