Jump to content
  • 0
salmanshaikh14

If Count item Script

Question

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

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.