Litro Endemic Posted May 9, 2017 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Share Posted May 9, 2017 Hello everybody How I can make script_bonus give unlimited duration ?? I have trying to set duration into -1 but it's not making it permanent / unlimited duration Quote Link to comment Share on other sites More sharing options...
0 Ninja Posted May 10, 2017 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share Posted May 10, 2017 On 5/9/2017 at 8:53 AM, Litro Endemic said: Hello everybody How I can make script_bonus give unlimited duration ?? I have trying to set duration into -1 but it's not making it permanent / unlimited duration can you post a snippet of your script? I'm not really sure what type of bonus you are trying to give Quote Link to comment Share on other sites More sharing options...
0 Litro Endemic Posted May 10, 2017 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Author Share Posted May 10, 2017 30 minutes ago, Ninja said: can you post a snippet of your script? I'm not really sure what type of bonus you are trying to give sure.. this bonus_script "{ bonus bStr,1; }",-1,512|2048,0,SI_FOODSTR; Quote Link to comment Share on other sites More sharing options...
0 Ninja Posted May 10, 2017 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share Posted May 10, 2017 1 hour ago, Litro Endemic said: sure.. this bonus_script "{ bonus bStr,1; }",-1,512|2048,0,SI_FOODSTR; Have you tried putting a non-negative number? because in the current implementation of bonus_script in the source, it treats "-1" duration as INVALID_TIMER. I think you only have to put a positive number in the duration and set the 512 bit for the flag. Can you try it and provide feedback? Quote Link to comment Share on other sites More sharing options...
0 Litro Endemic Posted May 10, 2017 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Author Share Posted May 10, 2017 5 hours ago, Ninja said: Have you tried putting a non-negative number? because in the current implementation of bonus_script in the source, it treats "-1" duration as INVALID_TIMER. I think you only have to put a positive number in the duration and set the 512 bit for the flag. Can you try it and provide feedback? yes and it still disappear and not giving the result from the src code telling me the permanent mean is it will not be cleared with sc_end sc_all, not giving permanent duration like sc_start do Quote Link to comment Share on other sites More sharing options...
0 Ninja Posted May 10, 2017 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share Posted May 10, 2017 7 hours ago, Ninja said: 512|2048 Instead of this, try adding them up, hence, 2560 in this field. Quote Link to comment Share on other sites More sharing options...
0 Litro Endemic Posted May 10, 2017 Group: Members Topic Count: 25 Topics Per Day: 0.01 Content Count: 283 Reputation: 79 Joined: 06/13/13 Last Seen: June 7, 2023 Author Share Posted May 10, 2017 1 minute ago, Ninja said: Instead of this, try adding them up, hence, 2560 in this field. it was the same - Basic example of creating and using a bit-mask: set @options,2|4|16; //(note: this is the same as 2+4+16, or 22) https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L759 Quote Link to comment Share on other sites More sharing options...
0 Ninja Posted May 10, 2017 Group: Members Topic Count: 54 Topics Per Day: 0.01 Content Count: 513 Reputation: 84 Joined: 08/11/12 Last Seen: July 4, 2024 Share Posted May 10, 2017 6 minutes ago, Litro Endemic said: it was the same - Basic example of creating and using a bit-mask: set @options,2|4|16; //(note: this is the same as 2+4+16, or 22) https://github.com/rathena/rathena/blob/master/doc/script_commands.txt#L759 Yeah, I mean I just suggested that to check if bit masking is working correctly or not. Interesting. I'll try to check that. Quote Link to comment Share on other sites More sharing options...
Question
Litro Endemic
Hello everybody
How I can make script_bonus give unlimited duration ??
I have trying to set duration into -1 but it's not making it permanent / unlimited duration
Link to comment
Share on other sites
7 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.