void main() { object oPC = GetPCSpeaker(); object oForge = OBJECT_SELF; if(GetObjectByTag("px_prototype_wargolem") != OBJECT_INVALID) { if(GetGold(oPC) >= 8000 && (GetLocalInt(OBJECT_SELF, "Loot")!=1)) { TakeGoldFromCreature(8000, oPC, TRUE); AssignCommand(oForge, DelayCommand(0.2,ActionPlayAnimation(ANIMATION_PLACEABLE_DEACTIVATE))); SetLocalInt(GetObjectByTag("px_prototype_wargolem"), "Loot", 1); ApplyEffectToObject(DURATION_TYPE_INSTANT,EffectVisualEffect(VFX_FNF_SOUND_BURST),oForge,10.0); AssignCommand(oForge, DelayCommand(60.0,ActionPlayAnimation(ANIMATION_PLACEABLE_ACTIVATE))); } if(GetLocalInt(OBJECT_SELF, "Loot")==1) { SpeakString("[The flames cannot melt anymore gold.]", TALKVOLUME_TALK); } } else { SpeakString("[The flames are not yet ready consume your gold, perhaps the prototype-golem is not ready yet.]", TALKVOLUME_TALK); } }