Jump to content
  • 0

Combo script of same item


sotf

Question


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

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


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

5001,........,{ if ( isequippedcnt( 4001 ) >= 3 ) { bonus bCritAtkRate,20; } }

item 5001 .... bonus critical atk 20 ... when the user wear 3 or more poring cards

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

^ 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:

post-11036-0-31436300-1415425397_thumb.png

Link to comment
Share on other sites


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

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  173
  • Reputation:   9
  • Joined:  11/14/12
  • Last Seen:  

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!

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