powkda Posted December 25, 2021 Posted December 25, 2021 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 Quote
0 _Terra Posted December 25, 2021 Posted December 25, 2021 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. 2021-12-25 20-38-42.mp4 1 Quote
0 powkda Posted December 25, 2021 Author Posted December 25, 2021 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. Quote
0 powkda Posted December 26, 2021 Author Posted December 26, 2021 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. 2021-12-25 20-38-42.mp4 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 Quote
0 Rynbef Posted January 1, 2022 Posted January 1, 2022 (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 January 1, 2022 by Rynbef Quote
0 Emistry Posted January 10, 2022 Posted January 10, 2022 Script: | bonus bBaseAtk,2600; if (!agitcheck() && !agitcheck2() && !agitcheck3()) bonus2 bHPDrainRate, 1000, 100; just change your item_db instead of adding another script function Quote
Question
powkda
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.