JassMax Posted July 2, 2013 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 2, 2013 Share Posted July 2, 2013 itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ } 1 Quote Link to comment Share on other sites More sharing options...
Emistry Posted July 2, 2013 Share Posted July 2, 2013 itemID................{ },{ while( isequipped( <itemid> ){ specialeffect2 417; sleep2 3000; } },{ } Quote Link to comment Share on other sites More sharing options...
JassMax Posted July 2, 2013 Author Share 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 Link to comment Share on other sites More sharing options...
JassMax Posted July 2, 2013 Author Share Posted July 2, 2013 itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ } that's it... working now it was missing " )" Thanks a lot Quote Link to comment Share on other sites More sharing options...
Archetype Saber Posted July 2, 2013 Share Posted July 2, 2013 itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ } Uhmm Emistry, what is the use of "sleep2" ? Quote Link to comment Share on other sites More sharing options...
LatSo Posted July 2, 2013 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 3, 2013 Share Posted July 3, 2013 itemID................{ },{ while( isequipped( <itemid> ) ){ specialeffect2 417; sleep2 3000; } },{ } Uhmm Emistry, what is the use of "sleep2" ? 1 Quote Link to comment Share on other sites More sharing options...
Mystery Posted July 3, 2013 Share 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 Link to comment Share on other sites More sharing options...
Archetype Saber Posted July 3, 2013 Share 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 Link to comment Share on other sites More sharing options...
Emistry Posted July 3, 2013 Share Posted July 3, 2013 @suyothegreat read sleep and sleep2 basically...sleep2 need to attach to a players .... while sleep doesnt.. Quote Link to comment Share on other sites More sharing options...
raijin91 Posted February 21, 2014 Share Posted February 21, 2014 how to make this work only if the item was refined to +10 and above? Quote Link to comment Share on other sites More sharing options...
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
Link to comment
Share on other sites