well this is what I got so far form reading other stone scripts, right now reading through scripts trying to find out how to do a sum check of gold and remove gold from the backpack if sum is greater than the quantity required to perform the action, then I gotta figure out how to remove the gold, THEN I can begin to think about how to make it teleport a player to a location, hehe the x,y,z I get and the map it want it to go to, but like I said before I'm just learning and the only way I know how to learn this stuff is to pick apart scripts I have already and see what makes em tick.
using System;
using Server.Items;
namespace Server.Items
{
public class TollStone : Item
{
[Constructable]
public TollStone() : base( 0xED4 )
{
Movable = false;
Hue = 0x480;
Name = "a toll stone";
}
public override void OnDoubleClick( Mobile from )
{
**I'm assuming the remainder of the command lines will be in
here from what i can tell**
}
public TollStone( 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();
}
}
}