Jump to content
  • 0

Resting system


Hirasu

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   6
  • Joined:  12/23/11
  • Last Seen:  

Hi,

i have a request , how to make an npc that recvor HP3% Every second but you can not cancel it until the HP is full

To aktiv this system need to use ITEM ID, If monster attack the resting player the effect cancels.

can someone make me an example?

Thanks :D

Edited by Hirasu
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

.... { unitskilluseid getcharid(3), "LK_TENSIONRELAX", 1; },{},{}

cannot cancel it until hp is full ... eh ...? sounds like source modification for a new skill ...

EDIT for below

ok Ryokem is correct, tested working

Edited by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  205
  • Reputation:   19
  • Joined:  10/12/12
  • Last Seen:  

{ callfunc "Healings"; },{},{}

function<tab>script<tab>Healings<tab>{

set @hp, Hp;

while( Hp < MaxHp && Hp >= @hp ) {
percentheal 3, 0;
specialeffect2 7;
set @hp, Hp;
sleep2 1000;
}
return;
}

EDIT:

ok Ryokem is correct, tested working

Thanks Annie for testing it out ^^

Edited by Ryokem
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  61
  • Reputation:   6
  • Joined:  12/23/11
  • Last Seen:  

Thanks!

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