Jump to content
  • 0

BaseJob and BaseClass not working


rqueen

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

I'm trying to revise the script for Spike[2] to only give the 2/3 reduction of total DEF for priest classes only since Champions are op in our server.

 

I've tried this:

1538,Spike_,Spike,4,,10,700,85,,1,2,0x00008110,7,2,2,4,40,1,8,{ bonus bCritical,40; if(BaseClass==Job_Priest) bonus bDefRate,-67; bonus bDef2Rate,-67; },{},{}

 

and this:

1538,Spike_,Spike,4,,10,700,85,,1,2,0x00008110,7,2,2,4,40,1,8,{ bonus bCritical,40; if(BaseJob==Job_Priest) bonus bDefRate,-67; bonus bDef2Rate,-67; },{},{}

 

I've tried removing the parentheses as well to no avail.

 

We are still using an eAthena emulator btw.

Edited by rqueen
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • -1

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

Try : 

1538,Spike_,Spike,4,,10,700,85,,1,2,0x00008110,7,2,2,4,40,1,8,{ bonus bCritical,40; if( BaseJob == Job_Priest ) { bonus bDefRate,-67; bonus bDef2Rate,-67; } },{},{}
 
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

As an explanation:

  • BaseClass always returns the 1-1 class, so it will not work for Job_Priest (ever).
  • You need to enclose scripts in brackets when there's more than one command.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  82
  • Reputation:   1
  • Joined:  04/30/13
  • Last Seen:  

@Patskie - script's working great, thanks a lot!

 

@Euphy - thanks for the clarification/explanation!

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