Jump to content
  • 0

help on item script bonus IF(isequip etc


AinsLord

Question


  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

^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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   9
  • Joined:  01/09/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  50
  • Reputation:   9
  • Joined:  01/09/12
  • Last Seen:  

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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  257
  • Topics Per Day:  0.08
  • Content Count:  737
  • Reputation:   18
  • Joined:  11/21/15
  • Last Seen:  

thnx man

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