Jump to content
  • 0
powkda

disable bonus during woe

Question

how do i disable a bonus from equipment during war? for example..
Weapon of +10 attack, but when the war starts this bonus is deactivated.

Can anyone help me?
Thanks in advance for your attention ❤️

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

You need put a callfunc instead of a bonus.

Make an txt on your npc folder and add this: 

 

function    script    F_NoWoEBonus    {
    if(agitcheck() || agitcheck2() || agitcheck3()){
        end;
    }
    bonus bStr,500;
}


 

and add callfunc on you desired item (you need to put in script line).

 

callfunc "F_NoWoEBonus"; <<< this would go on the script item line.

 

  • Like 1
Link to comment
Share on other sites

  • 0
function	script	F_Excalibur	{

if (!agitcheck() && !agitcheck2() && !agitcheck3()) {
	bonus bBaseAtk,2600;
	end;
	}
	
else {
	bonus bBaseAtk,2600; bonus2 bHPDrainRate,1000,100;
	end;
	}
}

I wanted it to give an X bonus during woe and outside woe time to give a Y bonus
I tried to do it that way more without success.

Link to comment
Share on other sites

  • 0
12 minutes ago, EIysium said:

You need put a callfunc instead of a bonus.

Make an txt on your npc folder and add this: 

 

function    script    F_NoWoEBonus    {
    if(agitcheck() || agitcheck2() || agitcheck3()){
        end;
    }
    bonus bStr,500;
}


 

and add callfunc on you desired item (you need to put in script line).

 

callfunc "F_NoWoEBonus"; <<< this would go on the script item line.

 

I tried to do as follows

function	script	F_Excalibur	{



    if(agitcheck() || agitcheck2() || agitcheck3()){
		bonus bBaseAtk,2600;
        end;
    }
	
    bonus bBaseAtk,2600; bonus2 bHPDrainRate,1000,100;
	
}

but it wasn't very bad
I want that during woe I was like:

bonus bBaseAtk,2600;

and when you're not having woe it looks like this:

bonus bBaseAtk,2600; bonus2 bHPDrainRate,1000,100;

 

thank you so much for helping me ❤️

Link to comment
Share on other sites

  • 0

@powkdaEvery line will end with a semicolon therefore the 2nd bonus failed. U only able to write bonuses in one line at an item script. 

 

function    script  F_Excalibur {

    if(agitcheck() || agitcheck2() || agitcheck3()){
        bonus bBaseAtk,2600;
    } else {
        bonus bBaseAtk,2600;
        bonus2 bHPDrainRate,1000,100;
    }
    end;
}
	

 

Rynbef~

 

Edited by Rynbef
Link to comment
Share on other sites

  • 0
    Script: |
        bonus bBaseAtk,2600;
        if (!agitcheck() && !agitcheck2() && !agitcheck3())
            bonus2 bHPDrainRate, 1000, 100;

just change your item_db instead of adding another script function

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.