Jump to content
  • 0

item specialeffect / effect


JassMax

Question


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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

  • Upvote 1
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:  


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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

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; } },{ }
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  65
  • Topics Per Day:  0.02
  • Content Count:  235
  • Reputation:   0
  • Joined:  05/03/13
  • Last Seen:  

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

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

Thanks a lot

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  90
  • Topics Per Day:  0.02
  • Content Count:  361
  • Reputation:   18
  • Joined:  01/09/13
  • Last Seen:  

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

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  296
  • Reputation:   2
  • Joined:  04/11/13
  • Last Seen:  

 

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

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:  

 

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

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

 

SJYiR03.jpg

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  90
  • Topics Per Day:  0.02
  • Content Count:  361
  • Reputation:   18
  • Joined:  01/09/13
  • Last Seen:  

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 ?

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:  

@suyothegreat

read sleep and sleep2

basically...sleep2 need to attach to a players .... while sleep doesnt..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  07/06/12
  • Last Seen:  

how to make this work only if the item was refined to +10 and above?

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