public RentalExpireTimer(CityRentedVendor vendor, TimeSpan delay, CityManagementStone stone) : base(delay, vendor.RentalDuration.Duration) { m_Vendor = vendor; m_Stone = stone; Priority = TimerPriority.OneMinute; }
public override void OnDoubleClick( Mobile from ) { if ( !IsChildOf( from.Backpack ) ) { from.SendLocalizedMessage( 1042001 ); // That must be in your pack for you to use it. } else { Region r = Region.Find( from.Location, from.Map ); if ( r is CityMarketRegion ) { CityMarketRegion cityreg = (CityMarketRegion)r; if ( cityreg.Sign == this.Sign ) { VendorRentalDuration m_Expire; m_Expire = VendorRentalDuration.Instances[(int)this.Duration]; CityRentedVendor vendor = new CityRentedVendor( m_Lord, this.Owner, m_Expire, this.Rent, true, this.Rent, this.Sign.Stone ); vendor.MoveToWorld( from.Location, from.Map ); CityManagementStone stone = this.Sign.Stone; vendor.TaxRate = stone.IncomeTax; stone.Vendors.Add( vendor ); this.Delete(); } else from.SendMessage( "You may only do this in a city market that you purchased a spot in!" ); } else from.SendMessage( "You may only use this at a Town Market!" ); } }
protected override void OnTarget(Mobile from, object o) { if (o is CityPlayerVendor) { if (((CityPlayerVendor)o).City == null) { from.SendMessage("You may not move a vendor that is sceduled for termination!"); } Mobile mob = o as Mobile; if (PlayerGovernmentSystem.IsAtCity(from, mob) || CityRentedVendor.IsLegitmateVendor(from, mob)) { from.Target = new MoveVendorTarget(o); } else { from.SendMessage("You may only move vendors that are in the public town areas."); } } else if (o is CityResourceBox) { Item item = o as Item; if (PlayerGovernmentSystem.IsAtCity(item)) { from.Target = new MoveVendorTarget(o); } else { from.SendMessage("You may only move boxes that are in the public town areas."); } } else { from.SendMessage("You may only use this to move City Vendors or Town Resource Boxes!"); } }
public CityRenterVendorRentalGump(CityRentedVendor vendor) : base( GumpType.VendorRenter, vendor.RentalDuration, vendor.RentalPrice, vendor.RenewalPrice, vendor.Landlord, vendor.Owner, vendor.LandlordRenew, vendor.RenterRenew, vendor.Renew) { m_Vendor = vendor; }
public ContractOptionsEntry(CityRentedVendor vendor) : base(6209) { m_Vendor = vendor; }
public RejectContract(CityRentedVendor vendor) : base(6218) { m_Vendor = vendor; }
public CityRenterVendorRentalGump( CityRentedVendor vendor ) : base( GumpType.VendorRenter, vendor.RentalDuration, vendor.RentalPrice, vendor.RenewalPrice, vendor.Landlord, vendor.Owner, vendor.LandlordRenew, vendor.RenterRenew, vendor.Renew ) { m_Vendor = vendor; }
public RentalExpireTimer( CityRentedVendor vendor, TimeSpan delay, CityManagementStone stone ) : base( delay, vendor.RentalDuration.Duration ) { m_Vendor = vendor; m_Stone = stone; Priority = TimerPriority.OneMinute; }
public ContractOptionsEntry( CityRentedVendor vendor ) : base( 6209 ) { m_Vendor = vendor; }
public RejectContract( CityRentedVendor vendor ) : base( 6218 ) { m_Vendor = vendor; }