Jump to content
  • 0

Different stats on an item


Question

8 answers to this question

Recommended Posts

  • 0
Posted

Example: Hat[0] gives +10 STR to swordman class

2220,Hat,Hat,4,1000,,200,,2,,0,0xFFFFFFFF,7,2,256,,0,1,16,{ if(BaseClass==Job_Swordman) { bonus bStr,10; } },{},{}

And what specific kind of item tho? Equipment or usable?

  • 0
Posted
1 hour ago, Scylla said:

Example: Hat[0] gives +10 STR to swordman class

2220,Hat,Hat,4,1000,,200,,2,,0,0xFFFFFFFF,7,2,256,,0,1,16,{ if(BaseClass==Job_Swordman) { bonus bStr,10; } },{},{}


2220,Hat,Hat,4,1000,,200,,2,,0,0xFFFFFFFF,7,2,256,,0,1,16,{ if(BaseClass==Job_Swordman) { bonus bStr,10; } },{},{}

And what specific kind of item tho? Equipment or usable?

An equipment. I don't know if it's possible to use the same script for different jobs and stats. Example: { if(BaseClass==Job_Swordman) { bonus bStr,10; }{ if(BaseClass==Job_Thief) { bonus bStr,20; }  },{},{}

  • 0
Posted
9 minutes ago, sader1992 said:

you can use switch (BaseJob) or switch (BaseClass) if you want

I don't get it, im kinda new with this, sorry xD!. I just want an script that if Champs wears it it gives +10 stats. If thief wears it + 20 stats. 

  • 0
Posted

switch (BaseClass) {case Job_Acolyte: bonus bAllStats,10; break; case Job_Thief: bonus bAllStats,20; break;}

if Acolyte and up 10 all stats

if Thief and up 20 all stats

  • Like 1
  • 0
Posted

To also teach how to fish, my advice is for you to always try common scripts on items to achieve the effects you wish.
Most common scripts, used on NPCs and such will work as good on items, just take care to not overload them.

  • Like 1

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...