Jump to content
  • 0

npc with if for decline


Question

Posted (edited)

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

3 answers to this question

Recommended Posts

  • 0
Posted
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;
}

 

  • 0
Posted
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 

  • 0
Posted (edited)
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

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