Jump to content
  • 0

Question

Hi ulit mga kababayan! Humihingi nanaman ako ng tulong sainyo. Pasensya na po at nawawala ako tungkol dito sa database na to. Hindi ko alam kung dito o sa script ko dapat ipost since script at database naman talaga ito.

 

{
	Id: 30133
	AegisName: "skuillcap"
	Name: "Skull Cap"
	Type: 5
	Buy: 20
	Weight: 100
	Def: 5
	Slots: 1
	Loc: 256
	View: 2130
	Script: <"
		bonus2 bSubRace,RC_Player,10;
		if(BaseClass==Job_Merchant) bonus2 bSkillAtk,485,10; bonus bAspdRate,5;
		else if(BaseClass==Job_Thief) bonus2 bAddEle,Ele_Holy,10; bonus bAspdRate,5;
		else if(BaseJob==Job_Rogue) bonus bDex,8; bonus bInt,12;
		else if(BaseJob==Job_Ninja) bonus bDex,12; bonus bInt,12;
	">
},

 

Hindi umano gumagana ito? Error:

 

[Error]: script error in file 'pre-re/item_db.conf' item ID 30130
    parse_line: expect command, missing function name or calling undeclared func
tion
*30133:
*30132:                 bonus2 bSubRace,RC_Player,10;
*30131:                 if(BaseClass==Job_Merchant) bonus2 bSkillAtk,485,10;  bo
nus bAspdRate,5;
 30130:                 else if(BaseClass==Job_Thief) bonus2 bAddEle,Ele_Holy,10
;  bonus bAspdRate,5;
        ~~~~~~~~~~~~~~~~^
*30129:                 else if(BaseJob==Job_Rogue) bonus bDex,8;  bonus bInt,12
;
*30128:                 else if(BaseJob==Job_Ninja) bonus bDex,12; bonus bInt,12
;
*30127:

Dapat po ganto effect nya sana! Maraming salamat!

 

307ol4x.jpg

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Script: <"
		bonus2 bSubRace,RC_Player,10;
		if(BaseClass==Job_Merchant){
			bonus2 bSkillAtk,485,10;
			bonus bAspdRate,5;
		}
		else if(BaseClass==Job_Thief) {
			bonus2 bAddEle,Ele_Holy,10;
			bonus bAspdRate,5;
		}
		else if(BaseJob==Job_Rogue) {
			bonus bDex,8;
			bonus bInt,12;
		}
		else if(BaseJob==Job_Ninja) {
			bonus bDex,12;
			bonus bInt,12;
		}
	">
You forgot brackets

if works for one statement only, if you want more than one, then use curly brackets

Share this post


Link to post
Share on other sites
  • 0

Wow thank you very much Dastgir!


Last thing i would like to ask about this.
i can't seem to find a script for 2 Kiel + 2 Ring Combo Effect

2 Kiel will work only with 2 Ring

With out ring Kiel wont work or missing 1 Kiel it wont work.

 

Thanks in advance!

:thx:

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.