Beispiel #1
0
 void Honey(object sender, IceWandEventArgs e)
 {
     Main.tile[e.X, e.Y].liquidType(2);
     Main.tile[e.X, e.Y].liquid = 255;
     WorldGen.SquareTileFrame(e.X, e.Y);
     TSPlayer.All.SendTileSquare(e.X, e.Y, 1);
 }
Beispiel #2
0
 void Bomb(object sender, IceWandEventArgs e)
 {
     int ID = Projectile.NewProjectile(e.X * 16 + 8, e.Y * 16 + 8, 0, 0, 28, 250, 10);
     Main.projectile[ID].timeLeft = 1;
     TSPlayer.All.SendData(PacketTypes.ProjectileNew, "", ID);
 }
Beispiel #3
0
 void Explode(object sender, IceWandEventArgs e)
 {
     int ID = Projectile.NewProjectile(e.X * 16 + 8, e.Y * 16 + 8, 0, 0, 108, 250, 10);
     TSPlayer.All.SendData(PacketTypes.ProjectileNew, "", ID);
 }
Beispiel #4
0
 void Wall(object sender, IceWandEventArgs e)
 {
     if (e.Data > 0 && e.Data < Main.maxWallTypes)
     {
         WorldGen.PlaceWall(e.X, e.Y, e.Data, true);
         TSPlayer.All.SendTileSquare(e.X, e.Y, 1);
     }
 }
Beispiel #5
0
 void Tile(object sender, IceWandEventArgs e)
 {
     if (e.Data >= 0 && e.Data < Main.maxTileSets)
     {
         WorldGen.PlaceTile(e.X, e.Y, e.Data, true, true);
         TSPlayer.All.SendTileSquare(e.X, e.Y, 4);
     }
 }
Beispiel #6
0
 void SpawnMob(object sender, IceWandEventArgs e)
 {
     int ID = NPC.NewNPC(e.X * 16, e.Y * 16, e.Data);
     TSPlayer.All.SendData(PacketTypes.NpcUpdate, "", ID);
 }
Beispiel #7
0
 void Position(object sender, IceWandEventArgs e)
 {
     e.Player.SendInfoMessage("Position: {0}, {1}", e.X, e.Y);
 }
Beispiel #8
0
 void Item(object sender, IceWandEventArgs e)
 {
     int ID = Terraria.Item.NewItem(e.X * 16, e.Y * 16, 0, 0, e.Data, 1);
 }