Jump to content

Question

Posted

Hi.

How can i add Special Effects in an Item?

Example:

Hokage Hat on the OnEquip Script when Equipped a Special Effect will shown.

and i noticed that some effects are not permanent they are fading

help me on this please...

18 answers to this question

Recommended Posts

Posted

{Script},{OnEquip_Script},{OnUnequip_Script}

{Script}: This is where you put your item bonus. Whether it's an usable item or an equip item, it will take effect according to the item type.
{OnEquip_Script}: This is where the bonus you want to be applied upon equipping goes. It will only execute as soon as you equip the item.
{OnUnequip_Script}: This is where the bonus you want to be applied upon unequipping goes. It will only execute as soon as you unequip the item

Posted

Put it at the end of the "Script" (first) bracket. Tested, and it works.

{ while(isequipped(<your item>)) { specialeffect2 <effect>; sleep2 5000; } },{},{}

Posted

when i put this...

{ while(isequipped(20210)) { specialeffect2 348; sleep2 5000; specialeffect2 513; sleep2 5000; specialeffect2 486; sleep2 5000; specialeffect2 455; sleep2 5000; } },{},{}

it doesnt show all at once...its showing one by one xD

but depends when the effect is permanent.

Posted

your script says,

show effect then wait, then show effect then wait ...

try

specialeffect2 348; specialeffect2 513; specialeffect2 486; specialeffect2 455; sleep2 5000; 

I did not tested it.

Posted (edited)

Its working..

nc thanks...!

Thank you guys.

EDIT:

Oh how about removing the special effects when unequipped?

{},{},{} < this last box right? what will i add to it...

Edited by Mr BrycE
Posted

Client is unable to remove effects manually, you should do jump into current location. It refreshes player's client and the Others will not see effect after teleportation.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...