Jump to content
  • 0

Item Script <job> ONLY Problem


WhatFT

Question


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

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 ~

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Hm okay thanks ~ I'll try it..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

up :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  209
  • Topics Per Day:  0.05
  • Content Count:  892
  • Reputation:   27
  • Joined:  12/09/11
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Hm okay, I'll post my update :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   36
  • Joined:  01/21/13
  • Last Seen:  

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; }
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

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 ~

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  127
  • Reputation:   36
  • Joined:  01/21/13
  • Last Seen:  

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