sotf Posted November 8, 2014 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 173 Reputation: 9 Joined: 11/14/12 Last Seen: June 7, 2023 Share Posted November 8, 2014 Good day rAthena! I was just wondering how could I do an item combo script of a custom card, where it's effect will depend on how many cards you wear. Here's what I did on item_combo_db.txt but as a result, it returned all the effects even if I'm wearing just 1 of it: 26397:26397,{ bonus bMaxHPrate,5; bonus bMaxSPrate,5; bonus2 bSkillAtk,379,20; }26397:26397:26397,{ bonus bCritAtkRate,20; }26397:26397:26397:26397,{ skill 2033,5; skill 2035,5; } I even tried using isequippedcnt but it still gives the same result. Please help, I'm kinda lost on this one. Is this possible or impossible? Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 8, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted November 8, 2014 5001,........,{ if ( isequippedcnt( 4001 ) >= 3 ) { bonus bCritAtkRate,20; } } item 5001 .... bonus critical atk 20 ... when the user wear 3 or more poring cards Quote Link to comment Share on other sites More sharing options...
sotf Posted November 8, 2014 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 173 Reputation: 9 Joined: 11/14/12 Last Seen: June 7, 2023 Author Share Posted November 8, 2014 ^ I'll try that one again and post my exact script, thanks! oh will this work on card script as well? this is my script: 26397,virus_crystal,Virus Crystal,6,20,,10,,,,,,,,8192,,,,,{ bonus bAllStats,5; if(isequipped(26397) >= 4) { bonus bMaxHPrate,5; bonus bMaxSPrate,5; bonus2 bSkillAtk,379,20; bonus bCritAtkRate,20; skill 2033,5; skill 2035,5; } } },{},{} in-game result is attached below: Quote Link to comment Share on other sites More sharing options...
Emistry Posted November 8, 2014 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted November 8, 2014 it shouldnt be apply on the same item that you're going to check on it. otherwise when you using these 4 cards, ex. Poring Card with the item bonus i show previously... it end up each poring card giving player 20% critical atk dame. which original should be only 20% , but it become 60% instead due to having 3 poring card. unless you did some calculation for each of the item bonus .. Quote Link to comment Share on other sites More sharing options...
sotf Posted November 8, 2014 Group: Members Topic Count: 43 Topics Per Day: 0.01 Content Count: 173 Reputation: 9 Joined: 11/14/12 Last Seen: June 7, 2023 Author Share Posted November 8, 2014 I see, okay, I'll try to see if I can do a work-around about it.But on item_combo_db it's not possible? :/ I tried on item_combo_db, it's not working as what I intended in the first place, but I guess this is okay! Thanks! Quote Link to comment Share on other sites More sharing options...
Question
sotf
Good day rAthena! I was just wondering how could I do an item combo script of a custom card, where it's effect will depend on how many cards you wear.
Here's what I did on item_combo_db.txt but as a result, it returned all the effects even if I'm wearing just 1 of it:
26397:26397,{ bonus bMaxHPrate,5; bonus bMaxSPrate,5; bonus2 bSkillAtk,379,20; }
26397:26397:26397,{ bonus bCritAtkRate,20; }
26397:26397:26397:26397,{ skill 2033,5; skill 2035,5; }
I even tried using isequippedcnt but it still gives the same result.
Please help, I'm kinda lost on this one. Is this possible or impossible?
Link to comment
Share on other sites
4 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.