Lil Troll Posted August 10, 2013 Posted August 10, 2013 (edited) Is there a restriction in item bonus which cannot be get by specific class? For example: I wanted all class to have +5 agi except for thief. Anyone knows rather than countering the bonus itself?{ if(BaseClass==Job_Thief)bonus bAgi,-5; bonus bAgi,-5; },{},{}And how about this complicated one?{ bonus bAllstats,5; bonus bUnbreakableGarment,0; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus bFlee2,2+(getequiprefinerycnt(EQI_GARMENT)*1); else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus bShortWeaponDamageReturn,1+(getequiprefinerycnt(EQI_GARMENT)*1); },{},{} Edited August 10, 2013 by Lil Troll Quote
Patskie Posted August 10, 2013 Posted August 10, 2013 Try this : { if ( BaseClass != Job_Thief ) { bonus bAgi,-5; bonus bAgi,-5; } },{},{} There is no operator !== and besides you can only disregard brackets if you will use only one command : if ( BaseClass == Job_Thief ) bonus bAgi,5; if ( BaseClass == Job_Thief ) { bonus bAgi,5; bonus bStr,5; } Quote
Evelynn Posted August 10, 2013 Posted August 10, 2013 Before the bonus, use if (BaseClass!=Job_Thief) {} This will apply for every other job except Thief. Quote
Lil Troll Posted August 10, 2013 Author Posted August 10, 2013 (edited) Thanks for the reply and sorry Evelynn i didnt get it im really bad in english, what in these format is correct? #1 : if(BaseClass!==Job_Thief){bonus bAgi,-5; bonus bAgi,-5; },{},{} #2: { if(BaseClass!==Job_Thief) bonus bAgi,-5; bonus bAgi,-5; },{},{} Edited August 10, 2013 by Lil Troll Quote
Lil Troll Posted August 11, 2013 Author Posted August 11, 2013 Thanks for all the help, @sir patskie, @evelynn, the script is doing fine now. Quote
Question
Lil Troll
Is there a restriction in item bonus which cannot be get by specific class?
For example:
I wanted all class to have +5 agi except for thief. Anyone knows rather than countering the bonus itself?
Edited by Lil Troll{ if(BaseClass==Job_Thief)bonus bAgi,-5; bonus bAgi,-5; },{},{}
And how about this complicated one?
{ bonus bAllstats,5; bonus bUnbreakableGarment,0; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus bFlee2,2+(getequiprefinerycnt(EQI_GARMENT)*1); else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus bShortWeaponDamageReturn,1+(getequiprefinerycnt(EQI_GARMENT)*1); },{},{}
4 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.