Jump to content
  • 0

Function Skill Item Script


Yonko

Question


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.03
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

Hi rAthenians,

I would like to request a Function script that will be look like this example a soul linker worn a valkyrie armor he will learn fire bolt level 5, When he equiped a valkyrie boots(so mean Valkyrie Armor + Boots) the fire bolt level will adjust to 10.

thanks!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  182
  • Reputation:   36
  • Joined:  01/26/12
  • Last Seen:  

Have you tried the Skill script command with flag 2?

 

This is the script you should add to the OnEquip event to Valkyrian Armor (ID# 2357) and the Valkyrian Shoes (ID# 2421). I haven't tested it but should work. ADD the code at the end of the EXISTENT one in order not to lose the rest of the benefits of the original items:

 

For the Valky Armor:

if (Class == Job_Soul_Linker) skill 19,5,2;

 

And for the Valky Shoes:

if (Class == Job_Soul_Linker && isequipped(2357)) skill 19,5,2;

If you want either one of them give 5 levels of fire bolt without the boots checking for the armor, add the same code from the armor on the boots.

 

This way the Soul Linker will have it level 10. A known problem is if the Soul Linker has some other item of already knows Fire Bolt  that adds Fire Bolt Levels is that he/she will have it level 10+the level granted by the rest of the equip (see the link to the script command above), but I don't known how to fix that and I think it can't be helped right now.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  166
  • Topics Per Day:  0.03
  • Content Count:  789
  • Reputation:   50
  • Joined:  04/16/12
  • Last Seen:  

Have you tried the Skill script command with flag 2?

 

This is the script you should add to the OnEquip event to Valkyrian Armor (ID# 2357) and the Valkyrian Shoes (ID# 2421). I haven't tested it but should work. ADD the code at the end of the EXISTENT one in order not to lose the rest of the benefits of the original items:

 

For the Valky Armor:

if (Class == Job_Soul_Linker) skill 19,5,2;

 

And for the Valky Shoes:

if (Class == Job_Soul_Linker && isequipped(2357)) skill 19,5,2;

If you want either one of them give 5 levels of fire bolt without the boots checking for the armor, add the same code from the armor on the boots.

 

This way the Soul Linker will have it level 10. A known problem is if the Soul Linker has some other item of already knows Fire Bolt  that adds Fire Bolt Levels is that he/she will have it level 10+the level granted by the rest of the equip (see the link to the script command above), but I don't known how to fix that and I think it can't be helped right now.

thanks lemme try this btw i will make a function for this then i'll attach the function name on the item in item_db?

Edited by wiideliva
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  182
  • Reputation:   36
  • Joined:  01/26/12
  • Last Seen:  

I don't know what you menat so I'll explain it fully:

 

Take your item_db.txt (in /db/{re or pre-re}/item_db.txt and look for those items:

2357,Valkyrie_Armor,Valkyrian Armor,5,0,,2800,,55,,1,0xFFFFFFFE,2,2,16,,1,1,0,{ bonus bAllStats,1; bonus bUnbreakableArmor,0; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus2 bResEff,Eff_Silence,5000; else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus2 bResEff,Eff_Stun,5000; },{},{}
[...]
2421,Valkyrie_Shoes,Valkyrian Shoes,5,0,,500,,13,,1,0xFFFFFFFE,2,2,64,,1,1,0,{ bonus bUnbreakableShoes,0; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus bMaxHP,(BaseLevel*5); else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus bMaxSP,(JobLevel*2); },{},{}

 

Add the effects I told you to add so they look like this (I underlined it) (seems the underline doesn't work on code boxes):

2357,Valkyrie_Armor,Valkyrian Armor,5,0,,2800,,55,,1,0xFFFFFFFE,2,2,16,,1,1,0,{ bonus bAllStats,1; bonus bUnbreakableArmor,0; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus2 bResEff,Eff_Silence,5000; else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus2 bResEff,Eff_Stun,5000; if (Class == Job_Soul_Linker) skill 19,5,2; },{},{}
[...]
2421,Valkyrie_Shoes,Valkyrian Shoes,5,0,,500,,13,,1,0xFFFFFFFE,2,2,64,,1,1,0,{ bonus bUnbreakableShoes,0; if(BaseClass==Job_Mage||BaseClass==Job_Archer||BaseClass==Job_Acolyte) bonus bMaxHP,(BaseLevel*5); else if(BaseClass==Job_Swordman||BaseClass==Job_Merchant||BaseClass==Job_Thief) bonus bMaxSP,(JobLevel*2); if (Class == Job_Soul_Linker && isequipped(2357)) skill 19,5,2; },{},{}

 

Then test if they do work properly. Once you've made those changes and saved the file you can restart your server or well use @reloaditemdb. As long as I know, they should work.

Edited by jaBote
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...