Jump to content
  • 0

BaseJob and BaseClass not working


Question

Posted (edited)

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

3 answers to this question

Recommended Posts

  • -1
Posted

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
Posted

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.

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