Hirasu Posted November 6, 2012 Posted November 6, 2012 (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 Edited November 6, 2012 by Hirasu Quote
AnnieRuru Posted November 6, 2012 Posted November 6, 2012 (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 November 6, 2012 by AnnieRuru Quote
Ryokem Posted November 6, 2012 Posted November 6, 2012 (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 November 6, 2012 by Ryokem 1 Quote
Question
Hirasu
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
Edited by Hirasu3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.