diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-03-01 15:24:42 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-03-01 15:24:42 -0300 |
commit | 94fa343212d99cd6614270e37695ac6837eea605 (patch) | |
tree | 7cd57d31993b4a86a630eecf200710794c54073a /npc/functions/hub.txt | |
parent | 57722cd7e7398a3d180f7185c35a420986fa6f10 (diff) | |
download | serverdata-94fa343212d99cd6614270e37695ac6837eea605.tar.gz serverdata-94fa343212d99cd6614270e37695ac6837eea605.tar.bz2 serverdata-94fa343212d99cd6614270e37695ac6837eea605.tar.xz serverdata-94fa343212d99cd6614270e37695ac6837eea605.zip |
Replace Tanker Homunculus Healing Skill. It is now capable to self-heal!
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r-- | npc/functions/hub.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 6f8378660..3d8ab20fb 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -235,10 +235,26 @@ function script HUB_SkillInvoke { // Something is... wrong if (!@skillId) { Exception("ILLEGAL SKILL PASSED TO HUB. It has been compromised, Jim.", RB_DEBUGMES|RB_IRCBROADCAST); - debugmes "Caster: %s", strcharinfo(0); + debugmes "Legal Caster: %s", strcharinfo(0); + debugmes "Effective Caster: %d", @skillCaster; return; } + // Homunculus Cycle + /* *********************************************************************** */ + //debugmes "Skill caster %d", @skillCaster; + if (@skillCaster != getcharid(3)) { + switch (@skillId) { + case TMW2_HOMUN_HEAL: + .@heal=gethominfo(6)*rand2(7, 10); + heal .@heal, 0; + harm(@skillCaster, -.@heal, HARM_MISC); + break; + } + return; + } + /* *********************************************************************** */ + // TODO: Detect what was script-cast and what was player-case. Then, readd RB_IRCBROADCAST // If you can't do this: You can't do this if (getskilllv(@skillId) < @skillLv && @skillId != BS_GREED) @@ -251,6 +267,7 @@ function script HUB_SkillInvoke { skillInvoke[@skillId] = skillInvoke[@skillId] + 1; // Script-based skills + /* *********************************************************************** */ switch (@skillId) { case TMW2_FAKESKILL: atcommand("@refresh"); |