Jump to content
  • 0

Help - Item Combo Bonus Script


Jade

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/18
  • Last Seen:  

how to have item combo bonus script for ....

either of the following is equip  {}{}{}
example:
1 upper + 1 mid + 1 lower = bonus stat

upper ( hat,  cap,  helm )
mid ( glasses,  elven,  binocular )
lower ( r.leaf,  r.flower,  flu mask )

if equip ( either of the following  upper head   +   either of mid   +   either of low ) = bonus stat

TIA = thanks in advance

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

HATID:GLASSESID:RLEAFID:,{ bonus bStr,1; } //Bonus stat not specified

Just add every combination of your item id in item_combo_db.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/18
  • Last Seen:  

Just now, crazyarashi said:

HATID:GLASSESID:RLEAFID:,{ bonus bStr,1; } //Bonus stat not specified

Just add every combination of your item id in item_combo_db.

what i mean is, either of the following UPPER + either of the ff MID + either of the ff LOW = bonus

yours be like... what if i wear "cap" + glasses + leaf  .. not like your     hat + glasses + leaf ... there's no bonus on that..

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

That's why you add every possible combination of your item in item_combo_db, please do read the guides :))
Ex.

HATID:GLASSESID:RLEAFID:,{ bonus bStr,1; }
CAPID:GLASSESID:RLEAFID:,{ bonus bStr,1; }
HELMID:GLASSESID:RLEAFID:,{ bonus bStr,1; }

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/18
  • Last Seen:  

11 hours ago, crazyarashi said:

That's why you add every possible combination of your item in item_combo_db, please do read the guides :))
Ex.

HATID:GLASSESID:RLEAFID:,{ bonus bStr,1; }
CAPID:GLASSESID:RLEAFID:,{ bonus bStr,1; }
HELMID:GLASSESID:RLEAFID:,{ bonus bStr,1; }

yes, i've done that in other set of items...

my question is... is there any general script if you have tons of items to add (not one by one like that)

eg: 10 upper / 10mid / 10 lower ... well you can't add all the possible combination for those items ...


like setting array? if isequipped ?
sorry i have the idea but i don't know how to add that script

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  33
  • Reputation:   0
  • Joined:  03/27/18
  • Last Seen:  

i've come up with this.... now my question is how to simplify this script?


i'll just put this into the UPPER HEADGEAR SCRIPT


those are the MID and LOWER headgear

{ if((isequipped(41411) || isequipped(41412) || isequipped(41413) || isequipped(41414) || isequipped(41415) || isequipped(41416) || isequipped(41417) || isequipped(41429)) && (isequipped(41418) || isequipped(41419) || isequipped(41420) || isequipped(41421) || isequipped(41422) || isequipped(41423) || isequipped(41424) || isequipped(41425) || isequipped(41426) || isequipped(41427) || isequipped(41428))) bonus bAllStats,2; }

 

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

Adding it in the item_combo_db would simplify it. :))

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