summaryrefslogtreecommitdiffstats
path: root/TemplePushing.c4s/System.c4g/Invisibility.c
diff options
context:
space:
mode:
Diffstat (limited to 'TemplePushing.c4s/System.c4g/Invisibility.c')
-rw-r--r--TemplePushing.c4s/System.c4g/Invisibility.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/TemplePushing.c4s/System.c4g/Invisibility.c b/TemplePushing.c4s/System.c4g/Invisibility.c
new file mode 100644
index 0000000..28bba9d
--- /dev/null
+++ b/TemplePushing.c4s/System.c4g/Invisibility.c
@@ -0,0 +1,18 @@
+/*-- Shorten Invisibilty --*/
+
+#strict 2
+
+#appendto MINV
+
+public func Activate(object pCaster, object pCaster2)
+{
+ // Zauberer ermitteln
+ if (pCaster2) pCaster = pCaster2;
+ // Magie kann man hoeren, ganz klar ;)
+ Sound("Magic*");
+ // Zauberer unsichtbar machen (20sec)
+ AddEffect("InvisPSpell", pCaster, 200, 700, 0, GetID());
+ // Fertig - das Zauberobjekt wird nun nicht mehr gebraucht
+ RemoveObject();
+ return 1;
+} \ No newline at end of file