Jump to content
  • 0

How item bonus not work to certain class?


Question

Posted (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 by Lil Troll

4 answers to this question

Recommended Posts

Posted

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

 


 

Posted (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 by Lil Troll

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