Jump to content
  • 0

How to remove special effect on unequip?


GreenMagic793

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

Let's say I add special effect 200 (a blue glowing ring) to an item like Note Headphones. When I equip the headphones, it displays special effect 200, but when I take the headphones off, the effect stays. Is there a way to remove the effect when the item is unequipped? Thanks for all your help as always!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   2
  • Joined:  01/16/13
  • Last Seen:  

If you are editing item_db this is easy {  },{  },{ sc_end SC_EFFECT; }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

Unfortunately this doesn't work. Here's my code.

5151,Headset_OST,Note Headphones,5,20,,200,,4,,1,0xFFFFFFFF,7,2,768,,0,1,220,{ specialeffect2 200; bonus bMdef,3; bonus2 bResEff,Eff_Stun,1000; bonus2 bResEff,Eff_Freeze,1000; },{},{ sc_end sc_All; }

Technically this should apply effect 200 on equip and then remove all statuses and effects on unequip, but it doesn't. Special effect 200 stays on you until you log out or change maps.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

The effect is client side not server side, if you equipt the item on player A and then player B warps to player A then player B will not see the effect.

To counter this is advise using short time span effects that don't prrsist.

If you really want to have the effect disappear you can use at command refresh, but it won't effect what other players see just the player with the equipment

Another option is to use attachrid of players on map and refresh them all, but again this has its own negative effects.

Unfortunately this doesn't work. Here's my code.

5151,Headset_OST,Note Headphones,5,20,,200,,4,,1,0xFFFFFFFF,7,2,768,,0,1,220,{ specialeffect2 200; bonus bMdef,3; bonus2 bResEff,Eff_Stun,1000; bonus2 bResEff,Eff_Freeze,1000; },{},{ sc_end sc_All; }
Technically this should apply effect 200 on equip and then remove all statuses and effects on unequip, but it doesn't. Special effect 200 stays on you until you log out or change maps.
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

So basically there's no real way to do it eh? Oh well, it would've been cool, but I guess it's not worth the trouble.

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