domez86 Posted April 20, 2019 Group: Members Topic Count: 85 Topics Per Day: 0.02 Content Count: 207 Reputation: 0 Joined: 06/11/13 Last Seen: July 11, 2020 Share Posted April 20, 2019 (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 April 21, 2019 by domez86 Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted April 21, 2019 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: 22 hours ago Share Posted April 21, 2019 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; } Quote Link to comment Share on other sites More sharing options...
0 Sakurada Posted April 21, 2019 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 148 Reputation: 18 Joined: 03/03/19 Last Seen: December 12, 2024 Share Posted April 21, 2019 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 Quote Link to comment Share on other sites More sharing options...
0 domez86 Posted April 21, 2019 Group: Members Topic Count: 85 Topics Per Day: 0.02 Content Count: 207 Reputation: 0 Joined: 06/11/13 Last Seen: July 11, 2020 Author Share Posted April 21, 2019 (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 April 21, 2019 by domez86 Quote Link to comment Share on other sites More sharing options...
Question
domez86
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!
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.