All pastes #409096 Raw Edit

Something

public text v1 · immutable
#409096 ·published 2007-03-25 13:06 UTC
rendered paste body
-- This adds the GM command .docast <spellid>
-- 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")