Hirasu Posted November 6, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 61 Reputation: 6 Joined: 12/23/11 Last Seen: November 17, 2021 Share 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 Link to comment Share on other sites More sharing options...
AnnieRuru Posted November 6, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share 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 Link to comment Share on other sites More sharing options...
Ryokem Posted November 6, 2012 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 205 Reputation: 19 Joined: 10/12/12 Last Seen: November 7, 2013 Share 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 Link to comment Share on other sites More sharing options...
Hirasu Posted November 20, 2012 Group: Members Topic Count: 15 Topics Per Day: 0.00 Content Count: 61 Reputation: 6 Joined: 12/23/11 Last Seen: November 17, 2021 Author Share Posted November 20, 2012 Thanks! Quote Link to comment Share on other sites More sharing options...
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 HirasuLink to comment
Share on other sites
3 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.