Code: Select all
include "include/spelldata";
include "include/client";
program summon_air( parms )
var circle := 8;
var caster;
var cast_loc;
var fromhit;
if (parms[1] == "#MOB")
caster := parms[2];
cast_loc := parms[3];
if (parms[4])
circle := parms[4];
endif
if (parms[5])
fromhit := parms[5];
endif
else
caster := parms;
cast_loc := TargetCoordinates( caster );
if (!cast_loc)
return;
if(cast_loc.multi)
SendSysMessage( caster, "You cant summon there");
return;
endif
endif
SummonCreature( caster, "airelemental", cast_loc );
endprogramAnyone have a clue what I can do to cancel the target if they are trying to summon inside the house from the outside?