• 0
Sign in to follow this  
dest1n

help with item scripting

Question

Hello can someone help or fix my script ? Because its not working for both ( normal effect and item combo )

Here's the item :

Every refine MATK +5, Variable cast time -1%
            Increases magical attack inflicted on Earth, Ghost, Neutral and Undead monsters by 2%
            When combined with Moonlight Flower Card
            Enables the use of Level 10 Heal
            If Base Level is below 100
            Every refine MDEF +5, MATK +5
            If Base Level at least 100
            "Every refine MDEF +10, MATK +15
         
           Type Footgear
           Defense18
            Weight 100
            RefinableYes
           
            Requirement
           Base level 99

 

 

and my script in itemdb.txt

22132,Lighting_Gods_Shoes,Lightning Gods Shoes,4,20,,400,,18,,1,0xFFFFFFFE,63,2,64,,99,1,0,{ .@r = getrefine(); bonus2 bVariableCastrate,-.@r; bonus bMatk,(.@r*5); bonus2 bMagicAddEle,Ele_Earth,2*.@r; bonus2 bAddEle,Ele_Neutral,2*.@r; bonus2 bAddEle,Ele_Undead,2*.@r; bonus2 bAddEle,Ele_Ghost,2*.@r;},{},{}

 

and this one in item_combo_db.txt

22132:4131,{.@r = getequiprefinerycnt(EQI_SHOES);skill "AL_HEAL",10;if(BaseLevel < 99){bonus bMatk,.@r*5;bonus bMdef,.@r*;} else {bonus bMatk,.@r*15;bonus bMdef,.@r*10;}}

 

Thank You

Share this post


Link to post
Share on other sites

10 answers to this question

Recommended Posts

  • 0
1 hour ago, DevMarikuLabsan said:

Can you clear item script you want? I can make you item script.

for this item

lightning.png

Share this post


Link to post
Share on other sites
  • 0
22132,Lighting_Gods_Shoes,Lightning Gods Shoes,4,20,,400,,18,,1,0xFFFFFFFE,63,2,64,,99,1,,{ [email protected] = getrefine(); bonus2 bVariableCastrate,[email protected]; bonus bMatk,([email protected]*5); bonus2 bMagicAddEle,Ele_Earth,2*[email protected]; bonus2 bAddEle,Ele_Neutral,2*[email protected]; bonus2 bAddEle,Ele_Undead,2*[email protected]; bonus2 bAddEle,Ele_Ghost,2*[email protected]; },{},{}

There is nothing wrong with your item script 😮

Edited by crazyarashi

Share this post


Link to post
Share on other sites
  • 0
8 minutes ago, crazyarashi said:
22132,Lighting_Gods_Shoes,Lightning Gods Shoes,4,20,,400,,18,,1,0xFFFFFFFE,63,2,64,,99,1,,{ [email protected] = getrefine(); bonus2 bVariableCastrate,[email protected]; bonus bMatk,([email protected]*5); bonus2 bMagicAddEle,Ele_Earth,2*[email protected]; bonus2 bAddEle,Ele_Neutral,2*[email protected]; bonus2 bAddEle,Ele_Undead,2*[email protected]; bonus2 bAddEle,Ele_Ghost,2*[email protected]; },{},{}

There is nothing wrong with your item script 😮

how about the 2nd one ? the item_combo_db ?

Share this post


Link to post
Share on other sites
  • 0
22 hours ago, sader1992 said:

the item itself
bAddEle -> bMagicAddEle

the combo , look at

bMdef,[email protected]*; << wrong

so after i edit my script on itemdb.txt become like this

22132,Lighting_Gods_Shoes,Lightning Gods Shoes,4,20,,100,,18,,1,0xFFFFFFFE,63,2,64,,99,1,0,{ .@r = getrefine(); bonus bMatk,(.@r*5) ; bonus2 bVariableCastrate,-.@r ; bonus2 bMagicAddEle,Ele_Earth,2*.@r ; bonus2 bMagicAddEle,Ele_Neutral,2*.@r ; bonus2 bMagicAddEle,Ele_Undead,2*.@r ; bonus2 bMagicAddEle,Ele_Ghost,2*.@r; },{},{}

still not working for the +5matk every refine

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, dest1n said:

so after i edit my script on itemdb.txt become like this

22132,Lighting_Gods_Shoes,Lightning Gods Shoes,4,20,,100,,18,,1,0xFFFFFFFE,63,2,64,,99,1,0,{ .@r = getrefine(); bonus bMatk,(.@r*5) ; bonus2 bVariableCastrate,-.@r ; bonus2 bMagicAddEle,Ele_Earth,2*.@r ; bonus2 bMagicAddEle,Ele_Neutral,2*.@r ; bonus2 bMagicAddEle,Ele_Undead,2*.@r ; bonus2 bMagicAddEle,Ele_Ghost,2*.@r; },{},{}

still not working for the +5matk every refine

than i would say it's something wrong with your setup or src

make sure to put the line in the file that the server use , and not overwritten by another file

make sure you are not using sql too if you are using txt

ofc you need to reload the item database or restart the server to apply the changes

make sure there is no error in your itemdb , that case the server to skip (looking to the past errors , you was ignoring the errors in the terminal)

i think you would find the fix you want in the basic

if not , and everything right , i think you should look into any src edit/mode you made to your server

Edited by sader1992

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

Loading...
Sign in to follow this