Phantom2005, sorry

, You ai has no code in which summon on a regular basis consumes crystals.
Add "handler 12 // TIMER_FIRED_EX" part from "class siege_golem"
Change amount consumes crystals.
Make copy for all class on each level your summon, because each level consumes different amount of crystals. Or.. make a universal class with "parameter_define" for installation of various quantity through npcdata.