Announcement

Collapse
No announcement yet.

Attackable Walls Crashing Server?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Attackable Walls Crashing Server?

    Recently my team and I have been running about adding in walls and decorations... looking into and tinkering around I found that all of the walls placed are "DamageableItem"?
    I Targeted it and attacked it and the server instantly restarted...
    is there anyway to disable targeting of certain objects?
    ive tried modifying the Shadowwall1.cs
    Code:
    using System;
    
    namespace Server.Items
    {
    public class SAShadowWall1South : DamageableItem //I changed this to "public class SAShadowWall1South : Item" and it broke....
    {
    [Constructable]
    public SAShadowWall1South()
    : base(13883, 631)
    {
    this.Name = "Shadow Wall";
    
    this.Level = ItemLevel.VeryEasy;
    this.Movable = false;
    }
    
    public SAShadowWall1South(Serial serial)
    : base(serial)
    {
    }
    
    public override void Serialize(GenericWriter writer)
    {
    base.Serialize(writer);
    
    writer.Write((int)0); //version
    }
    
    public override void Deserialize(GenericReader reader)
    {
    base.Deserialize(reader);
    
    int version = reader.ReadInt();
    }
    }
    
    public class SAShadowWall1East : DamageableItem
    {
    [Constructable]
    public SAShadowWall1East()
    : base(13882, 636)
    {
    this.Name = "Shadow Wall";
    
    this.Level = ItemLevel.VeryEasy;
    this.Movable = false;
    }
    
    public SAShadowWall1East(Serial serial)
    : base(serial)
    {
    }
    
    public override void Serialize(GenericWriter writer)
    {
    base.Serialize(writer);
    
    writer.Write((int)0); //version
    }
    
    public override void Deserialize(GenericReader reader)
    {
    base.Deserialize(reader);
    
    int version = reader.ReadInt();
    }
    }
    }
Working...
X