summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-03-31 22:12:10 -0300
committerJesusaves <cpntb1@ymail.com>2020-03-31 22:12:10 -0300
commit05dc97d22205f265280d95607d24031b6f571157 (patch)
tree706846a74a2f9e69db0f34a778ca770f0cca190b
parent109004684e6280bfd8cdd0e7e88dafdcb8038174 (diff)
downloadclassic-serverdata-05dc97d22205f265280d95607d24031b6f571157.tar.gz
classic-serverdata-05dc97d22205f265280d95607d24031b6f571157.tar.bz2
classic-serverdata-05dc97d22205f265280d95607d24031b6f571157.tar.xz
classic-serverdata-05dc97d22205f265280d95607d24031b6f571157.zip
April 1st Fools Day 2020
Spread the love, not Viruses
-rw-r--r--world/map/npc/commands/python.txt25
1 files changed, 24 insertions, 1 deletions
diff --git a/world/map/npc/commands/python.txt b/world/map/npc/commands/python.txt
index 8924338c..cbea85be 100644
--- a/world/map/npc/commands/python.txt
+++ b/world/map/npc/commands/python.txt
@@ -1,6 +1,6 @@
-|script|python-foot|32767
{
- if (GM < 40 && GM < G_SYSOP) end;
+ if (GM < 40 && GM < G_SYSOP) goto L_Prank;
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;
@@ -17,6 +17,29 @@ OnKill:
set Hp, 0, @python[0];
end;
+L_Prank:
+ if (gettime(6) == 4 && gettime(5) == 1)
+ goto L_DoPrank;
+ end;
+
+L_DoPrank:
+ if (#APRILPRANK == gettime(7))
+ message strcharinfo(0), "You already stomped someone today.";
+ if (#APRILPRANK == gettime(7))
+ 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;
+
+ // Execute the prank
+ set #APRILPRANK, gettime(7);
+ set @python[1], gettimetick(2);
+ misceffect 69, @python[0];
+ addtimer 380, strnpcinfo(0) + "::OnKill";
+ end;
+
OnInit:
registercmd "#python", strnpcinfo(0);
end;