sotf Posted November 8, 2014 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
Emistry Posted November 8, 2014 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
sotf Posted November 8, 2014 Author 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
Emistry Posted November 8, 2014 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
sotf Posted November 8, 2014 Author 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
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?
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.