is not necessary a script you must edit your agit_controller.txt like this
replace
Announce "The [" + GetCastleName(.@maps$[.@i]) + "] castle has been conquered by the [" + GetGuildName(GetCastleData(.@maps$[.@i],1)) + "] guild.",bc_all;
with this
Announce "The [" + GetCastleName(.@maps$[.@i]) + "] castle has been conquered by the player [" + strcharinfo(0) +"] with the [" + GetGuildName(GetCastleData(.@maps$[.@i],1)) + "] guild.",bc_all|bc_woe;