Jump to content
  • 0

Stats Using Callfunc Error with Gypsy


KingiRemz

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  03/12/23
  • Last Seen:  

Hi i keep keeping an a annoying error.

Quote

[Error]: npc_parsesrcfile: Unknown syntax in file 'npc/remz/setfunctions.txt', line '59'. Stopping...
 * w1=else if(BaseClass == Job_Clown || BaseClass == Job_Gypsy) {
 * w2=
 * w3=
 * w4=
 

 

Heres the code:

function	script	BDEX	{
  bonus bDex,7;
  bonus bAgi,6;
  bonus bMdef,5;
  bonus bDef,5;
  bonus bLongAtkRate,5;
  bonus bMaxSPrate,3;
if(BaseClass==Job_Hunter) {
	bonus bLongAtkRate,3;
  bonus bMaxSPrate,5;
}
else if(BaseClass==Job_Rogue) {
  bonus bMaxHPrate,5;
  bonus bLongAtkRate,2;
  bonus bMaxSPrate,5;
}
}
else if(BaseClass==Job_gunslinger) {
  bonus bMaxHPrate,5;
  bonus bLongAtkRate,2;
  bonus bMaxSPrate,5;
}
else if(BaseClass==Job_Clown||BaseClass==Job_Gypsy) {
bonus bLongAtkRate,3;
bonus bMaxHPrate,3;
bonus bMaxSPrate,5;
end;
}

 

Im not even sure why its giving me an error regarding just these two classes.

all the other are perfectly fine.

 

 

Thank you in advance!

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

3 hours ago, KingiRemz said:

Hi i keep keeping an a annoying error.

 

Heres the code:

function	script	BDEX	{
  bonus bDex,7;
  bonus bAgi,6;
  bonus bMdef,5;
  bonus bDef,5;
  bonus bLongAtkRate,5;
  bonus bMaxSPrate,3;
if(BaseClass==Job_Hunter) {
	bonus bLongAtkRate,3;
  bonus bMaxSPrate,5;
}
else if(BaseClass==Job_Rogue) {
  bonus bMaxHPrate,5;
  bonus bLongAtkRate,2;
  bonus bMaxSPrate,5;
}
}
else if(BaseClass==Job_gunslinger) {
  bonus bMaxHPrate,5;
  bonus bLongAtkRate,2;
  bonus bMaxSPrate,5;
}
else if(BaseClass==Job_Clown||BaseClass==Job_Gypsy) {
bonus bLongAtkRate,3;
bonus bMaxHPrate,3;
bonus bMaxSPrate,5;
end;
}

 

Im not even sure why its giving me an error regarding just these two classes.

all the other are perfectly fine.

 

 

Thank you in advance!

 

try change this line

else if(BaseClass==Job_Clown||BaseClass==Job_Gypsy) {

into this

else if((BaseClass==Job_Clown)||(BaseClass==Job_Gypsy)) {

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  431
  • Reputation:   164
  • Joined:  12/12/17
  • Last Seen:  

I think the variable JOB_GYPSY doesnt exist. Try JOB_DANCER

 

Edit:
My bad, it does exist.. show us the error instead.

Edited by pajodex
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1511
  • Reputation:   227
  • Joined:  08/03/12
  • Last Seen:  

18 hours ago, KingiRemz said:

Hi i keep keeping an a annoying error.

 

Heres the code:

function	script	BDEX	{
  bonus bDex,7;
  bonus bAgi,6;
  bonus bMdef,5;
  bonus bDef,5;
  bonus bLongAtkRate,5;
  bonus bMaxSPrate,3;
if(BaseClass==Job_Hunter) {
	bonus bLongAtkRate,3;
  bonus bMaxSPrate,5;
}
else if(BaseClass==Job_Rogue) {
  bonus bMaxHPrate,5;
  bonus bLongAtkRate,2;
  bonus bMaxSPrate,5;
}
}
else if(BaseClass==Job_gunslinger) {
  bonus bMaxHPrate,5;
  bonus bLongAtkRate,2;
  bonus bMaxSPrate,5;
}
else if(BaseClass==Job_Clown||BaseClass==Job_Gypsy) {
bonus bLongAtkRate,3;
bonus bMaxHPrate,3;
bonus bMaxSPrate,5;
end;
}

 

Im not even sure why its giving me an error regarding just these two classes.

all the other are perfectly fine.

 

 

Thank you in advance!

 

u have double close curly before job gunslinger.

and also separate the basejob OR condition like what hendra814 stated above.

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