Jump to content
  • 0

item specialeffect / effect


Question

Posted

Hi,

I want to know script for item effects which would effect on character after wearing an item ..like effect 417

effect should be repeating every 3 or 5 sec

 

Thanks in advance 

11 answers to this question

Recommended Posts

Posted
itemID................{ },{ while( isequipped( <itemid> ){ specialeffect2 417; sleep2 3000; } },{ }

 

Getting en error

1d6w9m

 

31019,D_Crown,D_Crown,5,10000,,10,,10,,1,0xFFFFFFFF,7,2,256,,0,0,1919,{ },{ while( isequipped(31019){ specialeffect2 417; sleep2 3000; } },{ }
Posted
itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ }

that's it... working now it was missing " )" 

Thanks a lot

Posted

 

itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ }

Uhmm Emistry, what is the use of "sleep2" ?

 

It means something like this

message strcharinfo(0),"1";
sleep2 3000;
message strcharinfo(0),"3";

 

meaning before the message 3 will pop out, it will wait for 3 seconds because of the sleep2. In this case, it will wait for 3 seconds to do the specialeffect 417

Posted

 

itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ }

Uhmm Emistry, what is the use of "sleep2" ?

 

SJYiR03.jpg

  • Upvote 1
Posted

Basically, 3000 refers to 3 seconds as to what the topic owner wanted (3 or 5 seconds). If he wishes, he can change 3000 into 5000 for 5 seconds. You're adding the "Sleep" so that the effect can reoccur instead of you re-equipping the equipment.

Posted

Basically, 3000 refers to 3 seconds as to what the topic owner wanted (3 or 5 seconds). If he wishes, he can change 3000 into 5000 for 5 seconds. You're adding the "Sleep" so that the effect can reoccur instead of you re-equipping the equipment.

how about the number 2 in the Sleep ?

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