Jump to content
  • 0

How item bonus not work to certain class?


Lil Troll

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

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

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  50
  • Topics Per Day:  0.01
  • Content Count:  1702
  • Reputation:   238
  • Joined:  09/05/12
  • Last Seen:  

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

 


 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  93
  • Reputation:   14
  • Joined:  12/12/11
  • Last Seen:  

Before the bonus, use 

 

if (BaseClass!=Job_Thief) {}

 

This will apply for every other job except Thief.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Thanks for all the help, @sir patskie, @evelynn, the script is doing fine now. :D

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