Find
You are looking at a lightning spell
A unique enchantement.
Created by
thorn
, last updated 03 Nov 2008
Code
##tickloc:runsub ticked;
##ticked:
var $fromhit to $actor's slot1;
var $tohit to $actor's slot2;
var $weapon to $actor's slot3;
say 'msg',"[$actor] is cast by [$weapon] towards [$tohit]!";
var $hlth to $tohit's health;
take 5 from $hlth;
if $hlth < 0 then zeroit;
set $tohit's health to $hlth;
$t = $target;
$target = $tohit;
say 'shock',"[$tohit] is zapped by a powerful bolt of lightning from [$actor]!";
$target = $t;
set $actor's loc to $weapon;
unhost $actor;
relook $loc;
switch $actor off;
##zeroit:
$hlth = 0;