Initial commit

Adding all of the current content for Anphillia Unlimited.
This commit is contained in:
Jaysyn904
2024-01-04 07:49:38 -05:00
parent df18cd54c8
commit 28cdb617b3
12943 changed files with 9727121 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
void SpawnMineral(object oSpawner, object oAttackthis, string sCreateTemplate)
{
int nIteration = GetLocalInt(oSpawner, "mine");
SetLocalInt(oSpawner, "mine", nIteration + 1);
AssignCommand(oSpawner, ActionAttack(oAttackthis));
CreateObject(OBJECT_TYPE_ITEM, sCreateTemplate, GetLocation(oSpawner));
if (nIteration <= 4)
{
DelayCommand(5.0, SpawnMineral(oSpawner, oAttackthis, sCreateTemplate));
}
}
void main()
{
SetLocalInt(OBJECT_SELF, "mine", 1);
string sTargetTag = GetStringRight(GetTag(OBJECT_SELF), 4);
// Repair Tin, only 3 letters
if (sTargetTag == "_Tin")
sTargetTag = "Tin";
object oMinableRock = GetNearestObjectByTag("cnrRock" + sTargetTag);
string sCreateString = "cnrnugget" + GetStringLowerCase(sTargetTag);
AssignCommand(OBJECT_SELF, ActionMoveToObject(oMinableRock, TRUE));
DelayCommand(5.0, SpawnMineral(OBJECT_SELF, oMinableRock, sCreateString));
}