Jump to content
  • 0

help with item scripting


dest1n

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

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

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

the item itself
bAddEle -> bMagicAddEle

the combo , look at

bMdef,.@r*; << wrong

Edited by sader1992
  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

1 hour ago, DevMarikuLabsan said:

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

for this item

lightning.png

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

22132,Lighting_Gods_Shoes,Lightning Gods Shoes,4,20,,400,,18,,1,0xFFFFFFFE,63,2,64,,99,1,,{ .@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; },{},{}

There is nothing wrong with your item script ?

Edited by crazyarashi
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

8 minutes ago, crazyarashi said:

22132,Lighting_Gods_Shoes,Lightning Gods Shoes,4,20,,400,,18,,1,0xFFFFFFFE,63,2,64,,99,1,,{ .@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; },{},{}

There is nothing wrong with your item script ?

how about the 2nd one ? the item_combo_db ?

Link to comment
Share on other sites

  • 0

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

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; }}

Watch your spaces.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

1 hour ago, crazyarashi said:

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; }}

Watch your spaces.

weird, still not working

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  17
  • Reputation:   1
  • Joined:  04/11/19
  • Last Seen:  

22 hours ago, sader1992 said:

the item itself
bAddEle -> bMagicAddEle

the combo , look at

bMdef,.@r*; << 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

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1676
  • Reputation:   703
  • Joined:  12/21/14
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.02
  • Content Count:  291
  • Reputation:   26
  • Joined:  12/16/17
  • Last Seen:  

@sader1992 hi sader can you help me too??

@sader1992 @crazyarashi Hello guys. Can you help me with my item script? If it is okay? Can i send?

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