Jump to content
  • 0

help on item script bonus IF(isequip etc


Question

Posted (edited)
^008000[  Darkness Glassess ]^000000
Int + 5
Reduce Cast-delay by 5%
Matk + 7%
HP/MP increase by 10%
[ Darkness Set ]
If Professor +10% more damage using Fire and Cold bolts
If High Wizard +10% more damage using Storm gust and Meteor Storm
+5% more damage to demi-humans
+3 All stats
Reduce cast-delay by 5%
Gives Resistance to Stone Curse by 30%
Damage to boss type monster +300%

im trying my best to do the Set bonus of the item but i kept on failing

can anyone help me with this

thnx in advance

this is my script for it

if(isequipped(item1,item2)) bonus bAllstats,3; bonus bDelayrate,-5; bonus2 bResEff,Eff_Stone,3000; bonus2 bAddClass,Class_Boss,300; bonus2 bMagicAddRace,rc_all,5; if(Class==Job_Sage) bonus2 bSkillAtk,"MG_FIREBOLT",10; bonus2 bSkillAtk,"MG_COLDBOLT",10; else if(Class==Job_Wizard) bonus2 bSkillAtk,"WZ_STORMGUST",10; bonus2 bSkillAtk,"WZ_METEOR",10;

tell me whats wrong with my script

Edited by whodhell

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

You need to refer at: /db/re/item_combo_db.txt :D (or pre-re):
P/S: I think you need {} after if for more than one statement

Edited by Bitwise
  • 0
Posted (edited)

ive tried that on item_combo_db.txt

still got some error

 

here is the error

script error on db/import/item_combo_db.txt line 6
    parse_line: expect command, missing function name or calling undeclared function
*    6 : {  bonus bAllstats,3; bonus bDelayrate,-5; bonus2 bResEff,Eff_Stone,3000; bonus2 bAddClass,Class_Boss,300; bonus2 bMagicAddRace,rc_all,5; if(BaseClass==Job_Sage) bonus2 bSkillAtk,"MG_FIREBOLT",10; bonus2 bSkillAtk,"MG_COLDBOLT",10; 'e'lse if(BaseClass==Job_Wizard) bonus2 bSkillAtk,"WZ_STORMGUST",10; bonus2 bSkillAtk,"WZ_METEOR",10; }

 

Edited by whodhell
  • 0
Posted (edited)
2 hours ago, Bitwise said:

P/S: I think you need {} after if for more than one statement

 

Okay, hope you understand what this block code say and you know what you missing:

{  
	bonus bAllstats,3;
	bonus bDelayrate,-5;
	bonus2 bResEff,Eff_Stone,3000;
	bonus2 bAddClass,Class_Boss,300;
	bonus2 bMagicAddRace,rc_all,5;
	
	if(BaseClass==Job_Sage){ 
	bonus2 bSkillAtk,"MG_FIREBOLT",10;
	bonus2 bSkillAtk,"MG_COLDBOLT",10; }
	
	if(BaseClass==Job_Wizard){ 
	bonus2 bSkillAtk,"WZ_STORMGUST",10;
	bonus2 bSkillAtk,"WZ_METEOR",10;} 
}

 

Edited by Bitwise
  • 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...