Silk
Member
Hello all.
I've been playing around with a Servuo server lately, thinking of just using it for a few friends. Anyway, I am trying to liven the world up a bit with npc/waypoints and some sort of schedule. I found zerodowned's Freezetile script and figured I would try incorporating it, but as I'm mostly lost when it comes to writing code, I was wondering if anyone here would be able to help me out. I just need to stop the tile from freezing players. Here's the script:
using System;
using Server.Mobiles;
namespace Server.Items
{
public class FreezeTile : Item
{
[Constructable]
public FreezeTile() : base( 1313 )
{}
public FreezeTile(Serial serial) : base(serial)
{
}
public override bool OnMoveOver(Mobile m)
{
m.Paralyze( TimeSpan.FromSeconds( 25.0 ) );
return true;
}
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();
}
}
}
Any takers? Thanks in advance!
I've been playing around with a Servuo server lately, thinking of just using it for a few friends. Anyway, I am trying to liven the world up a bit with npc/waypoints and some sort of schedule. I found zerodowned's Freezetile script and figured I would try incorporating it, but as I'm mostly lost when it comes to writing code, I was wondering if anyone here would be able to help me out. I just need to stop the tile from freezing players. Here's the script:
using System;
using Server.Mobiles;
namespace Server.Items
{
public class FreezeTile : Item
{
[Constructable]
public FreezeTile() : base( 1313 )
{}
public FreezeTile(Serial serial) : base(serial)
{
}
public override bool OnMoveOver(Mobile m)
{
m.Paralyze( TimeSpan.FromSeconds( 25.0 ) );
return true;
}
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();
}
}
}
Any takers? Thanks in advance!