JassMax Posted July 2, 2013 Posted July 2, 2013 Hi,I want to know script for item effects which would effect on character after wearing an item ..like effect 417effect should be repeating every 3 or 5 sec Thanks in advance Quote
Emistry Posted July 2, 2013 Posted July 2, 2013 itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ } 1 Quote
Emistry Posted July 2, 2013 Posted July 2, 2013 itemID................{ },{ while( isequipped( <itemid> ){ specialeffect2 417; sleep2 3000; } },{ } Quote
JassMax Posted July 2, 2013 Author Posted July 2, 2013 itemID................{ },{ while( isequipped( <itemid> ){ specialeffect2 417; sleep2 3000; } },{ } Getting en error 31019,D_Crown,D_Crown,5,10000,,10,,10,,1,0xFFFFFFFF,7,2,256,,0,0,1919,{ },{ while( isequipped(31019){ specialeffect2 417; sleep2 3000; } },{ } Quote
JassMax Posted July 2, 2013 Author Posted July 2, 2013 itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ } that's it... working now it was missing " )" Thanks a lot Quote
Archetype Saber Posted July 2, 2013 Posted July 2, 2013 itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ } Uhmm Emistry, what is the use of "sleep2" ? Quote
LatSo Posted July 2, 2013 Posted July 2, 2013 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 Quote
Emistry Posted July 3, 2013 Posted July 3, 2013 itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ } Uhmm Emistry, what is the use of "sleep2" ? 1 Quote
Mystery Posted July 3, 2013 Posted July 3, 2013 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. Quote
Archetype Saber Posted July 3, 2013 Posted July 3, 2013 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 ? Quote
Emistry Posted July 3, 2013 Posted July 3, 2013 @suyothegreat read sleep and sleep2 basically...sleep2 need to attach to a players .... while sleep doesnt.. Quote
raijin91 Posted February 21, 2014 Posted February 21, 2014 how to make this work only if the item was refined to +10 and above? Quote
Question
JassMax
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.