-- This adds the GM command .docast -- Only works on NPC's function monstercast(player,spellid) if (player:GetSecurity() > 0) then player:getSelectedCreature():LuaAI:DoCast(spellid); end return true end register_lua_script_command(".docast","docast")