Mine
public text v1 · immutable-- This adds the GM command .docast <spellid>
-- Only works on NPC's
function docast(LuaAI,player,args,type)
if (player:GetSecurity() >0)then
LuaAI:GetSelectedCreature():Docast(args)
end
return true
end
register_lua_script_command(".docast","docast")