function OnNotificationAdded(iNotificationId, iNotificationType, sDescription, sTitle, iData1, iData2, iPlayer)
-- print(string.format("OnNotificationAdded(%i, %i, %s, %s, %i, %i, %i)", iNotificationId, iNotificationType, (sDescription or ""), (sTitle or ""), (iData1 or 0), (iData2 or 0), iPlayer))
if (iNotificationType == NotificationTypes.NOTIFICATION_EXPLORATION_RACE) then
AddPinForWonder(iData1)
elseif (iNotificationType == NotificationTypes.NOTIFICATION_MET_MINOR) then
AddPinForCityState(sTitle)
elseif (iNotificationType == NotificationTypes.NOTIFICATION_DISCOVERED_STRATEGIC_RESOURCE) then
AddPinsForResource(iData1)
[B][COLOR="Red"] elseif (iNotificationType == NotificationTypes.NOTIFICATION_BARBARIAN) then
AddPinForPlot(Map.GetPlot(iData1, iData2), 6, "TXT_KEY_IMPROVEMENT_ENCAMPMENT")
elseif (iNotificationType == NotificationTypes.NOTIFICATION_GOODY) then
AddPinForPlot(Map.GetPlot(iData1, iData2), 5, "TXT_KEY_IMPROVEMENT_GOODY_HUT")[/COLOR][/B]
end
end
Events.NotificationAdded.Add(OnNotificationAdded)