diff options
author | mekolat <mekolat@users.noreply.github.com> | 2016-04-30 16:58:26 -0400 |
---|---|---|
committer | mekolat <mekolat@users.noreply.github.com> | 2016-04-30 16:58:26 -0400 |
commit | 849099e23027d5ddb96c6616a9df835b57725b09 (patch) | |
tree | 62cfdf0217958c1ccb9551bc5d2861c2c0378b4e /world/map/npc/functions | |
parent | f6e1ed7160bd7192657fae2d1fc0edd8cad7eaab (diff) | |
download | serverdata-849099e23027d5ddb96c6616a9df835b57725b09.tar.gz serverdata-849099e23027d5ddb96c6616a9df835b57725b09.tar.bz2 serverdata-849099e23027d5ddb96c6616a9df835b57725b09.tar.xz serverdata-849099e23027d5ddb96c6616a9df835b57725b09.zip |
move hug command to the commands folder
Diffstat (limited to 'world/map/npc/functions')
-rw-r--r-- | world/map/npc/functions/hug.txt | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/world/map/npc/functions/hug.txt b/world/map/npc/functions/hug.txt deleted file mode 100644 index f1bd2637..00000000 --- a/world/map/npc/functions/hug.txt +++ /dev/null @@ -1,23 +0,0 @@ --|script|nonmagic-hug|32767 -{ - explode .@name$[0], @args$, "*"; // strip the trailing * - set @target_id, if_then_else(.@name$[0] != "", getcharid(3, .@name$[0]), BL_ID); - if (@target_id < 1 || !(isloggedin(@target_id))) set @target_id, BL_ID; // fallback to self - if (.@name$[0] == "Tree" || .@name$[0] == "tree") set @target_id, .tree_id; - set .@range, if_then_else(@target_id == .tree_id, 3, 6); - if (distance(BL_ID, @target_id) >= .@range) end; - if (gettimetick(2) - @hugspell_time < 3) end; - - set @hugspell_time, gettimetick(2); - misceffect FX_HUG, strcharinfo(0); - if (@target_id != BL_ID) misceffect FX_HUG, @target_id; - - if (@target_id != .tree_id) end; - callfunc "QuestTreeTouch"; - close; - -OnInit: - set .tree_id, getnpcid("#DruidTree0#_M"); - registercmd "*hugs", strnpcinfo(0); - end; -} |