Jump to content
  • 0

Confirming some script


Zagreuz

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   5
  • Joined:  11/19/11
  • Last Seen:  

just want to confirm if this is the right syntax for the item script.

bonus bAllStats,10; if(BaseClass == Job_Sniper) { bonus2 bSubRace,RC_DemiHuman,30; bonus2 bSkillAtk,"SN_SHARPSHOOTING",300; } else if(BaseClass==Job_Bard || BaseClass == Job_Clown) { bonus2 bSubRace,RC_DemiHuman,10; bonus2 bSkillAtk,"CG_ARROWVULCAN",300;

its a helm that was use for sniper and clown , i want to make it increase the skill damage, by using if & else

Link to comment
Share on other sites

9 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

You can always make the item only available for Archer class. Thus, changing to :

bonus bAllStats,10; if(BaseClass == Job_Sniper) { bonus2 bSubRace,RC_DemiHuman,30; bonus2 bSkillAtk,"SN_SHARPSHOOTING",300; } else { bonus2 bSubRace,RC_DemiHuman,10; bonus2 bSkillAtk,"CG_ARROWVULCAN",300; }

There are other ways to change the above method.

Other then that, try your way.

Edited by Mysterious
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   5
  • Joined:  11/19/11
  • Last Seen:  

well, i already make the item exclusive to sniper's and clowns, so is my problem at the "else if" change to "else" only ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

I guess your just missing a closing curly brace

bonus bAllStats,10; if(BaseClass == Job_Sniper) { bonus2 bSubRace,RC_DemiHuman,30; bonus2 bSkillAtk,"SN_SHARPSHOOTING",300; } else if(BaseClass==Job_Bard || BaseClass == Job_Clown) { bonus2 bSubRace,RC_DemiHuman,10; bonus2 bSkillAtk,"CG_ARROWVULCAN",300};

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   5
  • Joined:  11/19/11
  • Last Seen:  

this is the whole line of the script

{ bonus bAllStats,10; if(BaseClass == Job_Sniper) { bonus2 bSubRace,RC_DemiHuman,30; bonus2 bSkillAtk,"SN_SHARPSHOOTING",300; } else if(BaseClass==Job_Bard || BaseClass == Job_Clown) { bonus2 bSubRace,RC_DemiHuman,10; bonus2 bSkillAtk,"CG_ARROWVULCAN",300; } },{},{}

still having a missing curly brace ?

Edited by LordOfHeRO
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  633
  • Reputation:   78
  • Joined:  11/14/11
  • Last Seen:  

I dont know if is really BaseClass exist. the only Code i found in the script commands that check jobs is

BaseJob

This is sneaky, apparently meant for baby class support. This will supposedly equal Job_Acolyte regardless of whether the character is an acolyte or a baby acolyte, for example.

and

Class

Current Job
Edited by JayPeeMateo
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

BaseClass doesn't exist; Should be Class instead.

here:

{ bonus bAllStats,10; if(Class == 4012) { bonus2 bSubRace,RC_DemiHuman,30; bonus2 bSkillAtk,"SN_SHARPSHOOTING",300; } else if(Class == 19 || Class == 4020) { bonus2 bSubRace,RC_DemiHuman,10; bonus2 bSkillAtk,"CG_ARROWVULCAN",300; } },{},{}

4012 = sniper

19 = bard

4020 = clown

You can check the ids in db/const.txt even though using job_class will still work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   5
  • Joined:  11/19/11
  • Last Seen:  

say . . . its the BaseClass problem ey ! , i try Slim info first ! , thanks Slim and JayPeeMateo :P

p/s : it works , thanks Guys ! , really been helping, topic close i guess ? :(

Edited by LordOfHeRO
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

BaseClass doesnt Exist...

but BaseJob Exist ~

BaseJob     - This is sneaky, apparently meant for baby class support.
             This will supposedly equal Job_Acolyte regardless of whether the 
             character is an acolyte or a baby acolyte, for example.

to check current Class..we use..

Class       - Current job

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  392
  • Reputation:   47
  • Joined:  11/18/11
  • Last Seen:  

say . . . its the BaseClass problem ey ! , i try Slim info first ! , thanks Slim and JayPeeMateo :P

p/s : it works , thanks Guys ! , really been helping, topic close i guess ? :(

No problem, I won't close it but, I'll mark it as Solved instead.

  • Upvote 1
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...