Jump to content
  • 0

Confirming some script


Question

Posted

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

9 answers to this question

Recommended Posts

Posted (edited)

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
Posted

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

Posted (edited)

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
Posted (edited)

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
Posted

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.

Posted (edited)

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
Posted

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

Posted

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

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