Jump to content
  • 0

script_bonus unlimited duration?


Litro Endemic

Question


  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   77
  • Joined:  06/13/13
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   77
  • Joined:  06/13/13
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

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?

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   77
  • Joined:  06/13/13
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

7 hours ago, Ninja said:

512|2048

Instead of this, try adding them up, hence, 2560 in this field.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   77
  • Joined:  06/13/13
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

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.

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