JassMax Posted July 2, 2013 Group: Members Topic Count: 65 Topics Per Day: 0.01 Content Count: 235 Reputation: 0 Joined: 05/03/13 Last Seen: December 18, 2018 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 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 13 hours ago 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 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 13 hours ago 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 Group: Members Topic Count: 65 Topics Per Day: 0.01 Content Count: 235 Reputation: 0 Joined: 05/03/13 Last Seen: December 18, 2018 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 Group: Members Topic Count: 65 Topics Per Day: 0.01 Content Count: 235 Reputation: 0 Joined: 05/03/13 Last Seen: December 18, 2018 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 Group: Members Topic Count: 90 Topics Per Day: 0.02 Content Count: 361 Reputation: 19 Joined: 01/09/13 Last Seen: January 19 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 Group: Members Topic Count: 69 Topics Per Day: 0.02 Content Count: 296 Reputation: 2 Joined: 04/11/13 Last Seen: December 22, 2020 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 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 13 hours ago 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 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 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 Group: Members Topic Count: 90 Topics Per Day: 0.02 Content Count: 361 Reputation: 19 Joined: 01/09/13 Last Seen: January 19 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 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10017 Reputation: 2369 Joined: 10/28/11 Last Seen: 13 hours ago 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 Group: Members Topic Count: 2 Topics Per Day: 0.00 Content Count: 23 Reputation: 1 Joined: 07/06/12 Last Seen: April 6, 2017 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...
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
Link to comment
Share on other sites
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.