Jump to content
  • 0

Buffer NPC with Delay


Jhosef

Question


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

i request a buffer npc with 10 sec delay...

Edited by Jhosef
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

prontera,100,100,4 script DelayBuff 100,{
if ( Delay_Heal > gettimetick(2) ) goto deley;
percentheal 100,100;
skilleffect 34,0; sc_start SC_BLESSING,1800000,10;
skilleffect 29,0; sc_start SC_INCREASEAGI,1800000,10;
percentheal 100,100;
set Delay_Heal,gettimetick(2)+10;
end;

deley:
dispbottom "Wait 10 mins";
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  299
  • Reputation:   5
  • Joined:  04/05/12
  • Last Seen:  

10 sec not 10min

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  117
  • Reputation:   8
  • Joined:  05/07/12
  • Last Seen:  

change the dispottom into this if you wanna see how much seconds left:

dispbottom "Sorry you have to wait for " + ((Delay_Heal - gettimetick(2)) % 10) + " seconds";

it was already set to 10 seconds.. just the message was wrong.

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:  

ur calculation.....wrong ?

 ((Delay_Heal - gettimetick(2)) % 10) 

this will lead to a wrong message if the users have set to a delay that is higher than 10..

because the value will shown are only in the range of 0 ~ 9

use this...it is more than enough ~ xD

( Delay_Heal - gettimetick(2) ) 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  37
  • Topics Per Day:  0.01
  • Content Count:  131
  • Reputation:   8
  • Joined:  02/08/12
  • Last Seen:  

ahh, sorry i don't use english in my npc , i forgot a little bit

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