WhatFT Posted March 12, 2013 Posted March 12, 2013 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 ~ Quote
nanakiwurtz Posted March 12, 2013 Posted March 12, 2013 You have to use { } to prevent it from being mixed with other bonuses Quote
WhatFT Posted March 12, 2013 Author Posted March 12, 2013 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 .... Quote
PewN Posted March 13, 2013 Posted March 13, 2013 try to use if(BaseClass == Job_Blacksmith){ script } Quote
Mumbles Posted March 13, 2013 Posted March 13, 2013 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; } Quote
WhatFT Posted March 13, 2013 Author Posted March 13, 2013 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 ~ Quote
Mumbles Posted March 13, 2013 Posted March 13, 2013 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; } Quote
Question
WhatFT
Does this Item Script even work? I tested it but I think it doesn't work ...
Here is a sample..
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.