Yoona Posted March 10, 2014 Group: Members Topic Count: 153 Topics Per Day: 0.03 Content Count: 567 Reputation: 18 Joined: 04/15/13 Last Seen: April 21, 2016 Share Posted March 10, 2014 (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 March 10, 2014 by Yoona Quote Link to comment Share on other sites More sharing options...
Pneuma Posted March 11, 2014 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 846 Reputation: 138 Joined: 02/26/14 Last Seen: March 7, 2018 Share Posted March 11, 2014 (edited) Actually, this is the script she wanted 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 wantsThanks 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 March 11, 2014 by DuskPneuma 1 Quote Link to comment Share on other sites More sharing options...
Pneuma Posted March 10, 2014 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 846 Reputation: 138 Joined: 02/26/14 Last Seen: March 7, 2018 Share Posted March 10, 2014 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 Quote Link to comment Share on other sites More sharing options...
Yoona Posted March 10, 2014 Group: Members Topic Count: 153 Topics Per Day: 0.03 Content Count: 567 Reputation: 18 Joined: 04/15/13 Last Seen: April 21, 2016 Author Share Posted March 10, 2014 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... Quote Link to comment Share on other sites More sharing options...
Pneuma Posted March 10, 2014 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 846 Reputation: 138 Joined: 02/26/14 Last Seen: March 7, 2018 Share Posted March 10, 2014 (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 March 10, 2014 by DuskPneuma Quote Link to comment Share on other sites More sharing options...
Yoona Posted March 10, 2014 Group: Members Topic Count: 153 Topics Per Day: 0.03 Content Count: 567 Reputation: 18 Joined: 04/15/13 Last Seen: April 21, 2016 Author Share Posted March 10, 2014 It make's my server crash Quote Link to comment Share on other sites More sharing options...
Pneuma Posted March 11, 2014 Group: Members Topic Count: 82 Topics Per Day: 0.02 Content Count: 846 Reputation: 138 Joined: 02/26/14 Last Seen: March 7, 2018 Share Posted March 11, 2014 It make's my server crash I'll try to create the script on my test server Quote Link to comment Share on other sites More sharing options...
sandbox Posted March 11, 2014 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 949 Reputation: 174 Joined: 06/12/12 Last Seen: April 29 Share Posted March 11, 2014 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; } Quote Link to comment Share on other sites More sharing options...
Yoona Posted March 11, 2014 Group: Members Topic Count: 153 Topics Per Day: 0.03 Content Count: 567 Reputation: 18 Joined: 04/15/13 Last Seen: April 21, 2016 Author Share Posted March 11, 2014 Daebak! ( Awesome! ) thanks @sandbox & @DuskPneuma! Quote Link to comment Share on other sites More sharing options...
Question
Yoona
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 YoonaLink to comment
Share on other sites
8 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.