Jump to content
  • 0

Item Script <job> ONLY Problem


Question

Posted

Does this Item Script even work? I tested it but I think it doesn't work ...

 

if(Class == Job_Whitesmith)

 

Here is a sample..

 

bonus bAtkRate,10; bonus bDef,4; bonus bMdef,4; bonus bStr,6; bonus bVit,6; if(Class == Job_Lord_Knight) bonus2 bSkillAtk,"KN_BOWLINGBASH",5; bonus bAtkRate,5; bonus bStr,4; if(Class == Job_Champion) bonus2 bSkillAtk,"MO_FINGEROFFENSIVE",5; bonus bMaxSPrate,7; bonus bStr,4; if(Class == Job_Star_Gladiator) bonus2 bSkillAtk,"TK_JUMPKICK",10; bonus bAtkRate,5; bonus bStr,5; 

 

 

When I try to wear it in all jobs, All of those stats are combined, Even If I try using wizard, it still give the same effects on it... 

 

need help ASAP ~

9 answers to this question

Recommended Posts

Posted

I already tried adding { } but still the effects are mixing up ....



You have to use { } to prevent it from being mixed with other bonuses ;)

 

I already tried adding { } but still the effects are mixing up ....

Posted
bonus bAtkRate,10; bonus bDef,4; bonus bMdef,4; bonus bStr,6; bonus bVit,6; if(Class == Job_Lord_Knight) { bonus2 bSkillAtk,"KN_BOWLINGBASH",5; bonus bAtkRate,5; bonus bStr,4; } if(Class == Job_Champion) { bonus2 bSkillAtk,"MO_FINGEROFFENSIVE",5; bonus bMaxSPrate,7; bonus bStr,4; } if(Class == Job_Star_Gladiator) { bonus2 bSkillAtk,"TK_JUMPKICK",10; bonus bAtkRate,5; bonus bStr,5; }
Posted

try to use if(BaseClass == Job_Blacksmith){ script } 

 

 

bonus bAtkRate,10; bonus bDef,4; bonus bMdef,4; bonus bStr,6; bonus bVit,6; if(Class == Job_Lord_Knight) { bonus2 bSkillAtk,"KN_BOWLINGBASH",5; bonus bAtkRate,5; bonus bStr,4; } if(Class == Job_Champion) { bonus2 bSkillAtk,"MO_FINGEROFFENSIVE",5; bonus bMaxSPrate,7; bonus bStr,4; } if(Class == Job_Star_Gladiator) { bonus2 bSkillAtk,"TK_JUMPKICK",10; bonus bAtkRate,5; bonus bStr,5; }

 

Thank You both of you :) I thought the { } will start before "if" but thanks anyways ~

Posted

I thought the { } will start before "if" but thanks anyways ~

Your brackets, "{ }", will always start after the conditional statement, "if( )", if you are executing more than one script function within the conditional statement.

 

 

Example:

if(Class == Job_Whitesmith) { bonus bAtkRate,10; bonus bDef,4; }

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