-- function Obmen_OnStart(actID) -- --Обмен плодов -- local Obmen_plodov = map.MapCreateColCreature(3424073512, -1, 9516003, 616, 22902, 538, 1) -- map.SetMapScriptData(3424073512,-1,1,11,Obmen_plodov) -- local MsgID = msg.BeginMsgEvent() -- msg.AddMsgEvent(MsgID,102,900242) -- msg.DispatchWorldMsgEvent(MsgID) -- end -- aux.RegisterActEvent(1134, 2, "Obmen_OnStart") -- aux.RegisterActEvent(1135, 2, "Obmen_OnStart") -- function Obmen_OnEnd(actID) -- local Obmen_plodov = map.GetMapScriptData(3424073512,-1,1,11) -- map.MapDeleteCreature(3424073512, -1, Obmen_plodov) -- end -- aux.RegisterActEvent(1134, 3, "Obmen_OnEnd") -- aux.RegisterActEvent(1135, 3, "Obmen_OnEnd")