Jump to content
  • 0

disable bonus during woe


Question

Posted

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 ❤️

5 answers to this question

Recommended Posts

  • 0
Posted

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

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

  • 0
Posted (edited)

@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
  • 0
Posted
    Script: |
        bonus bBaseAtk,2600;
        if (!agitcheck() && !agitcheck2() && !agitcheck3())
            bonus2 bHPDrainRate, 1000, 100;

just change your item_db instead of adding another script function

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