Jump to content

Photo

Undeclared Kill All Enemies Item error


  • Please log in to reply
1 reply to this topic

#1 LikeLike888

LikeLike888

    Spicy food lover!!

  • Members
  • Real Name:Jason
  • Location:North America

Posted 31 March 2019 - 03:43 PM

Item ID for kill all enemies is #62

 

 

 

Here is my script

import "std.zh"
int One = 1;
int I_X = 0;
int I_Y = 0;
 
 
 
item script TakeAwayMagicShieldPlease
{
  void run()
  {
    while(One==1)
    {
      Link->Item[37] = false;
      Waitrame();
    }
  }
}
 
 
 
item script KillAllEnemiesEggOneYes
{
  void run()
  {
    while(One==1)
    {
      I_X = Link->X;
      I_Y = Link->Y;
      if (Link->PressA)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[156] = false;
      }
      if (Link->PressB)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[156] = false;
      }
      Waitframe();
    }
  }
}
 
 
 
item script KillAllEnemiesEggTwoYes
{
  void run()
  {
    while(One==1)
    {
      I_X = Link->X;
      I_Y = Link->Y;
      if (Link->PressA)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[157] = false;
        Link->Item[156] = true;
      }
      if (Link->PressB)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[157] = false;
        Link->Item[156] = true;
      }
      Waitframe();
    }
  }
}
 
 
 
item script KillAllEnemiesEggThreeYes
{
  void run()
  {
    while(One==1)
    {
      I_X = Link->X;
      I_Y = Link->Y;
      if (Link->PressA)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[158] = false;
        Link->Item[157] = true;
      }
      if (Link->PressB)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[158] = false;
        Link->Item[157] = true;
      }
      Waitframe();
    }
  }
}
 
 
 
item script KillAllEnemiesEggFourYes
{
  void run()
  {
    while(One==1)
    {
      I_X = Link->X;
      I_Y = Link->Y;
      if (Link->PressA)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[159] = false;
        Link->Item[158] = true;
      }
      if (Link->PressB)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[159] = false;
        Link->Item[158] = true;
      }
      Waitframe();
    }
  }
}
 
 
 
item script KillAllEnemiesEggFiveYes
{
  void run()
  {
    while(One==1)
    {
      I_X = Link->X;
      I_Y = Link->Y;
      if (Link->PressA)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[160] = false;
        Link->Item[159] = true;
      }
      if (Link->PressB)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[160] = false;
        Link->Item[159] = true;
      }
      Waitframe();
    }
  }
}
 
 
 
item script KillAllEnemiesEggSixYes
{
  void run()
  {
    while(One==1)
    {
      I_X = Link->X;
      I_Y = Link->Y;
      if (Link->PressA)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[161] = false;
        Link->Item[160] = true;
      }
      if (Link->PressB)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[161] = false;
        Link->Item[160] = true;
      }
      Waitframe();
    }
  }
}
 
 
 
item script KillAllEnemiesEggSevenYes
{
  void run()
  {
    while(One==1)
    {
      I_X = Link->X;
      I_Y = Link->Y;
      if (Link->PressA)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[162] = true;
      }
      if (Link->PressB)
      {
        item KillAllEnemiesItem;
        KillAllEnemiesItem = Screen->CreateItem(IT_KILLALLENEMIES);
        KillAllEnemiesItem->X = I_X;
        KillAllEnemiesItem->Y = I_Y;
        Link->Item[162] = true;
      }
      Waitframe();
    }
  }
}


#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 31 March 2019 - 08:44 PM

Add const int IT_KILLALLENEMIES = 62; to the top.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users