Jump to content
  • 0

Resting system


Question

Posted (edited)

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

3 answers to this question

Recommended Posts

Posted (edited)

.... { 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
Posted (edited)

{ 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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...