diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-25 11:59:43 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-25 11:59:43 -0300 |
commit | 90f8941def4b977e65bd0f441aab526333736a11 (patch) | |
tree | ec3736e49358e34f6938293d6616e80c8735702c /npc/magic | |
parent | 71fdf4363252da10392a944f588a26222bd4e5e4 (diff) | |
download | serverdata-90f8941def4b977e65bd0f441aab526333736a11.tar.gz serverdata-90f8941def4b977e65bd0f441aab526333736a11.tar.bz2 serverdata-90f8941def4b977e65bd0f441aab526333736a11.tar.xz serverdata-90f8941def4b977e65bd0f441aab526333736a11.zip |
Add required skill: Resurrection. Continue the code for the showdown.
Diffstat (limited to 'npc/magic')
-rw-r--r-- | npc/magic/revive.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/npc/magic/revive.txt b/npc/magic/revive.txt index daef77d56..96620c7e4 100644 --- a/npc/magic/revive.txt +++ b/npc/magic/revive.txt @@ -7,6 +7,22 @@ // Skill to revive players // TODO: Reimburse EXP? +// revive target (level, target) +function script SK_resurrect { + .@lv=getarg(0); + .@tg=getarg(1); + .@me=getcharid(3); + attachrid(.@tg); + if (ispcdead()) { + recovery(.@tg); + percentheal 100, 0; + percentheal -(100 - 10 * .@lv), 0; + } + detachrid(); + attachrid(.@me); + return; +} + // revives getarg(0) function script SK_revive { .@target=getarg(0); |