summaryrefslogtreecommitdiff
path: root/world/map/npc/commands
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-02-12 14:27:08 -0500
committergumi <git@gumi.ca>2018-02-12 16:17:52 -0500
commitb48c2b824db785ae7434245a6e868247fc14ef3e (patch)
treed5843ebb154dc683c1787f245edde54fa19df337 /world/map/npc/commands
parentd7764b641a09916d06063a3621bef8eb8648dc28 (diff)
downloadserverdata-b48c2b824db785ae7434245a6e868247fc14ef3e.tar.gz
serverdata-b48c2b824db785ae7434245a6e868247fc14ef3e.tar.bz2
serverdata-b48c2b824db785ae7434245a6e868247fc14ef3e.tar.xz
serverdata-b48c2b824db785ae7434245a6e868247fc14ef3e.zip
add The Foot of Cupid
Diffstat (limited to 'world/map/npc/commands')
-rw-r--r--world/map/npc/commands/_import.txt1
-rw-r--r--world/map/npc/commands/python.txt22
2 files changed, 23 insertions, 0 deletions
diff --git a/world/map/npc/commands/_import.txt b/world/map/npc/commands/_import.txt
index 48455487..c6e96268 100644
--- a/world/map/npc/commands/_import.txt
+++ b/world/map/npc/commands/_import.txt
@@ -13,3 +13,4 @@ npc: npc/commands/warp.txt
npc: npc/commands/mute.txt
npc: npc/commands/npctalk.txt
npc: npc/commands/music.txt
+npc: npc/commands/python.txt
diff --git a/world/map/npc/commands/python.txt b/world/map/npc/commands/python.txt
new file mode 100644
index 00000000..0846eb1f
--- /dev/null
+++ b/world/map/npc/commands/python.txt
@@ -0,0 +1,22 @@
+-|script|python-foot|32767
+{
+ if (GM < 40 && GM < G_SYSOP) end;
+ set @python[0], if_then_else(@args$ != "", getcharid(3, @args$), BL_ID);
+ if (@python[0] < 1 || !(isloggedin(@python[0]))) set @python[0], BL_ID; // fallback to self
+ if (distance(BL_ID, @python[0]) >= 14) end;
+ if (gettimetick(2) - @python[1] < 3) end;
+
+ set @python[1], gettimetick(2);
+ misceffect 69, @python[0];
+ addtimer 380, strnpcinfo(0) + "::OnKill";
+ end;
+
+OnKill:
+ if (!(isloggedin(@python[0]))) end;
+ set Hp, 0, @python[0];
+ end;
+
+OnInit:
+ registercmd "#python", strnpcinfo(0);
+ end;
+}