Jump to content
  • 0

If Count item Script


salmanshaikh14

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  02/10/18
  • Last Seen:  

if player have this >item id  2933 or if player have this >item id  29434 it will give heal..

script below please help me

 

specialeffect(EF_HEAL2, AREA, playerattached()); percentheal 100,100;
   if ( countitem( 29333 ) )
   if ( countitem( 29334 ) ) {

    specialeffect2 (EF_INCAGILITY, AREA, playerattached()); sc_start SC_INCREASEAGI,240000,10;
    specialeffect2 (EF_BLESSING, AREA, playerattached()); sc_start SC_BLESSING,240000,10; 
    specialeffect2 EF_INCAGILITY;
    specialeffect2 EF_BLESSING; }
    set TimeHealed, gettimetick(2);
 

healer.txt

Edited by salmanshaikh14
better understanding
Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  

7 hours ago, salmanshaikh14 said:

if player have this >item id  2933 or if player have this >item id  29434 it will give heal..

script below please help me

 

specialeffect(EF_HEAL2, AREA, playerattached()); percentheal 100,100;
   if ( countitem( 29333 ) )
   if ( countitem( 29334 ) ) {

    specialeffect2 (EF_INCAGILITY, AREA, playerattached()); sc_start SC_INCREASEAGI,240000,10;
    specialeffect2 (EF_BLESSING, AREA, playerattached()); sc_start SC_BLESSING,240000,10; 
    specialeffect2 EF_INCAGILITY;
    specialeffect2 EF_BLESSING; }
    set TimeHealed, gettimetick(2);
 

healer.txt

 

if ( countitem(#) || countitem(#) ) {
  // DO STUFF
}

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  797
  • Reputation:   101
  • Joined:  05/23/12
  • Last Seen:  

specialeffect(EF_HEAL2, AREA, playerattached()); percentheal 100,100;
   if ( countitem( 2933 ) || countitem( 29434) ) {
    specialeffect2 (EF_INCAGILITY, AREA, playerattached()); sc_start SC_INCREASEAGI,240000,10;
    specialeffect2 (EF_BLESSING, AREA, playerattached()); sc_start SC_BLESSING,240000,10; 
    specialeffect2 EF_INCAGILITY;
    specialeffect2 EF_BLESSING; }
    set TimeHealed, gettimetick(2);

 

Rynbef~

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