Jump to content
  • 0

Adding a custom effect when equip


eboni001

Question


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Hello guys i was trying to add a custom card, with a effect similar to eddga card, but with another skill, i was trying to make a creator card that make you have a permanent FCP when the armor with this card is equiped and removed when armor is unequiped but i dont get it, can somebody please help me with this? this is my code.

 

8145,creator_flamel_card,Creator Card,6,20,,10,,,,,,,,16,,,,,{ bonus bNoKnockback,0; },{ sc_start4 CR_FULLPROTECTION,60000,5,0,0,1; },{ sc_end CR_FULLPROTECTION; }

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

yea sorry lol. I didn't notice it right away.... I was seeing CR_FullProtect and it clicked as correct, but Emistry is right, it should be those listed SC effects...

8145,creator_flamel_card,Creator Card,6,20,,10,,,,,,,,16,,,,,{ bonus bNoKnockback,0; },{ sc_start4 SC_CP_WEAPON,60000,5,0,0,1; sc_start4 SC_CP_SHIELD,60000,5,0,0,1; sc_start4 SC_CP_ARMOR,60000,5,0,0,1; sc_start4 SC_CP_HELM,60000,5,0,0,1; },{ sc_end SC_CP_WEAPON; sc_end SC_CP_SHIELD; sc_end SC_CP_ARMOR; sc_end SC_CP_HELM; }

So yea, the above should do what you wanted...

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

Does it not work? Because it looks like it should.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

Does it not work? Because it looks like it should.

is not working, sometimes when i equipped nothing happen but sometimes it give me stone cursed.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

it should be

db/const.txt

SC_CP_WEAPON	72
SC_CP_SHIELD	73
SC_CP_ARMOR	74
SC_CP_HELM	75 

 

 

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

yea sorry lol. I didn't notice it right away.... I was seeing CR_FullProtect and it clicked as correct, but Emistry is right, it should be those listed SC effects...

8145,creator_flamel_card,Creator Card,6,20,,10,,,,,,,,16,,,,,{ bonus bNoKnockback,0; },{ sc_start4 SC_CP_WEAPON,60000,5,0,0,1; sc_start4 SC_CP_SHIELD,60000,5,0,0,1; sc_start4 SC_CP_ARMOR,60000,5,0,0,1; sc_start4 SC_CP_HELM,60000,5,0,0,1; },{ sc_end SC_CP_WEAPON; sc_end SC_CP_SHIELD; sc_end SC_CP_ARMOR; sc_end SC_CP_HELM; }

So yea, the above should do what you wanted...

OK, with this now i get the effect when equipped and effect got removed if unequipped but it only keep for 1 minute after that effect gone and i have to remove my armor and equip again, there is any way to make this like eddga card? the only way skill will be removed is if you unequip the card.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@eboni

just edit the sc_status duration ....

1000 = 1 second..

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  79
  • Topics Per Day:  0.02
  • Content Count:  327
  • Reputation:   4
  • Joined:  06/22/13
  • Last Seen:  

ok thank you, i set it to 1 week xD

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