powkda Posted December 25, 2021 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 90 Reputation: 1 Joined: 11/11/17 Last Seen: 7 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 _Terra Posted December 25, 2021 Group: Members Topic Count: 12 Topics Per Day: 0.00 Content Count: 170 Reputation: 55 Joined: 07/15/13 Last Seen: 6 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 powkda Posted December 25, 2021 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 90 Reputation: 1 Joined: 11/11/17 Last Seen: 7 hours ago Author Share 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 Link to comment Share on other sites More sharing options...
0 powkda Posted December 26, 2021 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 90 Reputation: 1 Joined: 11/11/17 Last Seen: 7 hours ago Author Share 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 Link to comment Share on other sites More sharing options...
0 Rynbef Posted January 1, 2022 Group: Forum Moderator Topic Count: 48 Topics Per Day: 0.01 Content Count: 941 Reputation: 125 Joined: 05/23/12 Last Seen: Tuesday at 04:54 PM Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted January 10, 2022 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites
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.