예제 #1
0
 public void OnPrepareMove(Mobile from)
 {
     if (from is PlayerMobile)
     {
         // move the stone to storage and place a special deed to recover the stone in the players backpack
         Item deed = new GuildRestorationDeed(this.m_Guild);
         if (MoveItemToIntStorage() && from.Backpack.CheckHold(from, deed, true, false, 0, 0))
         {
             from.Backpack.DropItem(deed);
             from.SendMessage("A guild deed for the {0} has been placed in your backpack.", m_Guild.Name);
         }
     }
 }
예제 #2
0
		public void OnPrepareMove( Mobile from )
		{
			if ( from is PlayerMobile )
			{
				// move the stone to storage and place a special deed to recover the stone in the players backpack
                Item deed = new GuildRestorationDeed(this.m_Guild);
                if (MoveItemToIntStorage() && from.Backpack.CheckHold(from, deed, true, false, 0, 0))
				{
					from.Backpack.DropItem( deed );
					from.SendMessage( "A guild deed for the {0} has been placed in your backpack.", m_Guild.Name );
				}
				
			}
		}