Jump to content

Question

7 answers to this question

Recommended Posts

  • 0
Posted
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

  • 0
Posted
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;
  • 0
Posted
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?

 

  • 0
Posted
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

 

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