All pastes #409090 Raw Edit

Anonymous

public text v1 · immutable
#409090 ·published 2007-03-25 13:00 UTC
rendered paste body
-- This adds the GM command .docast <spellid>
-- Only works on NPC's

function monstersay(player,spellid)
   if (player:GetSecurity() > 0) then
      player:getSelectedCreature():LuaAI:DoCast(spellid);
   end
   return true
end

register_lua_script_command(".docast","docast")