Need help for Gameobject Sript C++ (CheckPoint Object)

Can anyone share similar or exact script.
I want to make a gameobject type trap that will activate effect and some other c++ scropt (still not sure what exactly but probably summon of minions or smth) when a player touch it.
For example this sql is exact replica of Speed Buff,it works normal when it is spawned with .gob add (once you move through it you receive speed buff)

INSERT INTO gameobject_template (entry, type, displayId, name, IconName, castBarCaption, unk1, size, Data0, Data1, Data2, Data3, Data4, Data5, Data6, Data7, Data8, Data9, Data10, Data11, Data12, Data13, Data14, Data15, Data16, Data17, Data18, Data19, Data20, Data21, Data22, Data23, AIName, ScriptName, VerifiedBuild) VALUES(250000, 6, 8244, ‘Check Point’, ‘’, ‘’, ‘’, 3, 0, 0, 0, 23978, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ‘’, ‘’, 12340);

But when it is spawned by npc after selecting a gossip menu for the spawn,the player doesn't receive the buff.

GameObject* CheckPoint1 = creature->SummonGameObject(250000, RaceWaySpawnPosition[0], QuaternionData(), 300);

Also used

CheckPoint1 ->AddToWorld();

and still nothing

Any information might be useful,will be really glad if anyone share even existing in the core similar code ( I am interested in GameObject AI that can do the job).
Regards