Jump to content
  • 0

Special Effects


Mr BrycE

Question


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

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

Link to comment
Share on other sites

18 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

You could try this item script (not sure if it would work, though):

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

where should i put it? on my Item ? {},{},{}?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

{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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

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

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

ok hmm what does sleep2? is it a duration for 5 secs?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

It pauses the script for 5 seconds.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

bump

how to remove special effects when unequipping...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   1
  • Joined:  11/21/11
  • Last Seen:  

bump..i need to when uneequip

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:  

just unequip and refresh ur character

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  125
  • Topics Per Day:  0.03
  • Content Count:  595
  • Reputation:   23
  • Joined:  02/23/12
  • Last Seen:  

and its still showing when Hiding/Chasewalk/cloak...LOL xD

refreshing like warping back? @go 0?

is there any script that removing the special effects on its unequip?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  2
  • Reputation:   0
  • Joined:  08/28/12
  • Last Seen:  

yes.. somethin like that

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  7
  • Reputation:   0
  • Joined:  04/05/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   1
  • Joined:  07/19/12
  • Last Seen:  

why does my server says infinite loop?

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:  

http://rathena.org/w...finity_loop_.21

you have to show what script you use / edited.....

otherwise...we cant really provide much help here...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.00
  • Content Count:  132
  • Reputation:   1
  • Joined:  07/19/12
  • Last Seen:  

thanks to this.. i've solved it anyway :)

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