Lil Troll Posted August 10, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted August 10, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 15 hours ago Share 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 Link to comment Share on other sites More sharing options...
Evelynn Posted August 10, 2013 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 93 Reputation: 14 Joined: 12/12/11 Last Seen: October 25, 2015 Share Posted August 10, 2013 Before the bonus, use if (BaseClass!=Job_Thief) {} This will apply for every other job except Thief. Quote Link to comment Share on other sites More sharing options...
Lil Troll Posted August 10, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Author Share 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 Link to comment Share on other sites More sharing options...
Lil Troll Posted August 11, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 276 Reputation: 24 Joined: 07/06/13 Last Seen: April 19, 2014 Author Share Posted August 11, 2013 Thanks for all the help, @sir patskie, @evelynn, the script is doing fine now. Quote Link to comment Share on other sites More sharing options...
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); },{},{}
Link to comment
Share on other sites
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.