Jump to content
  • 0

disable bonus during woe


powkda

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   1
  • Joined:  11/11/17
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   46
  • Joined:  07/15/13
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   1
  • Joined:  11/11/17
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  89
  • Reputation:   1
  • Joined:  11/11/17
  • Last Seen:  

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

  • Group:  Forum Moderator
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  797
  • Reputation:   101
  • Joined:  05/23/12
  • Last Seen:  

@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

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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