Jump to content
  • 0

Item Script


Ninjamon

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

Why is it that my script on this item doesn't work?

20515,FCP_Jewel,FCP Jewel,2,2,,10,,,,,0x00800000,7,2,,,,,,{ sc_start4 CR_FULLPROTECTION,350000,5,461,0,0; },{},{}

 

I Can't click the item and it doesn't buff me FCP Skill Level 5.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

sc_start works with { <effect type> }, you can find them in db/const.txt

 

I can't find for full protection skill (maybe it doesn't exist)

20515,FCP_Jewel,FCP Jewel,2,2,,10,,,,,0x00800000,7,2,,,,,,{ skilleffect "AM_CP_WEAPON",0; sc_start SC_CP_WEAPON,350000,5; sc_start SC_CP_SHIELD,350000,5; sc_start SC_CP_ARMOR,350000,5; sc_start SC_CP_HELM,350000,5; },{},{}
Edited by Capuche
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Skill #479, "CR_FULLPROTECTION" :)

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Skill #479, "CR_FULLPROTECTION" :)

For sc_start, I can't find it

sc_start need { <effect type> } type SC_ in const.txt, not the skill ID

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

for (i=0 ; i<4; i++) {sc_start (SC_CP_WEAPON+i),350000,5;}

/?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

It also works

I would make .@i instead of i to avoid permanent char variable

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Ahh right, I always forgot about those var types  /meh

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   2
  • Joined:  03/06/12
  • Last Seen:  

None of these worked. :(



up

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

The problem is for job type

,Slots,Job,Upper

20515,FCP_Jewel,FCP Jewel,2,2,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ skilleffect "AM_CP_WEAPON",0; sc_start SC_CP_WEAPON,350000,5; sc_start SC_CP_SHIELD,350000,5; sc_start SC_CP_ARMOR,350000,5; sc_start SC_CP_HELM,350000,5; },{},{}

0xFFFFFFFF : all job can use the item

0x00800000 : restricted to Class Monk

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