Jump to content
  • 0

How do you do this item effect?


Yoona

Question


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

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
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

 

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

 

 

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

It make's my server crash :( 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

It make's my server crash :( 

I'll try to create the script on my test server

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  949
  • Reputation:   174
  • Joined:  06/12/12
  • Last Seen:  

 

 

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; }
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

Daebak! ( Awesome! ) thanks @sandbox & @DuskPneuma!

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