Jump to content
  • 0

How do you do this item effect?


Question

Posted (edited)

If base level is 150 All stats + 5

 

i did " if(readparam(BaseLevel)>=150) { bonus bAllStats,1; } "

 

it didn't work out...

 

 

Solve <3 Instead of >=150 it should be <=150 ! Lol!

Edited by Yoona

8 answers to this question

Recommended Posts

Posted (edited)
Actually, this is the script she wanted :D

 if(BaseLevel >= 50 && BaseLevel <= 149) { bonus bAllStats,70; } else {if(BaseLevel >= 150) { bonus bAllStats,5; }}
She just needs to change the  >= 150 bonus stats to what she wants

Thanks for this request Yoona. I'm in need to quickly get my scripting skills back up and learning stuff like this will come in handy when I start making my own server.

Edited by DuskPneuma
  • Upvote 1
Posted

If base level is 150 All stats + 5

 

i did " if(readparam(BaseLevel)>=150) { bonus bAllStats,1; } "

 

it didn't work out...

 

 

Solve <3 Instead of >=150 it should be <=150 ! Lol!

Just a reminder Yoona; If you use >= that's checking if your BaseLevel is equal to or greater than 150

Posted

 

If base level is 150 All stats + 5

 

i did " if(readparam(BaseLevel)>=150) { bonus bAllStats,1; } "

 

it didn't work out...

 

 

Solve <3 Instead of >=150 it should be <=150 ! Lol!

Just a reminder Yoona; If you use >= that's checking if your BaseLevel is equal to or greater than 150

 

 

Thanks for the reply. but what i want is when A player reached level 50 Additional 70 All Stats but when the player Reach Level 150 -200 All stats how can i do that? it makes me confused...

Posted (edited)

 

 

If base level is 150 All stats + 5

 

i did " if(readparam(BaseLevel)>=150) { bonus bAllStats,1; } "

 

it didn't work out...

 

 

Solve <3 Instead of >=150 it should be <=150 ! Lol!

Just a reminder Yoona; If you use >= that's checking if your BaseLevel is equal to or greater than 150

 

 

Thanks for the reply. but what i want is when A player reached level 50 Additional 70 All Stats but when the player Reach Level 150 -200 All stats how can i do that? it makes me confused...

 

Hmm...I believe the answer is very easy but I'm unsure how to check 2 variables for the same effect; If I remember there IS a way to check for it I think like...

if(readparam(BaseLevel)>= 50 && readparam(BaseLevel)<=149)) { bonus bAllStats,70; }; if(readparam(BaseLevel) >= 150){ bonus bAllStats,1;}

Edited by DuskPneuma
Posted

 

 

If base level is 150 All stats + 5

 

i did " if(readparam(BaseLevel)>=150) { bonus bAllStats,1; } "

 

it didn't work out...

 

 

Solve <3 Instead of >=150 it should be <=150 ! Lol!

Just a reminder Yoona; If you use >= that's checking if your BaseLevel is equal to or greater than 150

 

 

Thanks for the reply. but what i want is when A player reached level 50 Additional 70 All Stats but when the player Reach Level 150 -200 All stats how can i do that? it makes me confused...

 

 

if(BaseLevel >= 50) { bonus bAllStats,50; } if(BaseLevel >= 150 && BaseLevel <= 200) { bonus bAllStats,BaseLevel-149; }

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