LordJasz 2 Posted July 6, 2018 Can someone help me with a script for a item? What I want is: Script Basic for the Items When a player suffer damage and reach 'X'% HP he's healed by 'Y'% HP. And... If possible a buff trigger for the same item but 3 versions (3 different items but with the same above script + script below). Like: Item 1: Heal 'Y'% HP + Cast : Kyrie Eleison [Lv. 10]Item 2: Heal 'Y'% HP + Cast : Safety Wall [Lv. 10] (no need gems)Item 3: Heal 'Y'% HP + Cast : Blessing [Lv.10] + AgiUp [Lv. 10]Trigger CoolDown: 5 Minutes Is it possible? Quote Share this post Link to post Share on other sites
0 rans 7 Posted July 6, 2018 you can put like if(Hp < threshold) { do this}https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt Quote Share this post Link to post Share on other sites
0 LordJasz 2 Posted July 6, 2018 7 hours ago, rans said: you can put like if(Hp < threshold) { do this} how can make HP% instead HP and how can I create a delay for the trigger? didn't find anything on script_commands.txt thx Quote Share this post Link to post Share on other sites
0 rans 7 Posted July 6, 2018 (edited) Hi, everything you need is in the Doc folder of herc. how can you make to base on %? its in the DOC. (MaxHp) this example is using 5% set t, MaxHp * 0.05; while(Hp < t){ do this sleep for cooldown or you can use gettimetick just read the docs. } Edited July 6, 2018 by rans Quote Share this post Link to post Share on other sites
Can someone help me with a script for a item?
What I want is:
Script Basic for the Items
When a player suffer damage and reach 'X'% HP he's healed by 'Y'% HP.
And...
If possible a buff trigger for the same item but 3 versions (3 different items but with the same above script + script below).
Like:
Item 1: Heal 'Y'% HP + Cast : Kyrie Eleison [Lv. 10]
Item 2: Heal 'Y'% HP + Cast : Safety Wall [Lv. 10] (no need gems)
Item 3: Heal 'Y'% HP + Cast : Blessing [Lv.10] + AgiUp [Lv. 10]
Trigger CoolDown: 5 Minutes
Is it possible?
Share this post
Link to post
Share on other sites